]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Utilize the new function kmem_alloc_contig() to implement the UMA back-end
authorAlan Cox <alc@FreeBSD.org>
Thu, 18 Jun 2009 17:59:04 +0000 (17:59 +0000)
committerAlan Cox <alc@FreeBSD.org>
Thu, 18 Jun 2009 17:59:04 +0000 (17:59 +0000)
commitc45c00344f46bea16a17804f66bab64afec6752c
tree53b7ff35c71b2100dea56973cd5cfc1178575076
parente7733ffa39170acc47588733372fabf459a43819
Utilize the new function kmem_alloc_contig() to implement the UMA back-end
allocator for the jumbo frames zones.  This change has two benefits: (1) a
custom back-end deallocator is no longer required.  UMA's standard
deallocator suffices. (2) It eliminates a potentially confusing artifact
of using contigmalloc(): The malloc(9) statistics contain bogus information
about the usage of jumbo frames.  Specifically, the malloc(9) statistics
report all jumbo frames in use whereas the UMA zone statistics report the
"truth" about the number in use vs. the number free.
sys/kern/kern_mbuf.c