summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2014-09-04 00:36:00 +0000
committerdlg <dlg@openbsd.org>2014-09-04 00:36:00 +0000
commit182141185ff7768883f080b00ee343a23b8349ed (patch)
tree06e1191768a29cbd5398c97bf1a27f6932220b62 /lib
parentAdd *.gz support to apropos(1) -a, manm(1), and even mandoc(1). (diff)
downloadwireguard-openbsd-182141185ff7768883f080b00ee343a23b8349ed.tar.xz
wireguard-openbsd-182141185ff7768883f080b00ee343a23b8349ed.zip
rework how pools with large pages (>PAGE_SIZE) are implemented.
this moves the size of the pool page (not arch page) out of the pool allocator into struct pool. this lets us create only two pools for the automatically determined large page allocations instead of 256 of them. while here support using slack space in large pages for the pool_item_header by requiring km_alloc provide pool page aligned memory. lastly, instead of doing incorrect math to figure how how many arch pages to use for large pool pages, just use powers of two. ok mikeb@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions