diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2017-06-19 23:57:13 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2017-06-19 23:57:13 +0000 |
commit | 315d0e97dae2c6527e82bb42cb97ec3e9717ed7f (patch) | |
tree | e61b22193642b5eef7f68645e5b4d320bd3b525e /usr.bin/file | |
parent | 5883ffe7715bd86751a8af15047e485fd4509102 (diff) |
dynamically scale the size of the per cpu cache lists.
if the lock around the global depot of extra cache lists is contented
a lot in between the gc task runs, consider growing the number of
entries a free list can hold.
the size of the list is bounded by the number of pool items the
current set of pages can represent to avoid having cpus starve each
other. im not sure this semantic is right (or the least worst) but
we're putting it in now to see what happens.
this also means reality matches the documentation i just committed
in pool_cache_init.9.
tested by hrvoje popovski and amit kulkarni
ok visa@
Diffstat (limited to 'usr.bin/file')
0 files changed, 0 insertions, 0 deletions