From owner-freebsd-net Wed Feb 21 4:58:28 2001 Delivered-To: freebsd-net@freebsd.org Received: from avengers.ivision.co.uk (avengers.ivision.co.uk [212.25.224.7]) by hub.freebsd.org (Postfix) with ESMTP id 1FA0137B491 for ; Wed, 21 Feb 2001 04:58:25 -0800 (PST) (envelope-from jasper@ivision.co.uk) Received: from [212.25.224.7] (helo=avengers) by avengers.ivision.co.uk with esmtp (Exim 2.04 #1) id 14VYqM-0001q5-00; Wed, 21 Feb 2001 12:58:06 +0000 Date: Wed, 21 Feb 2001 12:58:06 +0000 (GMT) From: Jasper Wallace X-Sender: To: Ingo Flaschberger Cc: Subject: Re: maximum number of routes? In-Reply-To: Message-ID: X-NCC-RegID: uk.instant-web MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 20 Feb 2001, Ingo Flaschberger wrote: > Hi > > how could i modify the amount of the maximum routes that freebsd allow? > > i have seen, that with more memory i could use more routes. > some results from me: > ram routes > 128mb 75k > 196mb 110k > 256mb 150k > > is it possible to modify the maximum ammount and does it make sense? > i would need that for some routers speaking bgp. > 120k routes with 128mb ram would be nice, if possible. > > currently, adding more routes than supportet ends with: > extern# route add 20.0.0.0/24 10.0.0.1 > route: writing to routing socket: No buffer space available > add net 20.0.0.0: gateway 10.0.0.1: routing table overflow Add this to your kernel config. file: # 1/2 RAM for the kernel - lets us have full routes. options VM_KMEM_SIZE_SCALE="(2)" See also /usr/include/machine/vmparam.h Unfortunatly freebsd's kernel memory managment stuff dosn't dynamicly resize, i'm pretty sure NetBSD's does, so you might like to take a look at that too. -- Internet Vision Internet Consultancy Tel: 020 7589 4500 60 Albert Court & Web development Fax: 020 7589 4522 Prince Consort Road vision@ivision.co.uk London SW7 2BE http://www.ivision.co.uk/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message