aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-19 13:15:24 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-19 13:15:24 +0100
commit34d396db1cb42627f398dd094c0622435a4035e4 (patch)
tree9a99675abc7bd9b019b20969ccf8407d98750539
parent7017f4774c5e33a84ddf662af9689b7b4ab290ce (diff)
downloadallocbench-34d396db1cb42627f398dd094c0622435a4035e4.tar.gz
allocbench-34d396db1cb42627f398dd094c0622435a4035e4.zip
add aligned version of new tcmalloc implementation
-rw-r--r--src/allocators/tcmalloc.py8
-rw-r--r--src/allocators/tcmallocs.py1
2 files changed, 8 insertions, 1 deletions
diff --git a/src/allocators/tcmalloc.py b/src/allocators/tcmalloc.py
index 7d51bdd..b951ff5 100644
--- a/src/allocators/tcmalloc.py
+++ b/src/allocators/tcmalloc.py
@@ -42,6 +42,12 @@ tcmalloc = TCMalloc("TCMalloc",
color="xkcd:blue",
version="1676100265bd189df6b5513feac15f102542367e")
+tcmalloc_align = TCMallocGperftools("TCMalloc-Aligned",
+ version="1676100265bd189df6b5513feac15f102542367e",
+ color="xkcd:light blue")
+
+tcmalloc_align.LD_PRELOAD = f"{BUILDDIR}/align_to_cl.so {tcmalloc_align.LD_PRELOAD}"
+
class TCMallocGperftools(Allocator):
"""gperftools TCMalloc allocator"""
@@ -72,7 +78,7 @@ tcmalloc_gperftools_nofs = TCMallocGperftools("TCMalloc-NoFalsesharing",
tcmalloc_gperftools_align = TCMallocGperftools("TCMalloc-Aligned",
version="gperftools-2.7",
- color="xkcd:light blue")
+ color="xkcd:navy blue")
tcmalloc_gperftools_align.LD_PRELOAD = f"{BUILDDIR}/align_to_cl.so {tcmalloc_gperftools_align.LD_PRELOAD}"
diff --git a/src/allocators/tcmallocs.py b/src/allocators/tcmallocs.py
index 46eccda..3d61226 100644
--- a/src/allocators/tcmallocs.py
+++ b/src/allocators/tcmallocs.py
@@ -21,6 +21,7 @@ import src.allocators.tcmalloc as tcm
allocators = [tcm.tcmalloc,
+ tcm.tcmalloc_align,
tcm.tcmalloc_gperftools_nofs,
tcm.tcmalloc_gperftools_align,
tcm.tcmalloc_gperftools_cacheline_exclusive]