svn commit: r292401 - user/pho/stress2/misc

Peter Holm pho at FreeBSD.org
Thu Dec 17 12:35:42 UTC 2015


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);
 }


More information about the svn-src-user mailing list