Skip to content

Instantly share code, notes, and snippets.

@mmgaggle
Created December 21, 2015 20:50
Show Gist options
  • Save mmgaggle/a62fd0f86151d0935d04 to your computer and use it in GitHub Desktop.
Save mmgaggle/a62fd0f86151d0935d04 to your computer and use it in GitHub Desktop.
diff --git a/benchmark/rbdfio.py b/benchmark/rbdfio.py
index 6b6f1e2..c2e5d8a 100644
--- a/benchmark/rbdfio.py
+++ b/benchmark/rbdfio.py
@@ -76,7 +76,7 @@ class RbdFio(Benchmark):
# populate the fio files
logger.info('Attempting to populating fio files...')
- pre_cmd = 'sudo %s --ioengine=%s --rw=write --numjobs=%s --bs=4M --size %dM %s > /dev/null' % (self.cmd_path, self.ioengine, self.numjobs, self.vol_size*0.9, self.names)
+ pre_cmd = 'sudo %s --ioengine=%s --rw=write --numjobs=%s --bs=4M --size %dM %s > /dev/null' % (self.cmd_path, self.ioengine, self.numjobs, self.vol_size*0.9/self.concurrent_procs, self.names)
common.pdsh(settings.getnodes('clients'), pre_cmd).communicate()
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment