Skip to content

ITS: slab allocator idea - #15678

Open
f3sch wants to merge 1 commit into
AliceO2Group:devfrom
f3sch:its/capcatiy
Open

ITS: slab allocator idea#15678
f3sch wants to merge 1 commit into
AliceO2Group:devfrom
f3sch:its/capcatiy

Conversation

@f3sch

@f3sch f3sch commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

@mpuccio this what I think is a pretty neat idea (after Gabriele reminded me to revive this dead code and codex looked over it and wrote reasonable test cases).
We carry the size estimates of the buffer + margin and hand out slices of that pre-allocated buffer (slabs).
If the memory does not suffice there additional spill vectors transparently created and merged at the end.
Keeping the same output and running with 8 threads:
48 kHz Pb-Pb 23% faster (here the size estimates are spilling more often due to charged-particle multiplicity fluctuations)
750 kHz pp 30% faster
The memory profile also barely moved (<2%) upwards in my test case and the size estimates stabilise quickly.

Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for 69d6252 at 2026-08-13 20:18:

++ cp /sw/slc9_x86-64/O2/slc9_x86-64-slc9_x86-64-local5/compile_commands.json .
+++ python3 -c 'import json, os; print(os.path.commonpath([x["file"] for x in json.loads(open("compile_commands.json").read()) if "sw/BUILD" not in x["file"] and "G__" not in x["file"] and x["file"].endswith(".cxx")]))'
++ O2_SRC=/sw/SOURCES/O2/slc9_x86-64-slc9_x86-64/0
++ [[ -e /sw/SOURCES/O2/slc9_x86-64-slc9_x86-64/0/CMakeLists.txt ]]

Full log here.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants