Repository navigation
Restrict zmadvise_dontneed_range() to jemalloc builds - #3791
Conversation
Align with `zmadvise_dontneed()`: gate the helper also on `USE_JEMALLOC` so it becomes a no-op outside jemalloc builds. Signed-off-by: Binbin <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR refines conditional compilation in the memory allocator. The Changeszmadvise jemalloc conditioning
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
|
Does it not work without jemalloc or behaviour is different? I thought it is just a syscall in Linux and works with any alloc. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #3791 +/- ##
============================================
- Coverage 76.70% 76.68% -0.03%
============================================
Files 162 162
Lines 80697 80697
============================================
- Hits 61900 61883 -17
- Misses 18797 18814 +17
🚀 New features to boost your workflow:
|
It works with any alloc i think. But actually i don't know the details very much, this USE_JEMALLOC is used in the very beginning, like it was introduced in d4bca53. So there might be other reasons here, or perhaps we have only tested this on jemalloc. |
Align with `zmadvise_dontneed()`: gate the helper also on `USE_JEMALLOC` so it becomes a no-op outside jemalloc builds. Signed-off-by: Binbin <[email protected]> Signed-off-by: Alon Arenberg <[email protected]>
Align with `zmadvise_dontneed()`: gate the helper also on `USE_JEMALLOC` so it becomes a no-op outside jemalloc builds. Signed-off-by: Binbin <[email protected]> Signed-off-by: Alon Arenberg <[email protected]>
Move the sorted set B+ tree note (#4359) to Behavior Changes: OBJECT ENCODING now reports btree instead of skiplist, which is a client-visible output change and matters more for upgrade decisions than the speedup. Drop the notes for #3366 and #3791, neither of which is user-facing. #3366 replaces dict with a wrapper around hashtable; scoping the configured hash seed to data hashtables keeps hash-seed doing exactly what valkey.conf documents it to do, and stops the seed leaking into internal tables already populated during startup. #3791 makes the ranged memory-release helper a no-op on non-jemalloc builds to match existing behavior. Add two changes that triage left out: - #3533 fixed an undersized madvise range in dismissHashtable, so only about an eighth of the bucket array was hinted after fork. The fix cuts real copy-on-write overhead during background saves. - #4566 logs the module version on load, which is operator-visible. Signed-off-by: Sarthak Aggarwal <[email protected]> (cherry picked from commit 097567a)
Align with
zmadvise_dontneed(): gate the helper also onUSE_JEMALLOCso it becomes a no-op outside jemalloc builds.