svn commit: r253092 - user/pho/stress2/testcases/lockf2
Peter Holm
pho at FreeBSD.org
Tue Jul 9 11:00:11 UTC 2013
Author: pho
Date: Tue Jul 9 11:00:10 2013
New Revision: 253092
URL: http://svnweb.freebsd.org/changeset/base/253092
Log:
Tuned the resource reservation to match actual usage.
Sponsored by: EMC / Isilon storage division
Modified:
user/pho/stress2/testcases/lockf2/lockf2.c
Modified: user/pho/stress2/testcases/lockf2/lockf2.c
==============================================================================
--- user/pho/stress2/testcases/lockf2/lockf2.c Tue Jul 9 10:41:17 2013 (r253091)
+++ user/pho/stress2/testcases/lockf2/lockf2.c Tue Jul 9 11:00:10 2013 (r253092)
@@ -66,8 +66,8 @@ setup(int nb)
getdf(&bl, &in);
/* Resource requirements: */
- reserve_in = 1 * op->incarnations + 2;
- reserve_bl = 1064960 * op->incarnations + 2048;
+ reserve_in = 1 * op->incarnations;
+ reserve_bl = 1081344 * op->incarnations;
freespace = (reserve_bl <= bl && reserve_in <= in);
if (!freespace)
reserve_bl = reserve_in = 0;
@@ -81,7 +81,7 @@ setup(int nb)
freespace = getval();
}
if (!freespace)
- _exit (0);
+ exit (0);
sprintf(file, "lockf.%d", getpid());
if ((fd = open(file,O_CREAT | O_TRUNC | O_RDWR, 0600)) == -1)
More information about the svn-src-user
mailing list