Re: How to invalidate the filesystem buffer cache?

From: Andrew Morton (akpm@digeo.com)
Date: Wed Nov 20 2002 - 21:42:15 EST


Mark Atwood wrote:
>
> Like the question says, is there a way to invalidate the whole buffer
> cache at once?
>

"There is no buffer cache".

There's a pagecache, which caches the contents of files and block devices.
You can invalidate the block device pagecache with `blockdev --flushbufs' but
there is no interface for invalidating the pagecache of regular files.

Allocating and then freeing a ton of anonymous memory, then running a
swapoff/swapon cycle might suit.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:35 EST