Project

General

Profile

Bug #2732

dhclient sporadically eats up all processing time

Added by masu almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
11/12/2014
Due date:
% Done:

0%


Description

Hi,

my wifi interface is configured in rc.conf to run with DHCP.
After logging into the machine (Lenovo ThinkPad X61) one can see two dhclient instances running on that wifi interface, one run by _dhcp and one run by root.
The one run by user _dhcp then uses >97% processing time of one of the machine's cores.
This behaviour has been around since v3.6 (this is the version I started with dfly).

Is it normal that two chclients are running by differnet users (_dhcp, root)?

uname -a output is:

DragonFly MisterX 4.1-DEVELOPMENT DragonFly v4.1.0.53.g61b98-DEVELOPMENT #1: Sun Nov 9 16:10:57 CET 2014 root@MisterX:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64

Regards
Matthias

0001-dhclient-Update-linkstate-after-poll.patch View (1.14 KB) profmakx, 11/19/2014 04:37 PM

0001-dhclient-Update-linkstate-after-poll.patch View (972 Bytes) profmakx, 11/19/2014 04:41 PM

History

#1 Updated by jorisgio almost 3 years ago

I experience this issue too from time to time. There is two processes because of privsep, the actuall dhcp code runs in _dhcp while the controlling process runs as root.

#2 Updated by profmakx over 2 years ago

I have a patch which I currently classify as a hack, but can you try whether this helps?

#3 Updated by profmakx over 2 years ago

Meh. the patch contained garbage. The one attached to this one is correct.

#4 Updated by masu over 2 years ago

Thanks, I applied your patch and the laptop has been running for >7h without dhclient showing up as described. dhclient normally showed up earlier before applying your patch.

Looks promising ...

#5 Updated by profmakx over 2 years ago

  • Status changed from New to Closed
  • Assignee set to profmakx

This fix has been committed to -master and the 4.0 branch. Reopen if the problem persists.

Also available in: Atom PDF