High ram-usage with multiple /16 ipv4 networks

Simon Hobson dhcp1 at thehobsons.co.uk
Mon Apr 20 19:03:47 UTC 2015


Peter Rathlev <peter at rathlev.dk> wrote:

> Hmm... I'm not sure I understand the configuration:
> 
> On Mon, 2015-04-20 at 17:14 +0200, Ruben Wisniewski wrote:
>> subnet 10.66.0.0 netmask 255.255.0.0 {
>>    range 10.66.11.1 10.66.20.255; #main
>>    pool {
>>        range 10.66.1.1 10.66.10.255;
>>        deny all clients;
>>    }
>>    pool {
>>        range 10.66.30.1 10.66.254.255;
>>        deny all clients;
>>    }
> 
> Wouldn't the "deny all clients" statements make those ranges a no-op?

Correct.

> Otherwise it seems to fit with what we see on our servers. I'm guessing
> the ranges that deny all clients still create leases.

Yes, on startup, hash tables are created to hold every address configured - and I'd assume they won't have done a specific test for that "deny everything".
So even if you have few clients, the hash tables can be very large if you define large ranges - not it's the ranges, not the subnets, that need space.





More information about the dhcp-users mailing list