From owner-svn-src-projects@freebsd.org Tue Apr 12 21:21:07 2016 Return-Path: Delivered-To: svn-src-projects@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 A7285B0EBB7 for ; Tue, 12 Apr 2016 21:21:07 +0000 (UTC) (envelope-from asomers@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 5EE5C1FD8; Tue, 12 Apr 2016 21:21:07 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3CLL6VT047271; Tue, 12 Apr 2016 21:21:06 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3CLL69A047270; Tue, 12 Apr 2016 21:21:06 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201604122121.u3CLL69A047270@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Tue, 12 Apr 2016 21:21:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r297876 - projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zpool_destroy X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2016 21:21:07 -0000 Author: asomers Date: Tue Apr 12 21:21:06 2016 New Revision: 297876 URL: https://svnweb.freebsd.org/changeset/base/297876 Log: Fix the zpool_destroy_004_pos.ksh test tests/sys/cddl/zfs/tests/cli_root/zpool_destroy/zpool_destroy_004_pos.ksh * Fix a typo that prevented "zfs send" from running. This typo was present in the first revision of the file. * Reduce by a factor of about 2 the amount of data used in this test. It was excessive and let to long runtimes. Sponsored by: Spectra Logic Corp Modified: projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zpool_destroy/zpool_destroy_004_pos.ksh Modified: projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zpool_destroy/zpool_destroy_004_pos.ksh ============================================================================== --- projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zpool_destroy/zpool_destroy_004_pos.ksh Tue Apr 12 21:17:19 2016 (r297875) +++ projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zpool_destroy/zpool_destroy_004_pos.ksh Tue Apr 12 21:21:06 2016 (r297876) @@ -62,7 +62,7 @@ function send_recv_destroy recv=$2 to_destroy=$3 - ( $ZFS send -RP $TESTPOOL/$TESTFS@s0 | $ZFS receive -Fu $recv/d1 ) & + ( $ZFS send -RP $TESTPOOL/$TESTFS@snap1 | $ZFS receive -Fu $recv/d1 ) & sendrecvpid=$! log_must sleep $sleeptime @@ -108,10 +108,11 @@ for sleeptime in 0.1 0.3 0.5 0.75 1 2 3; done # A longer test that simulates a more realistic send|receive that exceeds -# the size of physical memory by 1/3 and gets interrupted a decent amount of +# the size of arc memory by 1/3 and gets interrupted a decent amount of # time after the start of the run. -physmem=$(sysctl -n hw.physmem) -datasz=$(expr ${physmem} / 1048576 \* 4 / 3) +arcmem=$(sysctl -n vfs.zfs.arc_max) +# ARC will use 2xdatasz memory since it caches both the src and dst copies +datasz=$(expr ${arcmem} / 1048576 \* 2 / 3) log_note "Running longer test with ${datasz}MB of data" sleeptime=15 run_tests