pfctl: Cannot allocate memory.

Anton Yuzhaninov citrin at
Thu Apr 16 07:14:18 PDT 2009

Andrew Von Cid wrote:
> 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).

Better to set this limit explicitly in pf.conf, e. g.

set limit table-entries 200000

  Anton Yuzhaninov

More information about the freebsd-pf mailing list