Re: ~500 megs cached yet 2.6.5 goes into swap hell

Jeff Garzik
2004-04-30T08:10:10Z

Andrew Morton wrote:
> Jeff Garzik <jgarzik@pobox.com> wrote:
>> 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.
>
>
> Well I'll be darned.

FWIW the specific language is "If len is zero, all data following offset
is specified."

(for others, you probably already have this somewhere)
http://www.opengroup.org/onlinepubs/007904975/functions/posix_fadvise.html

top level SuSv3:
http://www.opengroup.org/onlinepubs/007904975/toc.htm

Jeff