Re: how to empty cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Erik,

Thank you for your reply. I checked out /proc directory but I don't
see 'drop_caches'
So I looked up online and it said that this was added in 2.6.16 but my
kernel is 2.6.11. Do you by any chance know how to configure with
2.6.11? I could not find any information to do this. Thank you.

Ilho <><



On 1/11/07, Erik Mouw <mouw@xxxxxxxxxxxx> wrote:
On Thu, Jan 11, 2007 at 03:43:11PM -0500, Ye ilho wrote:
> This may sound stupid but I was wondering if there is any way to empty
> the cache. I know that there are so many kinds of cache so here is
> what I am trying to do.
>
> I am currently taking measurement of certain programs using various
> applications such as firefox, cat, kernel make and etc.
> I have a different setup for each measurement and thus I will have to
> repeat the same measurement under different scenarios. I realized that
> if I download the same web page, it runs faster because it is from the
> cache. So I have to reboot the system each time for taking
> measurement.
> Is there any better way to do this?

echo 3 > /proc/sys/vm/drop_caches

See Documentation/filesystems/proc.txt for full documentation.

Note that this will not empty your web browsers own cache!


Erik

--
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFpqN//PlVHJtIto0RAvZjAJ41CysT4gpVPOlfFcoQuQhlPum83gCfTOdn
FV85A0Nw3fCLZ0dJqhShGog=
=/B1R
-----END PGP SIGNATURE-----





--
YES, JESUS LOVES YOU, TOO.
- Come for Eng. Christian Fellowship on Friday 6pm!
For God so loved the world that he gave his one and only Son, that
whoever believes in him shall not perish but have eternal life(John
3:16).

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux