From owner-cvs-src@FreeBSD.ORG Wed Aug 11 17:55:05 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 8962816A4CF for ; Wed, 11 Aug 2004 17:55:05 +0000 (GMT) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id C14FB43D53 for ; Wed, 11 Aug 2004 17:55:04 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 92400 invoked from network); 11 Aug 2004 17:49:00 -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:49:00 -0000 Message-ID: <411A5D7B.4756CA0B@freebsd.org> Date: Wed, 11 Aug 2004 19:55:07 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Wilko Bulte References: <200408111726.i7BHQuPC078939@repoman.freebsd.org> <411A5805.215C72FB@freebsd.org> <20040811174045.GA74993@freebie.xs4all.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: cvs-src@FreeBSD.ORG cc: src-committers@FreeBSD.ORG cc: cvs-all@FreeBSD.ORG 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:55:05 -0000 Wilko Bulte wrote: > > On Wed, Aug 11, 2004 at 07:31:49PM +0200, Andre Oppermann wrote.. > > 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 ;-) > > 1.2 million... > > ;-) With only 209M kmem_size! 8-) -- Andre