← Back to team overview

touch-packages team mailing list archive

[Bug 1418552] [NEW] dhclient uses lots of memory on systems with many interfaces

 

Public bug reported:

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.

** Affects: isc-dhcp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1418552

Title:
  dhclient uses lots of memory on systems with many interfaces

Status in isc-dhcp package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1418552/+subscriptions


Follow ups

References