]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r227802:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 2 Apr 2012 07:18:31 +0000 (07:18 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 2 Apr 2012 07:18:31 +0000 (07:18 +0000)
commit68bd4edf9add8b124f4a60fa7d882d8ea303e623
tree2af5147be8ca6a96f252c39ca89fc9849e8f9c9f
parent4e2d0e527ac0ad0e49034d540078ac9ad9517a45
MFC r227802:

Improve the way to calculate available pages in tmpfs:

 - Don't deduct wired pages from total usable counts because it does not
   make any sense.  To make things worse, on systems where swap size is
   smaller than physical memory and use a lot of wired pages (e.g. ZFS),
   tmpfs can suddenly have free space of 0 because of this;
 - Count cached pages as available; [1]
 - Don't count inactive pages as available, technically we could but that
   might be too aggressive; [1]

[1] Suggested by kib@

git-svn-id: svn://svn.freebsd.org/base/stable/9@233769 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/tmpfs/tmpfs.h