Affiliations
Projects
Talks & podcasts
WG21 papers
Blog posts
Other activity
- Merged PRFix for Linux CI download of the artifacts hanging and cygwin issues
Fix for Linux CI download of the artifacts hanging and cygwin issues
jemalloc#3087 · by spredolac - Merged PRFix percpu_arena under restricted affinity and phycpu core grouping
percpu/phycpu no longer silently disable themselves when the process affinity mask is restricted (cpusets, containers, taskset) and narenas is unset. The boot-time CPU->arena map already handles sparse and unknown CPU ids, so the "CPU…
jemalloc#3029 · by spredolac - Merged PRHpa cleanups
There are three small changes under HPA Bound HPA allocation heaps by hugepage geometry. Size the allocation heap and bitmap arrays for the number of size classes that can fit within a hugepage, retaining the existing upper bound. This…
jemalloc#3061 · by spredolac - Merged PRVeracode: Use internal alignment logarithm in free_aligned_sized
For valid nonzero power-of-two alignments, the existing lg_floor helper produces the same flags as MALLOCX_ALIGN. Use it at this internal call site to avoid expanding the public macro arithmetic reported in issue #3050. Similar to before I…
jemalloc#3053 · by spredolac - Merged PRUse internal alignment logarithm in aligned sized delete
For valid power-of-two alignments, use lg_floor() to encode the alignment flags in the C++ aligned sized delete helper. This avoids the public macro's split-word calculation when alignment is a runtime argument. While working on noticed…
jemalloc#3054 · by spredolac - Merged PRAdd experimental HPA SEC trimming
Add experimental_hpa_sec_trim, disabled by default, to trim SEC during background HPA maintenance. Return half of each bin's minimum observed inventory, rounded up to whole extents, selecting cold extents first. Keep the original SEC…
jemalloc#3042 · by spredolac - Merged PRRFC: Separate rtree key width from packed pointer width
Retain 49 bits in compact x86_64 edata pointers when LG_VADDR is 48, while keeping radix-tree indexing and geometry at the configured width. This preserves both native sign-extended 48-bit pointers and zero-extended 48-bit pointers…
jemalloc#3041 · by spredolac - Merged PRRemove HPA minimum purge delay
Remove HPA minimum purge delay This option overlaps somewhat with hpa_min_purge_interval_ms and that one is simpler conceptually and in the code. Given our internal experimentation I think that we can simplify the code and configuration…
jemalloc#3033 · by spredolac - Merged PRFix guarded small allocation test with per-CPU arenas
I saw this error and this is the theory of that intermittent failure: CPU migration can switch the arena used for tcache refills, leaving partially consumed slabs in multiple arenas. Slab starts can therefore outnumber slab ends before the…
jemalloc#3039 · by spredolac - Merged PRAdd timer_scale to uniformly scale time-based thresholds
timer_scale multiplies the tcache GC interval, dirty/muzzy decay epochs, HPA min purge interval and hugify delay, and the background thread minimum sleep. Set it with MALLOC_CONF=timer_scale:N (1..1000, default 1; opt.timer_scale) or at…
jemalloc#3030 · by spredolac - Merged PRRemove SEC USDT probes
Remove SEC USDT probes I do not think they add a lot of value and even on that layer sampling is needed. Let's remove. For HPA probes let's wait on several larger projects and changes before we decide what and how to emit (they are more…
jemalloc#3032 · by spredolac - Merged PROptimize slab bitmap batch allocation and deallocation
Summary This reduces work in slab bitmap allocation and deallocation, primarily during tcache refill and flush. The changes: Clear the lowest set bit with x & (x - 1), allowing the bit index and updated bitmap to be computed independently…
jemalloc#3026 · by spredolac - Merged PRMove dallocx() flags != 0 path out of line
je_dallocx() kept the flags != 0 path inline, so the whole function got one stack frame and register assignment sized for the slow path, and the flags == 0 fast path paid for it. Move the flags != 0 body into a noinline dallocx_default(),…
jemalloc#3028 · by spredolac - Merged PRAdd OTEL probes and profiling mode that only emits probes
Attempt to address #3011 by upstreaming the USDT interface needed by OpenTelemetry heap profilers. The first two commits are the core change addressing the ask: Refactor to support USDT provider in a macro - mechanical Add…
jemalloc#3015 · by spredolac - Merged PRRemove last-thread shortcut from per-CPU arena selection
The shortcut produced stale arena choices for 10% and 37% of selections in two production workloads. The current CPU lookup took at most 7 cycles in a Linux microbenchmark. Always read the current CPU and test migration between CPUs. Why…
jemalloc#3006 · by spredolac