aboutsummaryrefslogtreecommitdiff
path: root/src/allocators
diff options
context:
space:
mode:
Diffstat (limited to 'src/allocators')
-rw-r--r--src/allocators/all.py45
-rw-r--r--src/allocators/glibcs.py21
-rw-r--r--src/allocators/installed_allocators.py50
-rw-r--r--src/allocators/speedymallocs.py26
-rw-r--r--src/allocators/tcmallocs.py25
5 files changed, 0 insertions, 167 deletions
diff --git a/src/allocators/all.py b/src/allocators/all.py
deleted file mode 100644
index ed8d01e..0000000
--- a/src/allocators/all.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 2018-2019 Florian Fischer <florian.fl.fischer@fau.de>
-#
-# This file is part of allocbench.
-#
-# allocbench is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# allocbench is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with allocbench. If not, see <http://www.gnu.org/licenses/>.
-"""Collection containing all available allocators"""
-
-import src.allocators.glibcs
-import src.allocators.tcmallocs
-from src.allocators.jemalloc import jemalloc
-from src.allocators.hoard import hoard
-from src.allocators.mesh import mesh
-from src.allocators.scalloc import scalloc
-from src.allocators.supermalloc import supermalloc
-from src.allocators.llalloc import llalloc
-from src.allocators.tbbmalloc import tbbmalloc
-from src.allocators.mimalloc import mimalloc
-from src.allocators.snmalloc import snmalloc
-from src.allocators.rpmalloc import rpmalloc
-
-allocators = [
- *src.allocators.glibcs.allocators,
- *src.allocators.tcmallocs.allocators,
- jemalloc,
- hoard,
- mesh,
- supermalloc,
- scalloc,
- tbbmalloc,
- llalloc, # streamflow,
- mimalloc,
- snmalloc,
- rpmalloc
-]
diff --git a/src/allocators/glibcs.py b/src/allocators/glibcs.py
deleted file mode 100644
index 8c26493..0000000
--- a/src/allocators/glibcs.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright 2018-2019 Florian Fischer <florian.fl.fischer@fau.de>
-#
-# This file is part of allocbench.
-#
-# allocbench is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# allocbench is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with allocbench. If not, see <http://www.gnu.org/licenses/>.
-"""Collection containing all glibc variants"""
-
-from src.allocators.glibc import glibc, glibc_notc, glibc_nofs, glibc_nofs_fancy
-
-allocators = [glibc, glibc_notc, glibc_nofs, glibc_nofs_fancy]
diff --git a/src/allocators/installed_allocators.py b/src/allocators/installed_allocators.py
deleted file mode 100644
index 5e3c78d..0000000
--- a/src/allocators/installed_allocators.py
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 2018-2019 Florian Fischer <florian.fl.fischer@fau.de>
-#
-# This file is part of allocbench.
-#
-# allocbench is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# allocbench is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with allocbench.
-"""Collect allocators using installed system libraries"""
-
-import subprocess
-
-# TODO: add more allocators
-MAYBE_ALLOCATORS = ["tcmalloc", "jemalloc", "hoard"]
-
-allocators = {
- "libc": {
- "cmd_prefix": "",
- "binary_suffix": "",
- "LD_PRELOAD": "",
- "LD_LIBRARY_PATH": "",
- "color": "C1"
- }
-}
-
-for i, t in enumerate(MAYBE_ALLOCATORS):
- try:
- path = subprocess.run('whereis lib{} | cut -d":" -f2'.format(t),
- shell=True,
- stdout=subprocess.PIPE,
- universal_newlines=True).stdout.strip()
- except:
- continue
-
- if path != "":
- allocators[t] = {
- "cmd_prefix": "",
- "binary_suffix": "",
- "LD_PRELOAD": path,
- "LD_LIBRARY_PATH": "",
- "color": "C" + str(i + 2)
- }
diff --git a/src/allocators/speedymallocs.py b/src/allocators/speedymallocs.py
deleted file mode 100644
index c3012dd..0000000
--- a/src/allocators/speedymallocs.py
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright 2018-2019 Florian Fischer <florian.fl.fischer@fau.de>
-#
-# This file is part of allocbench.
-#
-# allocbench is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# allocbench is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with allocbench. If not, see <http://www.gnu.org/licenses/>.
-"""Collection containing all glibc variants"""
-
-import src.allocators.speedymalloc as sm
-
-allocators = [
- sm.speedymalloc, sm.speedymalloc_no_madv_free,
- sm.speedymalloc_no_madv_willneed, sm.speedymalloc_4095_sc_32,
- sm.speedymalloc_4095_sc_128,
- sm.speedymalloc_no_glab, sm.speedymalloc_70d9d160
-]
diff --git a/src/allocators/tcmallocs.py b/src/allocators/tcmallocs.py
deleted file mode 100644
index 0fe5d5b..0000000
--- a/src/allocators/tcmallocs.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 2018-2019 Florian Fischer <florian.fl.fischer@fau.de>
-#
-# This file is part of allocbench.
-#
-# allocbench is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# allocbench is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with allocbench. If not, see <http://www.gnu.org/licenses/>.
-"""Collection containing all glibc variants"""
-
-import src.allocators.tcmalloc as tcm
-
-allocators = [
- tcm.tcmalloc, tcm.tcmalloc_align, tcm.tcmalloc_gperftools,
- tcm.tcmalloc_gperftools_nofs, tcm.tcmalloc_gperftools_align,
- tcm.tcmalloc_gperftools_cacheline_exclusive
-]