lkml.org 
[lkml]   [1999]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux Buffer Cache & Mirroring
On Fri, 5 Nov 1999, Jeff V. Merkey wrote:

> I looked at some of the memory trackers. What I'm using is on par, and
> much simpler (it's like the resource tag tracking in Netware).

But how much time has it cost you in tracking down problems that otherwise
wouldn't have occurred?

> What is the best method for this? I noticed that there is a page *
> structure that uses a PG_Locked bit to flag the page structure. My
> concern is that most of this stuff uses macros that can change accross
> linux versions. Is this method consistent across all the Linux
> versions?

Use the helper function lock_page. The page cache is pretty much the same
across 2.x. Compare the differences in generic_file_read and such across
different versions to see what issues you need to worry about when
dealing with the page cache.
-ben


-
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:54    [from the cache]
©2003-2011 Jasper Spaans