Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jun 2017 07:35:59 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r320226 - user/pho/stress2/misc
Message-ID:  <201706220735.v5M7ZxM3093044@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Thu Jun 22 07:35:59 2017
New Revision: 320226
URL: https://svnweb.freebsd.org/changeset/base/320226

Log:
  Added a no-swap option.
  
  Sponsored by:	Dell EMC Isilon

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

Modified: user/pho/stress2/misc/syscall5.sh
==============================================================================
--- user/pho/stress2/misc/syscall5.sh	Thu Jun 22 07:35:05 2017	(r320225)
+++ user/pho/stress2/misc/syscall5.sh	Thu Jun 22 07:35:59 2017	(r320226)
@@ -42,10 +42,11 @@ esyscall=0
 last=/tmp/syscall5.last
 log=/tmp/syscall5.log
 
-while getopts ae:rs:t:u flag; do
+while getopts ae:nrs:t:u flag; do
 	case "$flag" in
 	a) all=1 ;;
 	e) esyscall="$OPTARG" ;;
+	n) export noswap=1 ;;
 	r) [ -h $last ] &&
 	       syscall=`ls -l $last | awk '{print $NF}'`
 	       syscall=$((syscall - 1))
@@ -54,7 +55,8 @@ while getopts ae:rs:t:u flag; do
 	t) sleeptime="$OPTARG"
 	   export sleeptime=$((sleeptime / 10))	;; # used in syscall4.sh
 	u) unnamed=1 ;;
-	*) echo "Usage $0 [-a] [-r] [-s number] [-e number] [-t seconds] [-u]"
+	*) echo "Usage $0 [-a] [-n] [-r] [-s number] [-e number] "\
+	    "[-t seconds] [-u]"
 	   return 1 ;;
 	esac
 done



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