diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-26 18:26:02 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-26 18:27:07 +0100 |
| commit | 37ae1544e68cbec5605218e7ddb1d6f9a3b702fd (patch) | |
| tree | e07a78822239701b12e1b5db2010f8e5f6873e28 /src | |
| parent | ff0be98bad9549eeb06355e848bd868c792203a5 (diff) | |
| download | allocbench-37ae1544e68cbec5605218e7ddb1d6f9a3b702fd.tar.gz allocbench-37ae1544e68cbec5605218e7ddb1d6f9a3b702fd.zip | |
fix build of speedymalloc and add new variant
Diffstat (limited to 'src')
| -rw-r--r-- | src/allocators/speedymalloc.py | 14 | ||||
| -rw-r--r-- | src/allocators/speedymallocs.py | 3 |
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] |
