From owner-freebsd-current@FreeBSD.ORG Fri Feb 21 08:13:36 2014 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C6301C1A for ; Fri, 21 Feb 2014 08:13:36 +0000 (UTC) Received: from zcs03.jnb1.cloudseed.co.za (zcs03.jnb1.cloudseed.co.za [41.154.0.139]) by mx1.freebsd.org (Postfix) with ESMTP id 573091DD0 for ; Fri, 21 Feb 2014 08:13:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zcs03.jnb1.cloudseed.co.za (Postfix) with ESMTP id 48E8C2B43BF5 for ; Fri, 21 Feb 2014 10:05:49 +0200 (SAST) X-Virus-Scanned: amavisd-new at zcs03.jnb1.cloudseed.co.za Received: from zcs03.jnb1.cloudseed.co.za ([127.0.0.1]) by localhost (zcs03.jnb1.cloudseed.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yXnag-aQVGwe for ; Fri, 21 Feb 2014 10:05:48 +0200 (SAST) Received: from clue.co.za (ss.school1319.gp-online.net [41.154.77.214]) by zcs03.jnb1.cloudseed.co.za (Postfix) with ESMTPSA id 8EE872B43A69 for ; Fri, 21 Feb 2014 10:05: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 1WGkzK-0000gb-E2 for current@freebsd.org; Fri, 21 Feb 2014 09:57:38 +0200 To: current@freebsd.org Subject: netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memory From: "Ian FREISLICH" X-Attribution: BOFH Date: Fri, 21 Feb 2014 09:57:38 +0200 Message-Id: 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 08:13:36 -0000 Hi While recieving my routing table I used to be able to check how far it got by counting the output netstat -rn. It takes about 2 seconds to recieve the routes from my route-server, but over a minute to update the kernel routing table. I'm now getting this error until zebra completes route insertion. [firewall1.jnb1] ~ $ netstat -rn |wc -l netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memory 1 [firewall1.jnb1] ~ $ netstat -rn |wc -l 480446 Is there a sysctl that controls this? There's lots of free memory (14GB). I've tuned other limits to stop dummynet crashing which may have affected this, but in the absence of any documentation of which mbuf sysctls affect dummynet I'm shooting in the dark: net.inet.ip.fw.one_pass=0 net.inet.ip.dummynet.io_fast=1 net.inet.ip.dummynet.hash_size=1024 net.pf.states_hashsize="1048576" kern.ipc.nmbclusters="1048576" kern.ipc.maxmbufmem="10737418240" kern.ipc.nmbufs=13045170 Ian -- Ian Freislich