Red Hat Bugzilla – Bug 875006
excessive cpu usage if a file with a left parenthesis exists in /etc/sysconfig/network-scripts
Last modified: 2014-08-04 18:09:49 EDT
Description of problem:
This is actually a problem of netcf which libvirt uses to count the number of interfaces, but it results in a libvirt problem so I think it should be solved here as well, by not using too much cpu in the case netcf fails repeatedly.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. sudo touch /etc/sysconfig/network-scripts/ifcfg-\(
top shows libvirt using 40% cpu
no significant change in cpu usage
The fault path is actually in augeas usage by netcf, and most of the cpu is in regexp code in glibc per perf record.
I couldn't grok the augeas code so I just started removing the ifcfg files until finding the faulty one.
This doesn't seem to be an issue with F20 at least, and given that F18 is EOL real soon, just closing