From owner-freebsd-pf@FreeBSD.ORG Thu Apr 16 13:17:06 2009 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3372E1065673 for ; Thu, 16 Apr 2009 13:17:06 +0000 (UTC) (envelope-from andrew@accid.net) Received: from postville.darq.net (postville.darq.net [82.136.41.65]) by mx1.freebsd.org (Postfix) with ESMTP id E9F668FC12 for ; Thu, 16 Apr 2009 13:17:05 +0000 (UTC) (envelope-from andrew@accid.net) Received: from localhost (postville [82.136.41.65]) by postville.darq.net (Postfix) with ESMTP id 76D8C31543A7 for ; Thu, 16 Apr 2009 13:59:58 +0100 (BST) X-Virus-Scanned: amavisd-new at darq.net Received: from postville.darq.net ([82.136.41.65]) by localhost (postville.darq.net [82.136.41.65]) (amavisd-new, port 10024) with ESMTP id blj7A+WObdEx for ; Thu, 16 Apr 2009 13:59:56 +0100 (BST) Received: from [10.10.10.9] (78-105-7-89.zone3.bethere.co.uk [78.105.7.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: andrew@accid.net) by postville.darq.net (Postfix) with ESMTPSA id E1688315435A for ; Thu, 16 Apr 2009 13:59:56 +0100 (BST) Message-ID: <49E72BCC.9000405@accid.net> Date: Thu, 16 Apr 2009 13:59:56 +0100 From: Andrew Von Cid User-Agent: Thunderbird 2.0.0.17 (X11/20081023) MIME-Version: 1.0 To: freebsd-pf@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: pfctl: Cannot allocate memory. X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2009 13:17:06 -0000 Hi, I'm running pf with spamd on 7.0-RELEASE and I'm getting: pfctl: Cannot allocate memory. when I run spamd-setup -b It only happens when the spamd table reaches approx 84530 entries. When I flush the table manually, spamd-setup will work fine for a while (it loaded 75480 entries just now). As far as I understand by default pf can hold up to 200000 entries in a table (please correct me if I'm wrong). I'm nowhere near this. I read somewhere that spamd-setup will load new entries before flushing the old ones so for some time both old and new entries will be held in the table, until the old ones are removed. But even then the table shoudn't hit the size limit. The machine has 4G of RAM, there is usually around 80M free and 56% of swap in use. Is it the lack of free memory that's causing this? If so why wouldn't it use the remaining swap? Many thanks, Andrew.