Files
Alexandr Stelnykovych 760cd47b9f filterlists: increase bloom filter capacities and log fill level
The IPv4 filter was sized for 100 entries while the current base list
contains about 18k IPv4 addresses. The filter was fully saturated, so every
lookup of a global IPv4 address fell through to the cache database. The
domain filter was sized for 1M entries with about 843k domains in use, which
left little head room for additional intel sources.

Raise the capacities with head room for growth:
domain 1M -> 2M, ipv4 100 -> 200k, ipv6 100 -> 20k, asn 1k -> 10k,
country 100 -> 300. This adds about 2 MB of memory for the domain filter
and doubles the size of its record in the cache database.

Count the values added per entity type and log them next to the capacity
after a base list has been processed, so a list outgrowing its filter can be
spotted in the logs.

Filters restored from the cache database keep their stored size. Existing
installations pick up the new capacities with the next base list update.
2026-10-19 14:55:32 +03:00
..
2024-08-09 18:15:48 +03:00
2025-02-26 13:21:51 +01:00