Actions
Feature #4829
openImprove performance with TCMalloc
Status:
New
Priority:
Normal
Assignee:
-
Category:
Build
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
3.00 h
Description
#3564-24 benchmark demonstrates that NFD forwarding performance can be improved by 10% if changing memory allocator from glibc malloc to TCMalloc.
Enabling TCMalloc is as simple as installing libgoogle-perftools-dev package and adding -ltcmalloc
linker flag.
This is a low-hanging fruit to improve NFD performance.
This issue involves:
- In install instructions, suggest installing libgoogle-perftools-dev package.
- In build scripts, detect the availability of
libtcmalloc.so
. If it's available, add linker flag to enable TCMalloc. - In package definition, make libgoogle-perftools-dev a dependency so that released packages are linked with TCMalloc.
Updated by Davide Pesavento over 5 years ago
- Target version deleted (
v0.7)
There is also https://github.com/microsoft/mimalloc
Quoting the README: "In our benchmarks [...], mimalloc always outperforms all other leading allocators (jemalloc, tcmalloc, Hoard, etc), and usually uses less memory (up to 25% more in the worst case). A nice property is that it does consistently well over a wide range of benchmarks."
Actions