From owner-svn-src-user@FreeBSD.ORG Wed Sep 24 09:28:38 2014 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A0503139; Wed, 24 Sep 2014 09:28:38 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 8C7DDB34; Wed, 24 Sep 2014 09:28:38 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8O9ScJP068943; Wed, 24 Sep 2014 09:28:38 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8O9Scrh068941; Wed, 24 Sep 2014 09:28:38 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201409240928.s8O9Scrh068941@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Wed, 24 Sep 2014 09:28:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r272062 - 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.18-1 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: Wed, 24 Sep 2014 09:28:38 -0000 Author: pho Date: Wed Sep 24 09:28:37 2014 New Revision: 272062 URL: http://svnweb.freebsd.org/changeset/base/272062 Log: Added comments. Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/mmap12.sh user/pho/stress2/misc/mmap13.sh Modified: user/pho/stress2/misc/mmap12.sh ============================================================================== --- user/pho/stress2/misc/mmap12.sh Wed Sep 24 09:25:47 2014 (r272061) +++ user/pho/stress2/misc/mmap12.sh Wed Sep 24 09:28:37 2014 (r272062) @@ -55,11 +55,15 @@ EOF #include int -main(int argc, char **argv) +main(void) { void *addr; size_t sz = 1; +/* + * This is the minimum amount of C code ot takes to panic the kernel. + * This is as submitted and thus not a complete and correct test program. + */ addr = mmap(NULL, sz, PROT_READ, MAP_ANON, -1, 0); if (addr == NULL) err(1, "mmap"); Modified: user/pho/stress2/misc/mmap13.sh ============================================================================== --- user/pho/stress2/misc/mmap13.sh Wed Sep 24 09:25:47 2014 (r272061) +++ user/pho/stress2/misc/mmap13.sh Wed Sep 24 09:28:37 2014 (r272062) @@ -40,6 +40,9 @@ cc -o mmap13 -O2 -Wall -Wextra mmap13.c rm -f mmap13.c cd $odir +# Both the 5000 and 500 are empirical values. +# Combined they demonstrate the leak in a consistent way. + v1=`sysctl -n vm.stats.vm.v_wire_count` for i in `jot 5000`; do /tmp/mmap13