* Purging the Buffer Cache
@ 2000-12-20 4:06 Al Peat
2000-12-20 10:02 ` Juri Haberland
0 siblings, 1 reply; 2+ messages in thread
From: Al Peat @ 2000-12-20 4:06 UTC (permalink / raw)
To: Linux Kernel; +Cc: myself
Is there any way to completely purge the buffer
cache -- not just the write requests (ala 'sync' or
'update'), but the whole thing? Can I just call
invalidate_buffers() or destroy_buffers()?
I know, why in the world would a person do such a
thing? Research. It'd be easier for me to write a
little program or add it to a module than wait for a
reboot each time I need a clean buffer cache.
Thanks in advance,
Al
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Purging the Buffer Cache
2000-12-20 4:06 Purging the Buffer Cache Al Peat
@ 2000-12-20 10:02 ` Juri Haberland
0 siblings, 0 replies; 2+ messages in thread
From: Juri Haberland @ 2000-12-20 10:02 UTC (permalink / raw)
To: Al Peat; +Cc: myself, linux-kernel
Al Peat wrote:
>
> Is there any way to completely purge the buffer
> cache -- not just the write requests (ala 'sync' or
> 'update'), but the whole thing? Can I just call
> invalidate_buffers() or destroy_buffers()?
>
> I know, why in the world would a person do such a
> thing? Research. It'd be easier for me to write a
> little program or add it to a module than wait for a
> reboot each time I need a clean buffer cache.
What about the ioctl BLKFLSBUF ?
If you are running a SuSE distrib there is already a tool called flushb
that does what you want. If not, you can download the simple tool from
http://innominate.org/~juri/flushb.tar.gz
Juri
--
juri.haberland@innominate.com
system engineer innominate AG
clustering & security the linux architects
tel: +49-30-308806-45 fax: -77 http://www.innominate.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-12-20 10:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-20 4:06 Purging the Buffer Cache Al Peat
2000-12-20 10:02 ` Juri Haberland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox