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.
Actions