Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101583 - dhcp-3.0.1-r1 consumes 100% of CPU indefinately if large numbers of subnets are defined
Summary: dhcp-3.0.1-r1 consumes 100% of CPU indefinately if large numbers of subnets a...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-06 14:21 UTC by Arithon Kelis
Modified: 2005-12-07 06:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arithon Kelis 2005-08-06 14:21:14 UTC
After configuring the dhcp server to provide DHCP services for 96 subnets,
starting it will consumes 100% of a single CPU for an undetermined amount of
time, without providing DHCP services.  I have left it running for a maximum of
24 hours.

Reproducible: Always
Steps to Reproduce:
1.  Create a dhcpd.conf file with a large number of subnets to be serviced.
2.  Start up dhcpd.
3.  Observe CPU usage and DHCP request responsiveness

Actual Results:  
dhcpd will utilize 100% of a single processor, but will not respond to DHCP
requests, even after a period of 24 hours.

Expected Results:  
I would expect this to start relatively quickly and begin providing DHCP services.

I've got a dual 3.2GHz Xeon system w/ 4GB of memory and a gigabit NIC acting as
a router and DHCP server for 96 different subnets.  The NIC is connected to a
Cisco 5500 switch via an 802.1q trunk.  The dhcpd.conf file is dynamically
generated from a template, where ${id} is 100-196:

lease-file-name "/var/db/dhcpd.leases";
ddns-update-style ad-hoc;
authoritative;
option time-offset -8;
default-lease-time 21600;
max-lease-time 43200;

# vlan ${id}
subnet 10.${id}.0.0 netmask 255.255.0.0 {
range 10.${id}.1.0 10.${id}.255.253;
option routers 10.${id}.255.254;
option domain-name-servers 10.${id}.0.1,10.${id}.0.2;
option time-servers 10.${id}.0.1,10.${id}.0.2;
}
Comment 1 Arithon Kelis 2005-08-06 14:24:48 UTC
I can't imagine that this is a particularly common configuration.  I've searched
all the documentation I can find, but nothing has indicated a better method of
providing DHCP services to such a large number of subnets.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-12-05 12:31:12 UTC
Mass reassign wrt Bug 23718, maintainer being retired.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-12-07 06:07:33 UTC
The only thing I can suggest is trying another dhcp server - this one is going
to have to be solved upstream. I suggest you contact ISC about this to see if
they can fix it for you