You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#769 gives us the ability to use logical page sizes larger than the system page size, e.g. --with-lg-page=13 to make all slabs at least 8 KiB. This gives a new benchmarking optimization dimension we've never been able to explore before.
This has the potential to reduce madvise cost, improve rtree locality etc. In addition, along with this change, other settings could be adjusted as well, e.g. tcache bin size, we can possibly cache more items since fewer slabs will be accessed with larger slab size.
Initial results from multiple production applications showed that we are getting significant CPU savings with pagesize 16k, at the cost of a significant memory increase (the tradeoffs do look quite promising). In the long term I believe we should have a higher default page size (maybe 16k or 64k). However let's combine more config options further to better take advantage of this. Possible directions:
size_classes
tcache bins
Since this does not look like a simple win across the board, and more tuning and experiments are likely to be helpful, I'm going to punt this to 5.1.
Activity
interwq commentedon May 26, 2017
Initial results from multiple production applications showed that we are getting significant CPU savings with pagesize 16k, at the cost of a significant memory increase (the tradeoffs do look quite promising). In the long term I believe we should have a higher default page size (maybe 16k or 64k). However let's combine more config options further to better take advantage of this. Possible directions:
Since this does not look like a simple win across the board, and more tuning and experiments are likely to be helpful, I'm going to punt this to 5.1.
interwq commentedon Apr 3, 2019
We have dynamic slabs as an experimental feature now. Keep this open for now though.