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

git: kernel - Replace zalloc zones with kmalloc for PCBs


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 Jan 2010 11:11:41 -0800 (PST)

commit 9f42c1299494d8e31a01d9dec457c1560d32f8a1
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Fri Jan 15 11:09:19 2010 -0800

    kernel - Replace zalloc zones with kmalloc for PCBs
    
    * Use kmalloc to allocate PCBs instead of zalloc.  This removes over
      100MB of KVA reservation, particularly from inp_tcp.
    
    * Solves an issue with maxfiles where too much KVA was being reserved
      by the network for PCBs.
    
    * Replace all SCTP zalloc zones with kmalloc.
    
    Reported-bu: Rumko, Peter Avalos <pavalos@theshell.com>

Summary of changes:
 sys/netinet/in_pcb.c       |   13 ++++---------
 sys/netinet/in_pcb.h       |    2 +-
 sys/netinet/ip_divert.c    |    5 +----
 sys/netinet/raw_ip.c       |    5 +----
 sys/netinet/sctp_pcb.h     |   12 ++++++------
 sys/netinet/sctputil.h     |   14 ++++++++------
 sys/netinet/tcp_subr.c     |   11 +----------
 sys/netinet/tcp_syncache.c |   29 +++--------------------------
 sys/netinet/udp_usrreq.c   |    5 +----
 sys/netinet6/in6_pcb.c     |    2 +-
 10 files changed, 27 insertions(+), 71 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9f42c1299494d8e31a01d9dec457c1560d32f8a1


-- 
DragonFly BSD source repository



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