From owner-freebsd-net Thu Jul 11 6: 4:32 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DFC337B408 for ; Thu, 11 Jul 2002 06:04:28 -0700 (PDT) Received: from vbook.express.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3165343E3B for ; Thu, 11 Jul 2002 06:04:27 -0700 (PDT) (envelope-from vova@express.ru) Received: from vova by vbook.express.ru with local (Exim 3.36 #1) id 17SdcF-0002WU-00; Thu, 11 Jul 2002 17:04:15 +0400 Subject: Re: limits in routing table? From: "Vladimir B. " Grebenschikov To: Andreas Gerstenberg Cc: freebsd-net@freebsd.org In-Reply-To: <10400000.1026292734@ag.intra> References: <10400000.1026292734@ag.intra> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Mailer: Ximian Evolution 1.0.7 Date: 11 Jul 2002 17:04:14 +0400 Message-Id: <1026392654.790.46.camel@vbook.express.ru> Mime-Version: 1.0 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 =F7 Wed, 10.07.2002, =D7 13:18, Andreas Gerstenberg =CE=C1=D0=C9=D3=C1=CC: > Hi, >=20 > I got the following error while figuring out the maximum amount of routes= =20 > in the kernel routing table: >=20 > # route add 192.168.1.1/32 10.0.0.1 > route: writing to routing socket: No buffer space available > add net 192.168.1.1: gateway 10.0.0.1: routing table overflow >=20 > # netstat -rn | wc -l > 299448 First, you can see is it route area limit with: # vmstat -m | fgrep routetbl\ routetbl 6907 942K 1678K102400K 4870047 0 0=20 16,32,64,128,256,512 legend is: # vmstat -m | fgrep HighUse Type InUse MemUse HighUse Limit Requests Limit Limit Size(s) On -CURRENT, as I understand there no limit for routetbl zone: # vmstat -m | fgrep rou routetbl 87 12K 13K 267490 16,32,64,128,256 # vmstat -m | fgrep MemUse Type InUse MemUse HighUse Requests Size(s) =20 =20 > How can I set a higher limit? for 4.x you can use following define in kernel config: options VM_KMEM_SIZE_SCALE=3D"(1)" # VM_KMEM_SIZE_SCALE can be set to adjust the auto-tuning factor, which # typically defaults to 4 (kernel malloc area size is physical memory=20 # divided by the scale factor). It works for me (see above) Or you can use -CURRENT to large routing tables, but not sure that it is good idea for production routers. > System: XP1700+, 512 MB DDR-RAM, FreeBSD 4.6p1 (RELENG_4_6) > Maxusers is set to 512 >=20 > regards, > Andy =20 --=20 Vladimir B. Grebenschikov vova@sw.ru, SWsoft, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message