aboutsummaryrefslogtreecommitdiff
path: root/sys/riscv/include
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2016-02-24 15:15:46 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2016-02-24 15:15:46 +0000
commit0791e0c0e719f22798abeab6402d71d57789870a (patch)
treeb1f2fcd1ee3fc1d6ee4f81ac7a505fe770c502c7 /sys/riscv/include
parent23a6c7330c06b717c9d0c1622007ea20d0a29bc4 (diff)
downloadsrc-0791e0c0e719f22798abeab6402d71d57789870a.tar.gz
src-0791e0c0e719f22798abeab6402d71d57789870a.zip
Provide more correct sizing of the KVA consumed by a vnode, used by
the virtvnodes calculation. Include the size of fs-specific v_data as the nfs nclnode inline, the NFS nclnode is bigger than either ZFS znode or UFS inode. Include the size of namecache_ts and short cache path element, multiplied by the name cache population factor, again inline. Inline defines are used to avoid pollution of the vnode.h with the subsystem-private objects. Non-significant unsynchronized changes of the definitions are fine, we do not care about that precision, and e.g. ZFS consumes much malloced memory per vnode for reasons unaccounted in the formula. Lower the partition of kmem dedicated to vnodes, from 1/7 to 1/10. The measures reduce vnode cache pressure on kmem and bring the vnode cache memory use below some apparent thresholds that were exceeded by r291244 due to more robust vnode reuse. Reported and tested by: marius (i386, previous version) Reviewed by: bde Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=295971
Diffstat (limited to 'sys/riscv/include')
0 files changed, 0 insertions, 0 deletions