From owner-svn-src-user@FreeBSD.ORG Fri Feb 15 14:50:37 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B72BDA1B; Fri, 15 Feb 2013 14:50:37 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id A252F12E; Fri, 15 Feb 2013 14:50:37 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1FEobhe084921; Fri, 15 Feb 2013 14:50:37 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1FEobO8084919; Fri, 15 Feb 2013 14:50:37 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201302151450.r1FEobO8084919@svn.freebsd.org> From: Attilio Rao Date: Fri, 15 Feb 2013 14:50:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r246835 - in user/attilio/vmc-playground/sys: conf vm 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.14 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, 15 Feb 2013 14:50:37 -0000 Author: attilio Date: Fri Feb 15 14:50:36 2013 New Revision: 246835 URL: http://svnweb.freebsd.org/changeset/base/246835 Log: - When panicing for "too small boot cache" reason, print the actual cache size value - Add a way to specify the size of the boot cache at compile time Sponsored by: EMC / Isilon storage division Modified: user/attilio/vmc-playground/sys/conf/options user/attilio/vmc-playground/sys/vm/vm_radix.c Modified: user/attilio/vmc-playground/sys/conf/options ============================================================================== --- user/attilio/vmc-playground/sys/conf/options Fri Feb 15 14:48:06 2013 (r246834) +++ user/attilio/vmc-playground/sys/conf/options Fri Feb 15 14:50:36 2013 (r246835) @@ -590,6 +590,7 @@ VM_KMEM_SIZE_SCALE opt_vm.h VM_KMEM_SIZE_MAX opt_vm.h VM_NRESERVLEVEL opt_vm.h VM_LEVEL_0_ORDER opt_vm.h +VM_RADIX_BOOT_CACHE opt_vm.h NO_SWAPPING opt_vm.h MALLOC_MAKE_FAILURES opt_vm.h MALLOC_PROFILE opt_vm.h Modified: user/attilio/vmc-playground/sys/vm/vm_radix.c ============================================================================== --- user/attilio/vmc-playground/sys/vm/vm_radix.c Fri Feb 15 14:48:06 2013 (r246834) +++ user/attilio/vmc-playground/sys/vm/vm_radix.c Fri Feb 15 14:50:36 2013 (r246835) @@ -45,6 +45,7 @@ #include #include "opt_ddb.h" +#include "opt_vm.h" #include #include @@ -67,7 +68,9 @@ #include #endif +#ifndef VM_RADIX_BOOT_CACHE #define VM_RADIX_BOOT_CACHE 1500 +#endif /* * Such sizes should permit to keep node children contained into a single @@ -134,7 +137,8 @@ vm_radix_carve_bootcache(void) struct vm_radix_node *rnode; if (boot_cache_cnt == VM_RADIX_BOOT_CACHE) - panic("%s: Increase VM_RADIX_BOOT_CACHE", __func__); + panic("%s: Increase VM_RADIX_BOOT_CACHE (%u)", __func__, + VM_RADIX_BOOT_CACHE); rnode = &boot_cache[boot_cache_cnt]; boot_cache_cnt++; return (rnode);