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 #1

Updated by Davide Pesavento almost 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

Also available in: Atom PDF