Antwort: Re: SLES 11 SP2 High-CPU usage on migration/X threads

[email protected] Wed, 23 Jan 2013 14:29:48 +0100
Newsgroups gmane.linux.suse.oracle.general
Message-ID <OF9C0207CA.79F382E6-ONC1257AFC.00497829-C1257AFC.004A2449@bgnet.de>
Dies ist eine mehrteilige Nachricht im MIME-Format.
--===============2068476679==
Content-Type: multipart/alternative; boundary="=_alternative 004A2448C1257AFC_="

Dies ist eine mehrteilige Nachricht im MIME-Format.
--=_alternative 004A2448C1257AFC_=
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Okay, now this is very strange.

I run following script every minute as a cronjob:

---- CUT ---
#!/bin/bash
echo "=3D=3D Start $(date)"  >> /root/highcpu/log.txt
ps aux | grep migration | grep -v grep >> /root/highcpu/log.txt
ps aux | grep plone | grep -v grep >> /root/highcpu/log.txt

echo "" >> /root/highcpu/log.txt
ps aux >> /root/highcpu/log.txt
echo "=3D=3D END" >> /root/highcpu/log.txt
echo "" >> /root/highcpu/log.txt
--- CUT ---

With following result:

=3D=3D Start Wed Jan 23 13:15:01 CET 2013
ps aux | grep migration
root         6  0.0  0.0      0     0 ?        S    Jan22   0:00=20
[migration/0]
root         8  0.0  0.0      0     0 ?        S    Jan22   0:00=20
[migration/1]
root        13  0.0  0.0      0     0 ?        S    Jan22   0:00=20
[migration/2]
root        17  0.0  0.0      0     0 ?        S    Jan22   0:00=20
[migration/3]

ps aux  (cutted log)
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         6  0.0  0.0      0     0 ?        S    Jan22   0:00=20
[migration/0]
root         8  0.0  0.0      0     0 ?        S    Jan22   0:00=20
[migration/1]
root        13 99.7  0.0      0     0 ?        S    Jan22 1274:16=20
[migration/2]
root        17  0.0  0.0      0     0 ?        S    Jan22   0:00=20
[migration/3]
=3D=3D END

In one second, the process migration jumps from 0:00 CPU usage to 1274:16.
The uptime of the server is 1278 minutes. Regarding the Uptime and the CPU =

Time the usage ist 99,7% in ps aux, because cpu usage ist not a real time=20
stat.

Best Regards,
Franz Kinader
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F

BG-Phoenics GmbH
Abteilung Betrieb
Loristra=DFe 6 a
80335 M=FCnchen

Fon: +49 (0) 89-12179-92 48
Fax: +49 (0) 89-12179-9 99
Mobil: +49 (0) 173-618-14 19

www.bg-phoenics.de
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Sitz der Gesellschaft: Hannover
Handelsregistergericht: Amtsgericht Hannover
HRB Nr.: 59345
Gesch=E4ftsf=FChrer: Burkhard Wolf (Vorsitz), Walter Lerch

--=_alternative 004A2448C1257AFC_=
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<font size=3D2 face=3D"sans-serif">Okay, now this is very strange.</font>
<br>
<br><font size=3D2 face=3D"sans-serif">I run following script every minute
as a cronjob:</font>
<br>
<br><font size=3D2 face=3D"sans-serif">---- CUT ---</font>
<br><font size=3D2 face=3D"sans-serif">#!/bin/bash</font>
<br><font size=3D2 face=3D"sans-serif">echo &quot;=3D=3D Start $(date)&quot=
; &nbsp;&gt;&gt;
/root/highcpu/log.txt</font>
<br><font size=3D2 face=3D"sans-serif">ps aux | grep migration | grep -v gr=
ep
&gt;&gt; /root/highcpu/log.txt</font>
<br><font size=3D2 face=3D"sans-serif">ps aux | grep plone | grep -v grep &=
gt;&gt;
/root/highcpu/log.txt</font>
<br>
<br><font size=3D2 face=3D"sans-serif">echo &quot;&quot; &gt;&gt; /root/hig=
hcpu/log.txt</font>
<br><font size=3D2 face=3D"sans-serif">ps aux &gt;&gt; /root/highcpu/log.tx=
t</font>
<br><font size=3D2 face=3D"sans-serif">echo &quot;=3D=3D END&quot; &gt;&gt;=
 /root/highcpu/log.txt</font>
<br><font size=3D2 face=3D"sans-serif">echo &quot;&quot; &gt;&gt; /root/hig=
hcpu/log.txt<br>
--- CUT ---</font>
<br>
<br><font size=3D2 face=3D"sans-serif">With following result:</font>
<br>
<br><font size=3D2 face=3D"sans-serif">=3D=3D Start Wed Jan 23 13:15:01 CET=
 2013</font>
