* invalidate/drop filesystem caches & io buffers
@ 2006-11-08 12:53 Yakov Lerner
2006-11-08 12:55 ` Arjan van de Ven
2006-11-08 12:58 ` Hesse, Christian
0 siblings, 2 replies; 3+ messages in thread
From: Yakov Lerner @ 2006-11-08 12:53 UTC (permalink / raw)
To: linux-kernel
I'd like to invalidate/free the filesystem caches and io buffer cache
How can I do this when I can't unmount the filesystem (and w/o reboot) ?
(I run filesystem I/O test that needs to start from fresh cache &
buffer state -- as emty as possible, like right after mount/boot).
I tried 'mount -o remount' but it didn't make any difference
on the timing. Apparently 'mount -o remount' did not invalidate
cases/buffers ? ( The difference between fresh run vs non-fresh
run timing is x5 times ).
Thanks
Yakov
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: invalidate/drop filesystem caches & io buffers
2006-11-08 12:53 invalidate/drop filesystem caches & io buffers Yakov Lerner
@ 2006-11-08 12:55 ` Arjan van de Ven
2006-11-08 12:58 ` Hesse, Christian
1 sibling, 0 replies; 3+ messages in thread
From: Arjan van de Ven @ 2006-11-08 12:55 UTC (permalink / raw)
To: Yakov Lerner; +Cc: linux-kernel
On Wed, 2006-11-08 at 14:53 +0200, Yakov Lerner wrote:
> I'd like to invalidate/free the filesystem caches and io buffer cache
> How can I do this when I can't unmount the filesystem (and w/o reboot) ?
echo 1 > /proc/sys/vm/drop_caches
--
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: invalidate/drop filesystem caches & io buffers
2006-11-08 12:53 invalidate/drop filesystem caches & io buffers Yakov Lerner
2006-11-08 12:55 ` Arjan van de Ven
@ 2006-11-08 12:58 ` Hesse, Christian
1 sibling, 0 replies; 3+ messages in thread
From: Hesse, Christian @ 2006-11-08 12:58 UTC (permalink / raw)
To: Yakov Lerner; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 711 bytes --]
On Wednesday 08 November 2006 13:53, Yakov Lerner wrote:
> I'd like to invalidate/free the filesystem caches and io buffer cache
> How can I do this when I can't unmount the filesystem (and w/o reboot) ?
>
> (I run filesystem I/O test that needs to start from fresh cache &
> buffer state -- as emty as possible, like right after mount/boot).
>
> I tried 'mount -o remount' but it didn't make any difference
> on the timing. Apparently 'mount -o remount' did not invalidate
> cases/buffers ? ( The difference between fresh run vs non-fresh
> run timing is x5 times ).
You can do
echo 3 > /proc/sys/vm/drop_caches
Take a look at filesystems/proc.txt for details.
--
Regards,
Christian
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-11-08 12:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-08 12:53 invalidate/drop filesystem caches & io buffers Yakov Lerner
2006-11-08 12:55 ` Arjan van de Ven
2006-11-08 12:58 ` Hesse, Christian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox