DragonFly BSD
DragonFly commits List (threaded) for 2012-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - remove bounds on buffer cache nbuf count for 64-bit


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 15 Sep 2012 10:04:51 -0700 (PDT)

commit 74d624600d28f80a950ee2fcdd388c9732418df4
Author: Matthew Dillon <dillon@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



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