Bug clearly visible when using a tool such as iftop. Uses near 100% of kernel CPU usage on any given CPU. Downgrade the library to version 1.0.0-r2 solve issue upon relaunch. Reproducible: Always Steps to Reproduce: 1. emerge -1 net-libs/libpcap-1.0.1_pre20090616 && emerge iftop 2. iftop 3. look at output of top or htop Actual Results: iftop's CPU utilization will be ~97-98% kernel time when =net-libs/libpcap-1.0.1_pre20090616 is used Expected Results: iftop CPU utilization would be ~1-2% user time when using a <=net-libs/libpcap-1.0.0-r2 Simply masking the affected version in /etc/portage/package.mask and emerge -NauD @system @world will solve the issue. Major issue on non-SMP systems or systems with strict cooling or resource requirements. Otherwise it's minor so I'm at a mix as how to report it.
I can confirm the reported problem with iftop.
net-analyzer/snort and a bunch of other stuff seems to be affected too here a list of some packages on my system that are dependent on net-libs/libpcap: net-analyzer/iftop-0.17 (net-libs/libpcap) net-analyzer/nmap-4.85_beta9 (net-libs/libpcap) net-analyzer/snort-2.8.4.1 (virtual/libpcap) net-dialup/ppp-2.4.4-r22 (activefilter ? >=virtual/libpcap-0.9.4) net-misc/knock-0.5 (net-libs/libpcap) net-wireless/wpa_supplicant-0.6.9 (!kernel_linux ? net-libs/libpcap) re-compiling snort and iftop right now, hopefully this fixes the high cpu load (100%) of snort which I didn't have before the update ...
> re-compiling snort and iftop right now, hopefully this fixes the high cpu load > (100%) of snort which I didn't have before the update ... At least for me I found I only needed to recompile the library, but that might be determined on a per-package basis
I did recompile both libpcap and snort, iftop, after a reboot (after the recompile it still produced that high cpu load, it most probably was still in memory due to its dependency of wpa_supplicant) snort isn't consuming that much anymore success ! Thanks for reporting, Michael :)
Thank you for report Michael. Fixed in libpcap-1.0.1_pre20090708.