]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r269963+269964:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 29 Aug 2014 13:12:45 +0000 (13:12 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 29 Aug 2014 13:12:45 +0000 (13:12 +0000)
commit120961caf5c814ebe8d1c1deca1bd59f22622f11
tree20e0de4d396de0bf40d2ca895fa0cb6d8c5e05e0
parentcf5cfca784f1110d7075abf99a6b2255bae485c0
MFC r269963+269964:

Re-instate UMA cached backend for 4K - 64K allocations.  New consumers
like geli(4) uses malloc(9) to allocate temporary buffers that gets
free'ed shortly, causing frequent TLB shootdown as observed in hwpmc
supported flame graph.

Add a new loader tunable, vm.kmem_zmax which allows a system administrator
to limit the maximum allocation size that malloc(9) would consider using
the UMA cache allocator as backend.

git-svn-id: svn://svn.freebsd.org/base/stable/10@270811 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/kern_malloc.c