<br><font size=3D2 face=3D"sans-serif">ps aux | grep migration</font>
<br><font size=3D2 face=3D"sans-serif">root &nbsp; &nbsp; &nbsp; &nbsp; 6 &=
nbsp;0.0
&nbsp;0.0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 0 ? &nbsp; &nbsp; &nbsp;
&nbsp;S &nbsp; &nbsp;Jan22 &nbsp; 0:00 [migration/0]</font>
<br><font size=3D2 face=3D"sans-serif">root &nbsp; &nbsp; &nbsp; &nbsp; 8 &=
nbsp;0.0
&nbsp;0.0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 0 ? &nbsp; &nbsp; &nbsp;
&nbsp;S &nbsp; &nbsp;Jan22 &nbsp; 0:00 [migration/1]</font>
<br><font size=3D2 face=3D"sans-serif">root &nbsp; &nbsp; &nbsp; &nbsp;13 &=
nbsp;0.0
&nbsp;0.0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 0 ? &nbsp; &nbsp; &nbsp;
&nbsp;S &nbsp; &nbsp;Jan22 &nbsp; 0:00 [migration/2]</font>
<br><font size=3D2 face=3D"sans-serif">root &nbsp; &nbsp; &nbsp; &nbsp;17 &=
nbsp;0.0
&nbsp;0.0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 0 ? &nbsp; &nbsp; &nbsp;
&nbsp;S &nbsp; &nbsp;Jan22 &nbsp; 0:00 [migration/3]</font>
<br>
<br><font size=3D2 face=3D"sans-serif">ps aux &nbsp;(cutted log)</font>
<br><font size=3D2 face=3D"sans-serif">USER &nbsp; &nbsp; &nbsp; PID %CPU %=
MEM
&nbsp; &nbsp;VSZ &nbsp; RSS TTY &nbsp; &nbsp; &nbsp;STAT START &nbsp; TIME
COMMAND</font>
<br><font size=3D2 face=3D"sans-serif">root &nbsp; &nbsp; &nbsp; &nbsp; 6 &=
nbsp;0.0
&nbsp;0.0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 0 ? &nbsp; &nbsp; &nbsp;
&nbsp;S &nbsp; &nbsp;Jan22 &nbsp; 0:00 [migration/0]</font>
<br><font size=3D2 face=3D"sans-serif">root &nbsp; &nbsp; &nbsp; &nbsp; 8 &=
nbsp;0.0
&nbsp;0.0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 0 ? &nbsp; &nbsp; &nbsp;
&nbsp;S &nbsp; &nbsp;Jan22 &nbsp; 0:00 [migration/1]</font>
<br><font size=3D2 face=3D"sans-serif">root &nbsp; &nbsp; &nbsp; &nbsp;13 9=
9.7
&nbsp;0.0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 0 ? &nbsp; &nbsp; &nbsp;
&nbsp;S &nbsp; &nbsp;Jan22 1274:16 [migration/2]</font>
<br><font size=3D2 face=3D"sans-serif">root &nbsp; &nbsp; &nbsp; &nbsp;17 &=
nbsp;0.0
&nbsp;0.0 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 0 ? &nbsp; &nbsp; &nbsp;
&nbsp;S &nbsp; &nbsp;Jan22 &nbsp; 0:00 [migration/3]</font>
<br><font size=3D2 face=3D"sans-serif">=3D=3D END</font>
<br>
<br><font size=3D2 face=3D"sans-serif">In one second, the process migration
jumps from 0:00 CPU usage to 1274:16.</font>
<br><font size=3D2 face=3D"sans-serif">The uptime of the server is 1278 min=
utes.
Regarding the Uptime and the CPU Time the usage ist 99,7% in ps aux, because
cpu usage ist not a real time stat.</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Best Regards,<br>
Franz Kinader</font>
<br><font size=3D1 color=3D#808080 face=3D"sans-serif">=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F<br>
<br>
BG-Phoenics GmbH<br>
Abteilung Betrieb<br>
Loristra=DFe 6 a<br>
80335 M=FCnchen<br>
<br>
Fon: +49 (0) 89-12179-92 48<br>
Fax: +49 (0) 89-12179-9 99<br>
Mobil: +49 (0) 173-618-14 19<br>
<br>
</font><a href=3D"www.bg-phoenics.de"><font size=3D1 color=3D#808080 face=
=3D"sans-serif">www.bg-phoenics.de</font></a><font size=3D1 color=3D#808080=
 face=3D"sans-serif"><br>
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F</font>
<br><font size=3D1 color=3D#808080 face=3D"sans-serif">Sitz der Gesellschaf=
t:
Hannover<br>
Handelsregistergericht: Amtsgericht Hannover<br>
HRB Nr.: 59345<br>
Gesch=E4ftsf=FChrer: Burkhard Wolf (Vorsitz), Walter Lerch<br>
</font>
--=_alternative 004A2448C1257AFC_=--

--===============2068476679==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
suse-sles-e mailing list
[email protected]
http://listx.novell.com/mailman/listinfo/suse-sles-e

--===============2068476679==--