lkml.org 
[lkml]   [1999]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Clearing the I/O caches? (for benchmark tests)
Hi,

On 13 Jul 1999 16:10:38 -0700, tmk@cse.ucsc.edu (Tom M. Kroeger) said:

> My problem is that while I'm able to apparently clear the page
> directory and inode caches, I'm unable to completely clear the buffer
> cache. This is indicated by the fact that my benchmark sees a buffer
> cache hit ratio of 74% right after a reboot, but after the test has
> been run once I'm unable to get the buffer cache hit ratio below 78%.
> I understand that data that some data (e.g. open file meta data) can't
> be cleared, but once my benchmark test is finished, all of the data
> should be unlocked and freeable? correct?

Nearly. The ext2 filesystem keeps a cache of recently-accessed bitmap
buffers pinned in memory, and once that cache is primed you can't flush
it unless you unmount the filesystem. If you have any processes still
cd'ed to the active filesystem, then they will also be keeping directory
inodes pinned in the inode cache.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [from the cache]
©2003-2011 Jasper Spaans