From owner-freebsd-current@FreeBSD.ORG Fri Feb 21 09:01:03 2014 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5F6CFE70; Fri, 21 Feb 2014 09:01:03 +0000 (UTC) Received: from zcs04.jnb1.cloudseed.co.za (zcs04.jnb1.cloudseed.co.za [41.154.0.161]) by mx1.freebsd.org (Postfix) with ESMTP id E466312F8; Fri, 21 Feb 2014 09:01:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zcs04.jnb1.cloudseed.co.za (Postfix) with ESMTP id CA9EE2A8217D; Fri, 21 Feb 2014 10:55:48 +0200 (SAST) X-Virus-Scanned: amavisd-new at zcs04.jnb1.cloudseed.co.za Received: from zcs04.jnb1.cloudseed.co.za ([127.0.0.1]) by localhost (zcs04.jnb1.cloudseed.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qWQnBXqqR4J1; Fri, 21 Feb 2014 10:55:48 +0200 (SAST) Received: from clue.co.za (ss.school1319.gp-online.net [41.154.77.214]) by zcs04.jnb1.cloudseed.co.za (Postfix) with ESMTPSA id 1E77B2A8215E; Fri, 21 Feb 2014 10:55:48 +0200 (SAST) Received: from localhost ([127.0.0.1] helo=zen) by clue.co.za with esmtp (Exim 4.82 (FreeBSD)) (envelope-from ) id 1WGltZ-0000kf-1A; Fri, 21 Feb 2014 10:55:45 +0200 To: Hiroki Sato From: Ian FREISLICH Subject: Re: netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memory In-Reply-To: <20140221.172017.821481836359198829.hrs@allbsd.org> References: <20140221.172017.821481836359198829.hrs@allbsd.org> X-Attribution: BOFH Date: Fri, 21 Feb 2014 10:55:45 +0200 Message-Id: Cc: current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Feb 2014 09:01:03 -0000 Hiroki Sato wrote: > ia> While recieving my routing table I used to be able to check how far > ia> it got by counting the output netstat -rn. It takes about 2 seconds > ia> to recieve the routes from my route-server, but over a minute to > ia> update the kernel routing table. > ia> > ia> I'm now getting this error until zebra completes route insertion. > ia> > ia> [firewall1.jnb1] ~ $ netstat -rn |wc -l > ia> netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memory > ia> 1 > ia> [firewall1.jnb1] ~ $ netstat -rn |wc -l > ia> 480446 > > Perhaps does the attached patch fix this? Sadly, not. Ian -- Ian Freislich