dhclient uses lots of memory on systems with many interfaces

Bug #1418552 reported by Jan-Benedict Glaw
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
isc-dhcp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This is with 4.2.4-7ubuntu12, but since there's not a lot of code changing in ISC dhcpd (and its client), I guess this is a quite general problem: We're currently preapring a box to test a captive portal, thus this system has a hugh amount (ie. 1000) interfaces bridged to a physical network port.

Calling dhclient (with a custom script to configure the different interfaces independently by using non-default routing tables) works perfectly find for the first few interfaces. However, when there are already a few hundred interfaces up, it takes longer and longer for each new dhclient instance to get an IP address.

As strace reveals, it seems dhclient scans all interfaces, even several times, during start-up. I guess that it prepares data for each interface that's already configured with an IP address, thus wasting a lot of memory for no good. This should be reported upstream.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in isc-dhcp (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.