From owner-cvs-src@FreeBSD.ORG Wed Aug 11 17:40: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 7A1C816A4CE; Wed, 11 Aug 2004 17:40:47 +0000 (GMT) Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB15B43D41; Wed, 11 Aug 2004 17:40:46 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) i7BHejAG087532; Wed, 11 Aug 2004 19:40:45 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.12.11/8.12.9) with ESMTP id i7BHejY3075009; Wed, 11 Aug 2004 19:40:45 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.12.11/8.12.11/Submit) id i7BHej8T075008; Wed, 11 Aug 2004 19:40:45 +0200 (CEST) (envelope-from wb) Date: Wed, 11 Aug 2004 19:40:45 +0200 From: Wilko Bulte To: Andre Oppermann Message-ID: <20040811174045.GA74993@freebie.xs4all.nl> References: <200408111726.i7BHQuPC078939@repoman.freebsd.org> <411A5805.215C72FB@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <411A5805.215C72FB@freebsd.org> User-Agent: Mutt/1.4.1i X-OS: FreeBSD 4.10-STABLE X-PGP: finger wilko@freebsd.org X-Virus-Scanned: by XS4ALL Virus Scanner 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:40:47 -0000 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... ;-) -- Wilko Bulte wilko@FreeBSD.org