Skip to content

Tuning lg_page #772

Open
Open

Description

@interwq

#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.

Activity

  1. added this to the 5.0.0 milestone on Apr 17, 2017
  2. self-assigned this
    on Apr 17, 2017
  3. interwq commented on May 26, 2017

    @interwq
    ContributorAuthor

    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.

  4. modified the milestones: 5.0.0, 5.1.0 on May 26, 2017
  5. modified the milestones: 5.1.0, 5.2.0 on Apr 11, 2018
  6. interwq commented on Apr 3, 2019

    @interwq
    ContributorAuthor

    We have dynamic slabs as an experimental feature now. Keep this open for now though.

  7. modified the milestones: 5.2.0, 6.0 on Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions