Summary: | net/dhcprelya consumes cpu on FreeBSD 10 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Adam McDougall <ebay> | ||||
Component: | Individual Port(s) | Assignee: | Sergey Matveychuk <sem> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | lenzi.sergio | ||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Adam McDougall
2014-07-31 22:24:11 UTC
over to maintainer. (In reply to mcdouga9 from comment #0) But what about real packet rate for DHCP packets? This is with zero DHCP requests because I can reproduce the issue with no active network connections (cables unplugged). So far I can reproduce it on systems with 'em' nic, 82574L and 82546EB but I could not reproduce it in Xen with xn0 or re0. I verified there is no problem in 9. Created attachment 151043 [details]
increase timeout from 10 usec to 1ms
increase the select timeout from 10usec to 1000 usec
this will reduce the number of system calls in the select loop by 1/100
so the program does not consumes cpu on idle any more
It worked for me...
put the attach in the file directory of the port, with a name patch-xxxx and rebuild + reinstall the port.. Thank you for the patch, it greatly reduces the CPU load but does not completely eliminate it on an idle network: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 1295 root 2 20 0 23212K 2704K bpf 0 0:01 0.29% dhcprelya I'll use the patch for now but I think the bug report should stay open for a fuller fix. |