Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpvfs Set default number of vnodes to 1k ...



details:   https://anonhg.NetBSD.org/src/rev/c7356bfa3299
branches:  trunk
changeset: 754748:c7356bfa3299
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue May 11 14:49:07 2010 +0000

description:
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?

diffstat:

 sys/rump/librump/rumpvfs/rump_vfs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6cd7aa38bb27 -r c7356bfa3299 sys/rump/librump/rumpvfs/rump_vfs.c
--- a/sys/rump/librump/rumpvfs/rump_vfs.c       Tue May 11 14:42:24 2010 +0000
+++ b/sys/rump/librump/rumpvfs/rump_vfs.c       Tue May 11 14:49:07 2010 +0000
@@ -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();



Home | Main Index | Thread Index | Old Index