Project

General

Profile

Actions

Feature #4829

open

Improve performance with TCMalloc

Added by Junxiao Shi about 5 years ago. Updated almost 5 years ago.

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:

  1. In install instructions, suggest installing libgoogle-perftools-dev package.
  2. In build scripts, detect the availability of libtcmalloc.so. If it's available, add linker flag to enable TCMalloc.
  3. In package definition, make libgoogle-perftools-dev a dependency so that released packages are linked with TCMalloc.
Actions

Also available in: Atom PDF