lkml.org 
[lkml]   [1999]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: RFC: invalidateCaches(fd) interface
On Sat, 6 Mar 1999, Larry McVoy wrote:

> I've been unable to find an interface in Linux which will flush just a
> single file's data from the buffer/page cache[s]. I used to do this on
> Sun's with an mmap() and then an msync(MS_INVALIDATE) but that doesn't
> seem to work in Linux. Does anyone have a patch to do this and would there

I believe it's a useful interface, but should be programmatical (e.g.
fixing fsync(MS_INVALIDATE)).

This is because:
a) This interface may find good use in databases; it's more-or-less what
they truly need when they keep asking for `raw devices'
b) It's trivial to write a small proggy that will use it and be useful in
shell scripts

-az

------------------------+----------------------------------------------------
. __ | Phone: +972 3 5340753 (home), +972 3 9685882 (work)
_| / | email: alonz@usa.net
/ | /_ Alon Ziv | smail: 33 Ha-Rama St., Ganey Tiqwah 55900, Israel
------------------------+----------------------------------------------------
<<<(((this place reserved for that ultra-wise oneliner I haven't found.)))>>>


-
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:50    [W:0.064 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site