From owner-freebsd-net Sat Aug 4 2: 6:11 2001 Delivered-To: freebsd-net@freebsd.org Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by hub.freebsd.org (Postfix) with SMTP id 7005B37B403 for ; Sat, 4 Aug 2001 02:06:05 -0700 (PDT) (envelope-from oppermann@telehouse.ch) Received: (qmail 68525 invoked from network); 4 Aug 2001 09:05:37 -0000 Received: from unknown (HELO telehouse.ch) ([62.48.21.234]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 4 Aug 2001 09:05:37 -0000 Message-ID: <3B6BBAE7.D572B4CB@telehouse.ch> Date: Sat, 04 Aug 2001 11:05:43 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Jasper Wallace Cc: freebsd-hackers@freebsd.org, freebsd-net@freebsd.org Subject: Re: 303,000 routes in kernel References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Jasper Wallace wrote: > > On Fri, 3 Aug 2001, Andre Oppermann wrote: > > > Hello guys > > > > have got a small problem. I'm running a secondary DNS server for the > > ccTLD .ch here in Switzerland. > > > # vmstat -m > > Memory statistics by type Type Kern > > Type InUse MemUse HighUse Limit Requests Limit Limit Size(s) > > ... > > routetbl607857 85480K 85480K 85480K 2420956 0 0 > > 16,32,64,128,256 > > ... > > Memory Totals: In Use Free Requests > > 91073K 2948K 786316696 > > If you want to wack up the amount of ram used for the routing table you can > adjust the amount of ram the kernel uses for it's stuff with something like > this in your kernel config file: > > # 1/2 RAM for the kernel - lets us have full routes. > options VM_KMEM_SIZE_SCALE="(2)" > > If anyone knows a better way to persuade the kernel to use more space for > the routing table i'd love to know. On some machines that do routing and have a full view in the kernel I do this is in /boot/loader.conf: kern.vm.kmem.size="128000000" # Sets the size of kernel memory (bytes) But this is not very optimal because only half of the kernel memory can be used for the routing table. The other half (64MB here) is mostly empty. I'l like to know if there is a way to adjust this ratio in the kernel so I get 96MB for the routing table and 32MB for the kernel itself. -- Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message