From 113d9b923874b008593c5178d8504295640bf527 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Thu, 24 Sep 2009 23:37:21 -0300
Subject: [PATCH 09/15] 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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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 = []
-- 
1.6.2.2.646.gb214

