This web mail archive is frozen.
This page is part of a frozen web archive of this mailing list.
You can still navigate around this archive, but know that no new mails
have been added to it since July of 2016.
Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.
I think that "reclaiming pages from the page cache" is the PROBLEM,
not the solution. If I understand you correctly a lower value of
"swappiness" means that the ANONYMOUS pages of an application's stack
and heap are less likely to be subject to swap I/O. However, the
concern here is for the pages of an mmap()ed file (though an unlinked
one). So, my expectation is that the page cache is their "owner" rather
than the application. If that is an incorrect understanding, I would
appreciate being corrected.
Christopher Samuel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On 10/06/10 18:43, Paul H. Hargrove wrote:
> > When the file is on a real (not tmpfs or other ramdisk) I am 95% certain
> > that this is an artifact of the Linux swapper/pager behavior which is
> > thinking it is being smart by "swapping ahead". Even when there is no
> > memory pressure that requires swapping, Linux starts queuing swap I/O
> > for pages to keep the number of "clean" pages up when possible.
> I believe you can tweak that behaviour through the VM subsystem
> using /proc/sys/vm/swappiness, it defaults to 60 but lower values
> are meant to make the kernel less likely to swap out applications
> and instead concentrate on reclaiming pages from the page cache.
> - --
> Christopher Samuel - Senior Systems Administrator
> VLSCI - Victorian Life Sciences Computational Initiative
> Email: samuel_at_[hidden] Phone: +61 (0)3 903 55545
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> -----END PGP SIGNATURE-----
> devel mailing list
Paul H. Hargrove PHHargrove_at_[hidden]
Future Technologies Group
HPC Research Department Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory Fax: +1-510-486-6900