Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: OT : kernel using 75% of CPU
Guy,
Thank you very very much, this is a great
explanation, and is much appreciated.
To answer some of your questions (and add a
few!):
Yes, our client is experiencing performance
problems.
vmstat and swap -s seem to show some
swapping:
csuaor46> vmstat 2
10 procs memory page disk faults cpu r b w swap free re mf pi po fr de sr s6 s1 s1 s5 insy cs us sy id 2 0 0 14536 14776 67 1514 15 228 957 62760 262 0 2 2 0 640 115 931 25 25 50 2 0 0 6179304 62416 36 1893 0 744 5500 56488 1126 0 4 4 0 988 6159 917 23 55 22 1 0 0 6177696 62600 20 908 0 1032 11808 56488 2488 0 6 6 0 917 3781 667 24 51 25 0 0 0 6181688 62960 89 1528 4 288 444 56488 37 0 6 6 0 1076 19029 862 23 54 23 1 0 0 6181336 64432 15 1269 0 140 576 56488 110 0 1 1 0 456 8550 493 14 46 40 0 0 0 6182376 63776 18 2976 4 368 1008 62760 328 0 8 8 0 594 6163 831 14 54 32 2 0 0 6180800 63072 9 1746 0 300 1296 62760 202 0 1 1 0 661 4441 693 12 65 23 0 0 0 6178120 62728 47 1311 4 612 2272 56488 464 0 3 2 0 829 5535 801 34 38 28 2 0 0 6179944 64616 36 1322 0 364 764 62760 70 0 0 0 0 996 4786 739 13 69 18 0 0 0 6183112 62560 40 856 4 340 1444 62760 339 0 1 2 0 822 4107 707 10 40 50csuaor46> swap -stotal: 2602216k bytes allocated + 19960k reserved = 2622176k used, 6177752k available
0 Aug 16 ? 0:13 ora_smon_tstrn oracle 981 1 0 Aug 16 ? 0:14 ora_smon_tsdmo oracle 19561 1 0 Aug 23 ? 0:35
20
tty cpudevice r/s w/s kr/s kw/s wait actv svc_t %w %b tin tout us sy wt idsd6 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 18 25 25 2
11.3 24.7 0.0 0.1 32.0 0 2 sd12 1.0 1.4 11.3 24.7 0.0 0.1 45.3 0 2 sd58 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
<SPAN
class=315352916-28082001>Looking at your "top" output, you have a high system
load, but your user processes aren't using much CPU, but kernel time is high.
This suggests that your processes are spending time waiting for the kernel to
do something or other for them, load being the size of the run queue (all the
processes that are ready to run but not actually on the CPU). Are you actually
experiencing performance problems? If so, you need to look at what the system
is doing using "sar" "vmstat" and "iostat". One thing to watch out for is that
"top" is a primitive tool. Notice how large all your Oracle processes are?
That is because top isn't smart enough to realize that they're all connected
to shared memory, it's counting each one as being process size + SGA. So your
processes and your memory in use don't add up. Also top deals poorly with LWPs
(threads) - are you using MTS? You could simply be seeing threads stacking up
as they wait for network.
<SPAN
class=315352916-28082001>
<SPAN
class=315352916-28082001>HTH,
<SPAN
class=315352916-28082001>
<SPAN
class=315352916-28082001>g
<SPAN
class=315352916-28082001>
<FONT face=Tahoma
size=2>-----Original Message-----From: Jerry C
[mailto:usidba_at_YAHOO.COM]Sent: Tuesday, August 28, 2001 4:20
PMTo: Multiple recipients of list ORACLE-LSubject: OT
: kernel using 75% of CPU
Hi there,
I have a Sun e4500, running Solaris 2.7
and Oracle 8.1.7.1.0. Everything looks normal from a database
perspective, but when I run "top" it show the kernel being very
hog-like:
load averages: 14.38, 15.18,
15.1807:16:21126 processes: 118 sleeping, 4 running, 4 on cpuCPU states: 0.6% idle, 26.6% user, 72.8% kernel, 0.0% iowait, 0.0% swapMemory: 4096M real, 63M free, 216M swap in use, 5310M swap free
SIZE RES STATE TIME CPU COMMAND 2286 oracle 1 0 0 1844M 1814M run 9:44 13.90% oracle11068 oracle 1 0 0 2056K 1536K cpu0 0:02 1.53%top11333 oracle 1
1 0 0 1009M 984M run 0:00 0.63% oracle11368 oracle 1 33 0 1794M 1765M sleep 0:00 0.29% oracle19558 oracle 1 60 0 1797M 1751M
![]() |
![]() |