git: kernel - Replace zalloc zones with kmalloc for PCBs
Matthew Dillon
dillon at crater.dragonflybsd.org
Fri Jan 15 11:12:50 PST 2010
commit 9f42c1299494d8e31a01d9dec457c1560d32f8a1
Author: Matthew Dillon <dillon at 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 at 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
More information about the Commits
mailing list