9 import multiprocessing as mp
12 BUILDDIR='../out-perf.ectrs'
13 if __name__ == '__main__':
17 os.path.join(BUILDDIR, 'benchmarks/dbtest'),
18 '--bench-opts', '--workload-mix 0,0,100,0',
19 '--stats-server-sockfile' , '/tmp/silo.sock',
20 '--num-threads', '28',
21 '--numa-memory', '96G',
22 '--scale-factor', '160000',
26 env = dict(os.environ)
27 env['DISABLE_MADV_WILLNEED'] = '1'
28 p0 = subprocess.Popen(args, stdin=open('/dev/null', 'r'), stdout=open('/dev/null', 'w'), env=env)
29 time.sleep(1.0) # XXX: hacky
30 args = [os.path.join(BUILDDIR, 'stats_client'), '/tmp/silo.sock', 'dbtuple_bytes_allocated:dbtuple_bytes_freed']
31 with open(out, 'w') as fp:
32 p1 = subprocess.Popen(args, stdin=open('/dev/null', 'r'), stdout=fp)