path: root/cddl
diff options
authorMark Johnston <markj@FreeBSD.org>2020-08-26 14:31:35 +0000
committerMark Johnston <markj@FreeBSD.org>2020-08-26 14:31:35 +0000
commit41c6838786c193bfeb2b2ff0c3d36c119217aeab (patch)
treef2fc0a66b325c5e5aae91d522d68e249c21f9c92 /cddl
parentb95807751a68a3d7d7d105f68d03465b8195ff44 (diff)
vmem: Avoid allocating span tags when segments are never released.
vmem uses span tags to delimit imported segments, so that they can be released if the segment becomes free in the future. However, the per-domain kernel KVA arenas never release resources, so the span tags between imported ranges are unused when the ranges are contiguous. Furthermore, such span tags prevent coalescing of free segments across KVA_QUANTUM boundaries, resulting in internal fragmentation which inhibits superpage promotion in the kernel map. Stop allocating span tags in arenas that never release resources. This saves a small amount of memory and allows free segements to coalesce across import boundaries. This manifests as improved kernel superpage usage during poudriere runs, which also helps to reduce physical memory fragmentation by reducing the number of broken partially populated reservations. Tested by: pho Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24548
Notes: svn path=/head/; revision=364819
Diffstat (limited to 'cddl')
0 files changed, 0 insertions, 0 deletions