dhclient uses lots of memory on systems with many interfaces
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.
Status changed to 'Confirmed' because the bug affects multiple users.