git » libjio » commit 113d9b9

tests/stress: Reduce the max operation length

author Alberto Bertogli
2009-09-25 02:37:21 UTC
committer Alberto Bertogli
2009-09-25 02:37:21 UTC
parent b52344eece87fd37ca5b747451ac20908079cda8

tests/stress: Reduce the max operation length

This patch reduces the maximum operation length, because the defaults were
too big and caused contention very easily when using multiple processes.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

tests/stress/jiostress +2 -2

diff --git a/tests/stress/jiostress b/tests/stress/jiostress
index c6d5f81..3a53f43 100755
--- a/tests/stress/jiostress
+++ b/tests/stress/jiostress
@@ -331,7 +331,7 @@ class T_jwrite (T_base):
 		self.fsize = fsize
 		self.do_verify = do_verify
 
-		self.maxoplen = min(int(fsize / 256), 16 * 1024 * 1024)
+		self.maxoplen = min(int(fsize / 256), 2 * 1024 * 1024)
 		self.range = Range(self.fsize, self.maxoplen, lockmgr)
 
 	def prepare(self):
@@ -353,7 +353,7 @@ class T_writeonly (T_base):
 		self.do_verify = do_verify
 
 		# favour many small ops
-		self.maxoplen = 1 * 1024 * 1024
+		self.maxoplen = 512 * 1024
 		self.nops = random.randint(1, 26)
 
 		self.ranges = []