diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2018-07-25 11:16:53 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2018-07-25 11:16:53 +0200 |
| commit | 574f93091ad7082e2695ce364f6f7726990e1e02 (patch) | |
| tree | f37ee9c57f848657c80d92903f895ed6b31b2450 /mysql.py | |
| parent | 4a4cb260a62e9f583716520955e4be336a199666 (diff) | |
| download | allocbench-574f93091ad7082e2695ce364f6f7726990e1e02.tar.gz allocbench-574f93091ad7082e2695ce364f6f7726990e1e02.zip | |
fix mysql memory stats collecting
Diffstat (limited to 'mysql.py')
| -rw-r--r-- | mysql.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -17,7 +17,7 @@ cwd = os.getcwd() prepare_cmd = ("sysbench oltp_read_only --db-driver=mysql --mysql-user=root " "--mysql-socket="+cwd+"/mysql_test/socket --table-size=1000000 prepare").split() -cmd = ("sysbench oltp_read_only --threads={} --time=10 " +cmd = ("sysbench oltp_read_only --threads={} --time=100 " "--db-driver=mysql --mysql-user=root --mysql-socket={}/mysql_test/socket run") server_cmd = ("mysqld -h {0}/mysql_test --socket={0}/mysql_test/socket " @@ -31,7 +31,7 @@ class Benchmark_MYSQL( Benchmark ): self.targets = copy.copy(common_targets) if "klmalloc" in self.targets: del(self.targets["klmalloc"]) - self.nthreads = range(1, psutil.cpu_count() * 2 + 1) + self.nthreads = range(1, psutil.cpu_count() * 4 + 1, 2) self.results = {"args": {"nthreads" : self.nthreads}, "targets" : self.targets, @@ -122,7 +122,7 @@ class Benchmark_MYSQL( Benchmark ): # Get initial memory footprint heap_size = {} - for m in p.memory_maps(): + for m in self.server.memory_maps(): if "[heap]" in m: p_size["heap_start"] = m.size @@ -159,7 +159,7 @@ class Benchmark_MYSQL( Benchmark ): print() # Get final memory footprint - for m in p.memory_maps(): + for m in self.server.memory_maps(): if "[heap]" in m: heap_size["heap_end"] = m.size |
