git: x86_64 kernel - Increase buffer cache and vnode resources, and more.

Matthew Dillon dillon at
Sat Feb 6 10:13:44 PST 2010

commit 7c457ac840f7cd3cd8afc0a436867568241038c2
Author: Matthew Dillon <dillon at>
Date:   Sat Feb 6 09:13:11 2010 -0800

    x86_64 kernel - Increase buffer cache and vnode resources, and more.
    * Increase the maximum buffer cache from 200M to 400M.  Note that
      the buffer cache is backed by the VM page cache which is unlimited.
    * Use size_t for kmalloc() tracking
    * Allow 0 to be specified for kmalloc_raise_limit() which makes a
      kmalloc pool unlimited.
    * Adjust the kern.maxvnodes autocalculation for both i386 and x86_64.
      i386 boxes with maximum memory will get a slightly lower vnode
      limit while x86_64 boxes will get a dramatically higher vnode limit.
    * Remove kmalloc pool limits for vnodes, for HAMMER inodes, and
      for UFS inodes.  These pools track maxvnodes and do not require
      This fixes occassional kmalloc assertions and allows the sysop to
      raise kern.maxvnodes on a running system.

Summary of changes:
 sys/cpu/x86_64/include/param.h |    2 +-
 sys/kern/kern_slaballoc.c      |   10 ++++++----
 sys/kern/vfs_lock.c            |    1 +
 sys/kern/vfs_subr.c            |   12 +++++++++---
 sys/sys/malloc.h               |    6 +++---
 sys/vfs/hammer/hammer_vfsops.c |   13 +++++--------
 sys/vfs/ufs/ffs_vfsops.c       |    1 +
 7 files changed, 26 insertions(+), 19 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list