Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 2015 12:35:41 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r292401 - user/pho/stress2/misc
Message-ID:  <201512171235.tBHCZflY046085@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Thu Dec 17 12:35:40 2015
New Revision: 292401
URL: https://svnweb.freebsd.org/changeset/base/292401

Log:
  Fix excessive runtime seen with 64 GB RAM.
  
  Sponsored by:	EMC / Isilon storage division

Modified:
  user/pho/stress2/misc/forkbomb.sh

Modified: user/pho/stress2/misc/forkbomb.sh
==============================================================================
--- user/pho/stress2/misc/forkbomb.sh	Thu Dec 17 12:33:43 2015	(r292400)
+++ user/pho/stress2/misc/forkbomb.sh	Thu Dec 17 12:35:40 2015	(r292401)
@@ -66,7 +66,7 @@ while mount | grep "on $mntpoint " | gre
 done
 mdconfig -d -u $mdstart
 rm -rf /tmp/forkbomb
-exit $r
+exit
 
 EOF
 #include <sys/param.h>
@@ -87,7 +87,7 @@ volatile u_int *share;
 #define R1 0
 #define R2 1
 
-#define MXFAIL 10000
+#define MXFAIL 100
 #define PARALLEL 200
 
 void
@@ -128,8 +128,7 @@ main(void)
 	}
 
 	while (share[R2] < MXFAIL)
-		usleep(10000);
-	sleep(10);
+		sleep(1);
 
 	return (0);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512171235.tBHCZflY046085>