aboutsummaryrefslogtreecommitdiff
path: root/src/allocators
diff options
context:
space:
mode:
Diffstat (limited to 'src/allocators')
-rw-r--r--src/allocators/speedymalloc.py14
-rw-r--r--src/allocators/speedymallocs.py3
2 files changed, 11 insertions, 6 deletions
diff --git a/src/allocators/speedymalloc.py b/src/allocators/speedymalloc.py
index e71ac5e..3e54b29 100644
--- a/src/allocators/speedymalloc.py
+++ b/src/allocators/speedymalloc.py
@@ -25,7 +25,7 @@ See src/bumpptr.c for the actual implementation.
from src.artifact import GitArtifact
from src.allocator import Allocator
-VERSION = "ac18af91cf7c50a686b34402b772423b013553d2"
+VERSION = "4d965cd9b601d291117c11e013aa4600f694585d"
class Speedymalloc(Allocator):
""" Speedymalloc definition for allocbench"""
@@ -38,8 +38,7 @@ class Speedymalloc(Allocator):
for option, value in kwargs.get("options", {}).items():
configuration += f"-D{option}={value} "
- self.build_cmds = ["meson {srcdir} {dir}",
- f"meson configure {{dir}} {configuration}",
+ self.build_cmds = [f"meson {{srcdir}} {{dir}} {configuration}",
"ninja -C {dir}"]
self.LD_PRELOAD = "{dir}/libspeedymalloc.so"
@@ -52,5 +51,10 @@ speedymalloc_dont_madv_free = Speedymalloc("speedymalloc_dont_madv_free",
version=VERSION)
speedymalloc_dont_madv_willneed = Speedymalloc("speedymalloc_dont_madv_willneed",
- options = {"madvise_willneed": "false"},
- version=VERSION)
+ options = {"madvise_willneed": "false"},
+ version=VERSION)
+
+speedymalloc_4095_sc_32 = Speedymalloc("speedymalloc_dont_madv_willneed",
+ options = {"cache_bins": 4095,
+ "cache_bin_seperation": 32},
+ version=VERSION)
diff --git a/src/allocators/speedymallocs.py b/src/allocators/speedymallocs.py
index 9c14839..8961fe8 100644
--- a/src/allocators/speedymallocs.py
+++ b/src/allocators/speedymallocs.py
@@ -22,4 +22,5 @@ import src.allocators.speedymalloc as sm
allocators = [sm.speedymalloc,
sm.speedymalloc_dont_madv_free,
- sm.speedymalloc_dont_madv_willneed]
+ sm.speedymalloc_dont_madv_willneed,
+ sm.speedymalloc_4095_sc_32]