[Bug 260406] pfctl: Cannot allocate memory (after a time)

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 14 Dec 2021 02:43:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260406

--- Comment #1 from tech-lists@zyxst.net ---
also: 

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259798

some more stats

1. when it gets the error, before reboot

# vmstat -m | grep -E 'pf|Size'
         Type InUse MemUse Requests  Size(s)
         pfil    11     1K       19  64,128
      tcpfunc     1     1K        1  64
      pf_hash     5 11524K        5  2048
     pf_ifnet     7     4K       55  256,2048
      pf_rule    21    42K       57  2048
      pf_osfp  1191   123K     3573  64,128
     pf_table     6    12K       62  2048
    pfs_nodes    20     8K       20  384
  pfs_vncache     1    16K        4  32,16384

2. after reboot, after running:

# doas -u _pfbadhost pf-badhost -O freebsd
Password:

pf-badhost 1552 - - Using experimental "aggy" aggregator...

1 table created.
18912 addresses added.

pf-badhost 1620 - - 
IPv4 addresses in table:  619200855

but before loading pf.conf:

# vmstat -m | grep -E 'pf|Size'
         Type InUse MemUse Requests  Size(s)
         pfil     3     1K        3  128
      tcpfunc     1     1K        1  64
      pf_hash     5 11524K        5  2048
     pf_ifnet     7     4K       10  256,2048
     pf_table     1     2K        2  2048
    pfs_nodes    20     8K       20  384
  pfs_vncache     1    16K        1  16384

after loading pf.conf

# vmstat -m | grep -E 'pf|Size'
         Type InUse MemUse Requests  Size(s)
         pfil    11     1K       11  64,128
      tcpfunc     1     1K        1  64
      pf_hash     5 11524K        5  2048
     pf_ifnet     7     4K       25  256,2048
      pf_rule    19    38K       19  2048
      pf_osfp  1191   123K     1191  64,128
     pf_table     6    12K       15  2048
    pfs_nodes    20     8K       20  384
  pfs_vncache     1    16K        1  16384

-- 
You are receiving this mail because:
You are the assignee for the bug.