[lkml]   [2004]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: ~500 megs cached yet 2.6.5 goes into swap hell
Andrew Morton wrote:
> Andy Isaacson <> wrote:
>> But in a related case, I have a background daemon that does a lot of IO
>> (mostly sequential, one page at a time read/modify/write of a multi-GB
>> file) to a filesystem on a separate spindle from my main filesystems.
>> I'd like to use a similar mechanism to say "don't let this program eat
>> my pagecache" that will let the daemon crunch away without severely
>> impacting my desktop work.
> fadvise(POSIX_FADV_DONTNEED) is ideal for this. Run it once per megabyte
> or so.

Sweet. I'm so happy you added posix_fadvise (way back when), and even
happier to hear this.

Does our fadvise support len==0 ("I mean the whole file")? That's
defined in POSIX, and would allow a compliant app to simply
POSIX_FADV_DONTNEED once at the beginning.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 14:02    [W:0.204 / U:6.832 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site