Module Name: src Committed By: pooka Date: Tue May 11 14:49:07 UTC 2010
Modified Files: src/sys/rump/librump/rumpvfs: rump_vfs.c Log Message: Set default number of vnodes to 1k instead of 64k: a large default reserves a large amount of memory by default and this is not desirable in a rump kernel where the typical usage is minimal. Maybe I should write a few lines to autoscale desiredvnodes up to a hard limit after the soft limit is reached? To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/sys/rump/librump/rumpvfs/rump_vfs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/librump/rumpvfs/rump_vfs.c diff -u src/sys/rump/librump/rumpvfs/rump_vfs.c:1.49 src/sys/rump/librump/rumpvfs/rump_vfs.c:1.50 --- src/sys/rump/librump/rumpvfs/rump_vfs.c:1.49 Sat May 1 14:46:32 2010 +++ src/sys/rump/librump/rumpvfs/rump_vfs.c Tue May 11 14:49:07 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: rump_vfs.c,v 1.49 2010/05/01 14:46:32 pooka Exp $ */ +/* $NetBSD: rump_vfs.c,v 1.50 2010/05/11 14:49:07 pooka Exp $ */ /* * Copyright (c) 2008 Antti Kantee. All Rights Reserved. @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.49 2010/05/01 14:46:32 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.50 2010/05/11 14:49:07 pooka Exp $"); #include <sys/param.h> #include <sys/buf.h> @@ -91,7 +91,7 @@ if (rumpuser_getenv("RUMP_NVNODES", buf, sizeof(buf), &error) == 0) { desiredvnodes = strtoul(buf, NULL, 10); } else { - desiredvnodes = 1<<16; + desiredvnodes = 1<<10; } rumpblk_init();