git: kernel - remove bounds on buffer cache nbuf count for 64-bit
Matthew Dillon
dillon at crater.dragonflybsd.org
Sat Sep 15 10:04:51 PDT 2012
commit 74d624600d28f80a950ee2fcdd388c9732418df4
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sat Sep 15 10:00:54 2012 -0700
kernel - remove bounds on buffer cache nbuf count for 64-bit
* Remove arbitrary 1GB buffer cache limitation
* Adjusted numerous 'int' fields to 'long'. Even though nbuf is not
likely to exceed 2 billion buffers, byte calculations using the
variable began overflowing so just convert that and various other
variables to long.
* Make sure we don't blow-out the temporary valloc() space in early boot
due to nbufs being too large.
* Unbound 'kern.nbuf' specifications in /boot/loader.conf as well.
Summary of changes:
sys/boot/common/loader.8 | 3 +-
sys/cpu/x86_64/include/param.h | 6 ++--
sys/kern/subr_param.c | 6 ++--
sys/kern/vfs_bio.c | 26 ++++++++--------
sys/platform/pc32/i386/machdep.c | 2 +-
sys/platform/pc64/x86_64/machdep.c | 46 ++++++++++++++++++++++++------
sys/platform/vkernel/i386/autoconf.c | 2 +-
sys/platform/vkernel64/x86_64/autoconf.c | 2 +-
sys/sys/buf.h | 4 +-
sys/vfs/nfs/nfs_subs.c | 2 +-
sys/vfs/nwfs/nwfs_vfsops.c | 2 +-
sys/vfs/smbfs/smbfs_vfsops.c | 2 +-
sys/vm/vm_pager.c | 4 +-
sys/vm/vnode_pager.c | 2 +-
14 files changed, 69 insertions(+), 40 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/74d624600d28f80a950ee2fcdd388c9732418df4
--
DragonFly BSD source repository
More information about the Commits
mailing list