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

Peter Holm pho at FreeBSD.org
Sun Dec 8 06:30:47 UTC 2019


Author: pho
Date: Sun Dec  8 06:30:46 2019
New Revision: 355522
URL: https://svnweb.freebsd.org/changeset/base/355522

Log:
  Also catch SIGBUS when accessing an unmapped page.
  Update the minimum memory requirements to run the test.
  
  Reported by:	jeff

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

Modified: user/pho/stress2/misc/holdcnt02.sh
==============================================================================
--- user/pho/stress2/misc/holdcnt02.sh	Sun Dec  8 04:36:42 2019	(r355521)
+++ user/pho/stress2/misc/holdcnt02.sh	Sun Dec  8 06:30:46 2019	(r355522)
@@ -34,7 +34,7 @@
 
 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
 [ `swapinfo | wc -l` -eq 1 ] && exit 0
-[ `sysctl -n hw.physmem` -lt $((9 * 1024 * 1024 * 1024)) ] && exit 0
+[ `sysctl -n hw.physmem` -lt $((32 * 1024 * 1024 * 1024)) ] && exit 0
 
 . ../default.cfg
 
@@ -168,6 +168,7 @@ reader(void)
 
 	setproctitle("reader");
 	signal(SIGSEGV, hand);
+	signal(SIGBUS, hand);
 	fd = 0;
 	for (;;) {
 		(void)setjmp(jbuf);


More information about the svn-src-user mailing list