From owner-cvs-src@FreeBSD.ORG Wed Aug 11 17:31:47 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FCF116A4D1 for ; Wed, 11 Aug 2004 17:31:47 +0000 (GMT) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD69743D53 for ; Wed, 11 Aug 2004 17:31:46 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 92224 invoked from network); 11 Aug 2004 17:25:42 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 11 Aug 2004 17:25:42 -0000 Message-ID: <411A5805.215C72FB@freebsd.org> Date: Wed, 11 Aug 2004 19:31:49 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org References: <200408111726.i7BHQuPC078939@repoman.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: cvs commit: src/sys/net route.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 17:31:47 -0000 Andre Oppermann wrote: > > andre 2004-08-11 17:26:56 UTC > > FreeBSD src repository > > Modified files: > sys/net route.c > Log: > Convert the routing table to use an UMA zone for rtentries. The zone is > called "rtentry". > > This saves a considerable amount of kernel memory. R_Zmalloc previously > used 256 byte blocks (plus kmalloc overhead) whereas UMA only needs 132 > bytes. > > Idea from: OpenBSD > > Revision Changes Path > 1.106 +10 -4 src/sys/net/route.c With this I was able to dump approx. 1.2 million routes into the kernel until I ran out of kmap_mem space. Pretty neat ;-) -- Andre