aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-03-09 19:27:28 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-03-09 19:27:28 +0100
commit8b416335805fc07262c0570bda324afccb5e3da3 (patch)
tree3b87d3d0075f27a57197533b4a657c2d3e925476
parent9c80b4defe1ba97ffa41e00cd8c4d1d4d18fd509 (diff)
downloadallocbench-8b416335805fc07262c0570bda324afccb5e3da3.tar.gz
allocbench-8b416335805fc07262c0570bda324afccb5e3da3.zip
use gperftools in nofs allocator collection and fix tcmalloc indentation
-rw-r--r--src/allocators/no_falsesharing.py2
-rw-r--r--src/allocators/tcmalloc.py27
2 files changed, 15 insertions, 14 deletions
diff --git a/src/allocators/no_falsesharing.py b/src/allocators/no_falsesharing.py
index 23726c4..90f777e 100644
--- a/src/allocators/no_falsesharing.py
+++ b/src/allocators/no_falsesharing.py
@@ -21,4 +21,4 @@ from src.allocators.tcmalloc import tcmalloc, tcmalloc_nofs
from src.allocators.glibc import glibc, glibc_nofs, glibc_nofs_fancy
-allocators = [glibc, glibc_nofs, glibc_nofs_fancy, tcmalloc, tcmalloc_nofs]
+allocators = [glibc, glibc_nofs, glibc_nofs_fancy, tcmalloc_gperftools, tcmalloc_gperftools_nofs]
diff --git a/src/allocators/tcmalloc.py b/src/allocators/tcmalloc.py
index 44cc10e..7f67146 100644
--- a/src/allocators/tcmalloc.py
+++ b/src/allocators/tcmalloc.py
@@ -43,8 +43,8 @@ tcmalloc = TCMalloc("TCMalloc",
version="1676100265bd189df6b5513feac15f102542367e")
tcmalloc_align = TCMalloc("TCMalloc-Aligned",
- version="1676100265bd189df6b5513feac15f102542367e",
- color="xkcd:light blue")
+ version="1676100265bd189df6b5513feac15f102542367e",
+ color="xkcd:light blue")
tcmalloc_align.LD_PRELOAD = f"{BUILDDIR}/align_to_cl.so {tcmalloc_align.LD_PRELOAD}"
@@ -71,19 +71,20 @@ tcmalloc_gperftools = TCMallocGperftools("TCMalloc-gperftools",
color="xkcd:dark blue",
version="gperftools-2.7")
-tcmalloc_gperftools_nofs = TCMallocGperftools("TCMalloc-Gperftools-NoFalsesharing",
- patches=["{patchdir}/tcmalloc_2.7_no_active_falsesharing.patch"],
- version="gperftools-2.7",
- color="xkcd:navy")
+tcmalloc_gperftools_nofs = TCMallocGperftools(
+ "TCMalloc-Gperftools-NoFalsesharing",
+ patches=["{patchdir}/tcmalloc_2.7_no_active_falsesharing.patch"],
+ version="gperftools-2.7",
+ color="xkcd:navy")
tcmalloc_gperftools_align = TCMallocGperftools("TCMalloc-Gperftools-Aligned",
- version="gperftools-2.7",
- color="xkcd:navy blue")
+ version="gperftools-2.7",
+ color="xkcd:navy blue")
tcmalloc_gperftools_align.LD_PRELOAD = f"{BUILDDIR}/align_to_cl.so {tcmalloc_gperftools_align.LD_PRELOAD}"
-tcmalloc_gperftools_cacheline_exclusive = TCMallocGperftools("TCMalloc-Gperftools-Cacheline-Exclusive",
- patches=["{patchdir}/tcmalloc_2.7_cacheline_exclusive.patch"],
- version="gperftools-2.7",
- color="xkcd:royal blue")
-
+tcmalloc_gperftools_cacheline_exclusive = TCMallocGperftools(
+ "TCMalloc-Gperftools-Cacheline-Exclusive",
+ patches=["{patchdir}/tcmalloc_2.7_cacheline_exclusive.patch"],
+ version="gperftools-2.7",
+ color="xkcd:royal blue")