From 8b416335805fc07262c0570bda324afccb5e3da3 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 9 Mar 2020 19:27:28 +0100 Subject: use gperftools in nofs allocator collection and fix tcmalloc indentation --- src/allocators/no_falsesharing.py | 2 +- src/allocators/tcmalloc.py | 27 ++++++++++++++------------- 2 files changed, 15 insertions(+), 14 deletions(-) (limited to 'src/allocators') 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") -- cgit v1.2.3