aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/mysql.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-12-11 21:44:39 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-12-11 22:19:14 +0100
commit15ff4cfc2af131359fa047a3e5d28a4bee1c23c3 (patch)
tree8677cfef6db80e57502c4004c0cbbb417532dab9 /src/benchmarks/mysql.py
parent13431ce7e8fdc1219d2bad27a3c05b148c836baf (diff)
downloadallocbench-15ff4cfc2af131359fa047a3e5d28a4bee1c23c3.tar.gz
allocbench-15ff4cfc2af131359fa047a3e5d28a4bee1c23c3.zip
collect vmhwm for servers and use it for mysql, httpd and redis
Diffstat (limited to 'src/benchmarks/mysql.py')
-rw-r--r--src/benchmarks/mysql.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/benchmarks/mysql.py b/src/benchmarks/mysql.py
index d5c0cb9..0d24ff6 100644
--- a/src/benchmarks/mysql.py
+++ b/src/benchmarks/mysql.py
@@ -192,12 +192,6 @@ class BenchmarkMYSQL(Benchmark):
result["avg"] = re.search("avg:\\s*(\\d*.\\d*)", stdout).group(1)
result["max"] = re.search("max:\\s*(\\d*.\\d*)", stdout).group(1)
- with open(f"/proc/{self.servers[0]['popen'].pid}/status", "r") as f:
- for l in f.readlines():
- if l.startswith("VmHWM:"):
- result["rssmax"] = int(
- l.replace("VmHWM:", "").strip().split()[0])
- break
def summary(self):
allocators = self.results["allocators"]
@@ -235,7 +229,7 @@ class BenchmarkMYSQL(Benchmark):
scale=ref_alloc)
# Memusage
- self.barplot_single_arg("{rssmax}",
+ self.barplot_single_arg("{mysqld_vmhwm}",
xlabel='"threads"',
ylabel='"VmHWM in kB"',
title='"Memusage sysbench oltp read only"',
@@ -247,7 +241,7 @@ class BenchmarkMYSQL(Benchmark):
"sort": ">"
}, {
"label": "Memusage [KB]",
- "expression": "{rssmax}",
+ "expression": "{mysqld_vmhwm}",
"sort": "<"
}],
filepostfix="table")