-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli: change jemalloc defaults #139743
cli: change jemalloc defaults #139743
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
Any thoughts on backporting to 25.1? I would be in favor, it seems like a row risk change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! I'm in favor of backporting.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @jbowens, @nicktrav, and @RaduBerinde)
pkg/cli/start_jemalloc.go
line 30 at r1 (raw file):
// // MALLOC_CONF env var. From the jemalloc man page: // // The string specified via --with-malloc-conf, the string pointed to by // // the global variable malloc_conf, the “name” of the file referenced by
Is this global variable the same as the je_
prefixed one below?
Gemini claimed the following -- wondering whether to believe it:
malloc_conf
variable (Deprecated/Rarely Used)
In some (older) versions of jemalloc, there was a global const char *
variable called malloc_conf
. You might see it referenced in older documentation or code.
This method is generally deprecated and should be avoided in favor of mallctl*
Yes, it's the same, our build is prepending |
Hm, I see some "Invalid conf pair: muzzy_delay_ms:0" messages in roachtests. I will investigate. Though this is 0 by default in our version anyway so it'd be ok to remove. |
Oh, it's just a typo, it should be |
9f31dcd
to
ba3d313
Compare
This commit changes the jemalloc configuration to reduce Cgo total spikes. This configuration has shown to reduce spikes without any noticeable impact to performance. Epic: none Release note: None
ba3d313
to
699d694
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @jbowens, @nicktrav, and @RaduBerinde)
TFTR! bors r+ |
This commit changes the jemalloc configuration to reduce Cgo total
spikes. This configuration has shown to reduce spikes without any
noticeable impact to performance.
Epic: none
Release note: None
Full experiment results (note the multiple tabs): https://docs.google.com/spreadsheets/d/1Vs9hx0wytkySIvW3DRXI4MXC49b_9Bgkk_IPsoKFH6M/edit?gid=0#gid=0
This is a before/after of sysbench with 3 nodes and 800M rows: