From owner-cvs-all@FreeBSD.ORG Wed Aug 11 18:56:04 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E58F16A4CE; Wed, 11 Aug 2004 18:56:04 +0000 (GMT) Received: from plouf.absolight.net (plouf.absolight.net [212.43.217.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id D09E643D53; Wed, 11 Aug 2004 18:56:03 +0000 (GMT) (envelope-from mat@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by plouf.absolight.net (Postfix) with ESMTP id 00B24403C; Wed, 11 Aug 2004 20:56:03 +0200 (CEST) X-Original-To: src-committers@FreeBSD.org X-Original-To: cvs-src@FreeBSD.org X-Original-To: cvs-all@FreeBSD.org X-Original-To: andre@freebsd.org Received: from [192.168.1.51] (l15v-8-120.d2.club-internet.fr [62.34.135.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by plouf.absolight.net (Postfix) with ESMTP id 97D7B402C; Wed, 11 Aug 2004 20:55:58 +0200 (CEST) Date: Wed, 11 Aug 2004 20:55:50 +0200 From: Mathieu Arnold To: Andre Oppermann , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Message-ID: In-Reply-To: <411A5805.215C72FB@freebsd.org> References: <200408111726.i7BHQuPC078939@repoman.freebsd.org> <411A5805.215C72FB@freebsd.org> X-Mailer: Mulberry/3.1.6 (Win32) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="==========F239D07F80CD438A9825==========" X-Spam-Checker-Version: SpamAssassin 2.64-abso_2004012301 (2004-01-11) on plouf.absolight.net by root@absolight.fr X-Virus-Scanned: by amavisd-new at plouf.absolight.net X-Spam-Status: No, hits=-3.405 tagged_above=-10 required=5 tests=AWL, BAYES_00, RCVD_IN_NJABL_DUL X-Spam-Level: Subject: Re: cvs commit: src/sys/net route.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 18:56:04 -0000 --==========F239D07F80CD438A9825========== Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline +-Le 11/08/2004 19:31 +0200, Andre Oppermann a dit : | 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 ;-) Looks like border routeurs will have more free ram in the future :-) -- Mathieu Arnold --==========F239D07F80CD438A9825========== Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) iQEVAwUBQRpruFvROjYJ63c1AQK8LQf9GT+sGbt6thYBs2pZbboS9YIFR75lnrjm TttcKRDMHRZAzxmwNyJS/prnw4hZk79GUfv8f5P7+zu39a7pSAhlJqAKpxm4cm8E J1t4k8pAsdSPnavqJjZoLpk7sgJATQkr66h2h7O3/xRqnCXxDwmaBcESByZVDJg1 zBpcO10bKFyJjRqJOYrAG7/qajEH6dYV0OKv3xdeU5/CcqoagRjhGxxsq39p8CB2 ZMbZ747stQYxS0jGFgRWLJteMBZjMiuhrehaRduE4uNB3p2t6+H9Siggqs4k6p+v kcbpeOowEcM4UPi0OOSNUph6cG2JqgrN0emSvOURI21N2Ar/XHgzlA== =JlhF -----END PGP SIGNATURE----- --==========F239D07F80CD438A9825==========--