Red Hat Bugzilla – Bug 77653
xinetd excessive CPU usage
Last modified: 2014-08-31 19:24:24 EDT
Description of Problem: xinetd is using 99% of CPU time.
Version-Release number of selected component (if applicable):xinetd-2.3.7-2
How Reproducible: problem occurs after installation is completed. Killing xinetd
removes the excess CPU usage.
Steps to Reproduce:
1.install 8.0 with xinetd included
Actual Results: xinetd uses 99% of CPU and causes a load average of 1.00
Expected Results: 0% CPU usage; minimal load average
Additional Information: This problem has occurred in the two most recent 8.0
installs from a CD that
I had run a mediacheck on just prior to the problem installs. Other installs
prior to the mediacheck, on similar machines, didn't create the xinetd problem.
Can you provide an strace file to see what xinetd is doing on your machine (the
before mediacheck and after mediacheck scenarios)?
# ps ax | grep xinetd
763 ? S 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
# strace -p 763 2> output
<< let it run for about 10 seconds >>
Attach your output file to this bug.
strace output (pre-mediacheck) on working 8.0 machines:
select(6, [3 5], NULL, NULL, NULL <unfinished ...>
strace -p doesn't produce any output on excessive CPU (post-mediacheck) machines
What's the network configuration like on the machines that fail? Also, can you
send me (attach to this bug report) the contents of your /etc/xinetd.conf and
the output of an ls -la of your /etc/xinetd.d directory? I haven't been able to
reproduce this problem on any of the machines I've tried here.
Created attachment 91123 [details]
network, xinetd information
I see two interesting things about your services in /etc/xinetd.d/:
1: I can't find a linuxconf-web file anywhere on my 8.0 CDs. Can you run "rpm
-q -f /etc/xinetd.d/linuxconf-web" and tell me what package that file is from?
Also, can you attach a copy of it to this bug?
2: your /etc/xinetd.d/sgi_fam file is larger than mine. Mine matches the one in
our CVS. Can you attach a copy of your file to this bug?
Can you also try moving both of these files out of /etc/xinetd.d and restarting
xinetd? If one of these files is the culprit, doing this should cause xinetd to
Created attachment 91125 [details]
linuxconf-web and sgi_fam info
sgi_fam is the culprit. It is disabled on the machines with excessive CPU.
Moving it out of xinetd.d solved the problem, so it seems to be the combination
of present/disabled that is the cause.
linuxconf-web is a holdover from 7.3 apparently.
I'm attaching the rest of the info you asked for.
It looks like linuxconf-web dates back to 7.2. I can't see in in the 7.3
Setting up my 8.0 system with the services you have does not trigger the bug
here. I'm starting to think it's directory entry order related. Does putting
the original sgi_fam entry back into a formerly-broken system cause it to break
again? If it does, can you do a "ls -U /etc/xinetd.d" and attach it to this bug?
I'm in the process of releasing an xinetd errata that upgrades it to 2.3.11. I
don't know if it will have any effect on this problem or not, but it does fix a
lot of others. If you want to try it, I've put a copy at
Created attachment 91161 [details]
Putting sgi_fam back in breaks it again.
Here's the output of ls -U /etc/xinetd.d
OK. It's caused by a double-free in sc_free() and get_service_entry(). It's
already fixed in 2.3.11, so please try the rpm I put on people.redhat.com
The correct URL is
AFAICT this was fixed by the xinetd-2.3.11-1.8.0 erratum.