From owner-svn-src-user@freebsd.org Fri Apr 1 08:55:44 2016 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 16C52AE3EFC for ; Fri, 1 Apr 2016 08:55:44 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC15510DC; Fri, 1 Apr 2016 08:55:43 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u318thiR060795; Fri, 1 Apr 2016 08:55:43 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u318tgPG060793; Fri, 1 Apr 2016 08:55:42 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201604010855.u318tgPG060793@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Fri, 1 Apr 2016 08:55:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r297485 - user/pho/stress2/misc X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2016 08:55:44 -0000 Author: pho Date: Fri Apr 1 08:55:42 2016 New Revision: 297485 URL: https://svnweb.freebsd.org/changeset/base/297485 Log: Fix typo and limit runtime. Sponsored by: EMC / Isilon Storage Division Modified: user/pho/stress2/misc/rename12.sh user/pho/stress2/misc/rename5.sh Modified: user/pho/stress2/misc/rename12.sh ============================================================================== --- user/pho/stress2/misc/rename12.sh Fri Apr 1 08:47:23 2016 (r297484) +++ user/pho/stress2/misc/rename12.sh Fri Apr 1 08:55:42 2016 (r297485) @@ -57,7 +57,7 @@ for i in `jot $loops`; do for j in `jot $parallel`; do mkdir -p $mntpoint/d$j/dir1 mkdir -p $mntpoint/d$j/dir2 - (cd $mntpoint/d$j; /tmp/rename12 $((inodes/N)) ) & + (cd $mntpoint/d$j; /tmp/rename12 $((inodes/parallel)) ) & done wait for j in `jot $parallel`; do Modified: user/pho/stress2/misc/rename5.sh ============================================================================== --- user/pho/stress2/misc/rename5.sh Fri Apr 1 08:47:23 2016 (r297484) +++ user/pho/stress2/misc/rename5.sh Fri Apr 1 08:55:42 2016 (r297485) @@ -70,15 +70,18 @@ checkfs /dev/md${mdstart}$part mdconfig -d -u $mdstart exit 0 EOF +#include +#include + #include #include #include #include -#include -#include +#include #include #define N 1000 +#define RUNTIME (5 * 60) void @@ -100,10 +103,12 @@ test(void) int main() { - int fd, i, j; + time_t start; + int fd, i; char dir[128], file[128]; - for (j = 0; j < 50; j++) { + start = time(NULL); + while (time(NULL) - start < RUNTIME) { if (mkdir("src", 0700) == -1) err(1, "mkdir(src)");