summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/index.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2011-11-21 20:26:22 +0000
committerdelphij <delphij@FreeBSD.org>2011-11-21 20:26:22 +0000
commitb669bf1954fe240de70bd19230f605dc0d75d8f2 (patch)
tree194e573e87d746e8d96a3c8a39ecdff0fe267a87 /lib/libc/string/index.c
parentacf3f7e15ceb20af589d9567b612e8ecff489f4e (diff)
downloadFreeBSD-src-b669bf1954fe240de70bd19230f605dc0d75d8f2.zip
FreeBSD-src-b669bf1954fe240de70bd19230f605dc0d75d8f2.tar.gz
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@ MFC after: 1 week
Diffstat (limited to 'lib/libc/string/index.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud