Skip to content

Page cache - #1455

Closed
djwatson wants to merge 4 commits into
jemalloc:devfrom
djwatson:page_cache
Closed

djwatson wants to merge 4 commits into
jemalloc:devfrom
djwatson:page_cache

Conversation

@djwatson

Copy link
Copy Markdown

Add a pagecache in front of the slabs. The vast majority of extent tree manipulations comes from the slabs and not large requests. Currently we are depending on delay_coalesce to prevent lots of merge/split operations, instead let's make this very explicit with a pagecache.

It supports watermarks and fill/flush similar to how tcache works.

Current prod tests show this as pretty memory-neutral, and a small CPU win, mostly from splitting what would be a single extent mutex in to page sized mutexes.

(builds on top of #1448 )

Dave Watson added 3 commits March 7, 2019 15:56
This config option is no longer used once
best fit is removed.
This option saves a few CPU cycles, but potentially adds a lot of
fragmentation - so much so that there are workarounds like
max_active.  Instead, let's just drop it entirely.  It only made
a difference in one service I tested (.3% cpu regression), while
many services saw a memory win (also small, less than 1% mem P99)
@djwatson
djwatson force-pushed the page_cache branch 2 times, most recently from 431029d to 5437fb4 Compare March 11, 2019 20:47
Add a pagecache in front of the slabs.  The vast majority of
extent tree manipulations comes from the slabs and not large requests.
Currently we are depending on delay_coalesce to prevent lots of
merge/split operations, instead let's make this very explicit with
a pagecache.

It supports watermarks and fill/flush similar to how tcache works.

Current prod tests show this as pretty memory-neutral, and a small
CPU win, mostly from splitting what would be a single extent mutex
in to three page sized mutexes.
@davidtgoldblatt

Copy link
Copy Markdown
Contributor

No longer mergeable -- we also have the SEC implemented, which is fast as-is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants