kernel - remove bounds on buffer cache nbuf count for 64-bit
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 15 Sep 2012 17:00:54 +0000 (10:00 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 15 Sep 2012 17:03:44 +0000 (10:03 -0700)
commit74d624600d28f80a950ee2fcdd388c9732418df4
tree953d53e04d58754a6c3aa6637cad22fa6a70e1a8
parent796c8b7079162747d2f1a85d86a733722fcc47fb
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.
14 files changed:
sys/boot/common/loader.8
sys/cpu/x86_64/include/param.h
sys/kern/subr_param.c
sys/kern/vfs_bio.c
sys/platform/pc32/i386/machdep.c
sys/platform/pc64/x86_64/machdep.c
sys/platform/vkernel/i386/autoconf.c
sys/platform/vkernel64/x86_64/autoconf.c
sys/sys/buf.h
sys/vfs/nfs/nfs_subs.c
sys/vfs/nwfs/nwfs_vfsops.c
sys/vfs/smbfs/smbfs_vfsops.c
sys/vm/vm_pager.c
sys/vm/vnode_pager.c