summaryrefslogtreecommitdiff
path: root/include/linux/securebits.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-03-22 07:34:59 -0800
committerDavid S. Miller <davem@kernel.bkbits.net>2003-03-22 07:34:59 -0800
commit34f2047de1ac6c5a34791b782138cccfcce6cd2e (patch)
tree4f1958bea3bbaf72b6c182f9d5e371a9086708cc /include/linux/securebits.h
parentff0cbc7881e74bd5a7f6ee864d6474a3fd0213bb (diff)
[PATCH] pagecache accounting speedup
From: Alex Tomas <bzzz@tmi.comex.ru> This is the second half of the vm_enough_memory() speedup. When overcommit_memory != 1, vm_enough_memory() calls get_page_state() to calculate the amount of used pagecache. It does this on every call to sys_brk(). get_page_state() is really expensive on SMP. So the patch arranges for pagecache accounting to be in a global atomic_t, with per-cpu batching and approximate accounting to amortise the cost of the global atomic. The nr_pagecache field of /proc/vmstat is removed.
Diffstat (limited to 'include/linux/securebits.h')
0 files changed, 0 insertions, 0 deletions