Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Power_saving & watchdog is using huge 200% CPU

User discussion about Debian Development, Debian Project News and Announcements. Not for support questions.
Post Reply
Message
Author
rbmramesh
Posts: 3
Joined: 2014-07-30 09:30

Power_saving & watchdog is using huge 200% CPU

#1 Post by rbmramesh »

I have a server running "Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3+deb7u2 x86_64 GNU/Linux
Some of the server suddenly became slow and when I saw with the top command I was able to
see the watchdog is using huge %CPU Please see the below top command output.



top - 10:52:50 up 1:06, 1 user, load average: 19.95, 19.87, 18.90
Tasks: 106 total, 19 running, 87 sleeping, 0 stopped, 0 zombie
%Cpu(s): 8.9 us, 48.8 sy, 0.0 ni, 41.2 id, 0.1 wa, 0.0 hi, 1.1 si,
0.0 st
KiB Mem: 8116188 total, 610952 used, 7505236 free, 25112 buffers
KiB Swap: 0 total, 0 used, 0 free, 264508 cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7 root rt 0 0 0 0 R *242.1* 0.0 29:07.39 *watchdog* /0
12 root rt 0 0 0 0 R *240.1* 0.0 28:30.02 *watchdog* /1
16 root rt 0 0 0 0 R 238.2 0.0 28:03.12 watchdog/2
24 root rt 0 0 0 0 R 233.1 0.0 27:05.23 watchdog/4
860 root -2 0 0 0 0 R * 90.3* 0.0 9:08.23 * power_saving/4*
3762 snort 2 -18 482m 158m 4512 R 69.8 2.0 20:49.22 snort
874 root -2 0 0 0 0 R *67.4* 0.0 6:46.99*power_saving/6 *
28 root rt 0 0 0 0 S 36.5 0.0 29:47.57 watchdog/5
728 root -2 0 0 0 0 R 34.8 0.0 8:49.47 power_saving/1
36 root rt 0 0 0 0 R 27.5 0.0 32:54.00 watchdog/7
4878 root 20 0 23184 1592 1124 R 1.5 0.0 0:00.31 top

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: Power_saving & watchdog is using huge 200% CPU

#2 Post by vbrummond »

I have read some suggestions to add nmi_watchdog=0 to the kernel commands in grub. You can do so at the boot menu temporarily. Or permanently by editing /etc/default/grub and then running update-grub.

Disable temporarily at runtime (or to save yourself a reboot after disabling in grub) by running

Code: Select all

echo 0 > /proc/sys/kernel/nmi_watchdog
Always on Debian Testing

rbmramesh
Posts: 3
Joined: 2014-07-30 09:30

Re: Power_saving & watchdog is using huge 200% CPU

#3 Post by rbmramesh »

Thanks vbrummond.
I issued this command "echo 0 > /proc/sys/kernel/nmi_watchdog" . After issued this watchdog cpu consume percentage is totally 0 but power_saving process consumes all processor 100 % please look at the screenshot .Please see the two outputs

Before issuing the command o/P
Tasks: 143 total, 11 running, 132 sleeping, 0 stopped, 0 zombie
%Cpu(s): 12.4 us, 60.8 sy, 0.0 ni, 26.4 id, 0.1 wa, 0.0 hi, 0.4 si, 0.0 st
KiB Mem: 8116184 total, 7913512 used, 202672 free, 271392 buffers
KiB Swap: 0 total, 0 used, 0 free, 6769020 cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7 root rt 0 0 0 0 S 303.5 0.0 163:06.35 watchdog/0
36 root rt 0 0 0 0 S 299.5 0.0 190:44.85 watchdog/7
32 root rt 0 0 0 0 S 195.6 0.0 186:12.10 watchdog/6
18326 root -2 0 0 0 0 R 80.0 0.0 45:08.38 power_saving/3
21735 root 20 0 242m 149m 3708 R 70.2 1.9 69:06.84 puppet
18322 root -2 0 0 0 0 R 50.9 0.0 45:03.65 power_saving/0
18329 root -2 0 0 0 0 R 50.9 0.0 40:24.43 power_saving/6
18325 root -2 0 0 0 0 R 20.5 0.0 47:01.17 power_saving/2
27467 snort 2 -18 538m 218m 4528 S 10.1 2.8 10:53.08 snort
11692 root 20 0 24552 2920 1384 S 7.1 0.0 0:44.89 htop
29067 root 20 0 5836 2452 580 S 5.5 0.0 0:38.87 rkhunter
27355 root 20 0 46628 9396 1148 S 3.7 0.1 2:09.40 barnyard2
2135 root 20 0 23308 1680 1156 R 3.4 0.0 0:00.25 top
3871 root 20 0 21052 6180 5260 S 0.6 0.1 67:40.23 tcpdump

echo 0 > /proc/sys/kernel/nmi_watchdog
After issuing the command o/p
Tasks: 128 total, 12 running, 116 sleeping, 0 stopped, 0 zombie
%Cpu(s): 12.0 us, 74.6 sy, 0.0 ni, 13.1 id, 0.0 wa, 0.0 hi, 0.4 si, 0.0 st
KiB Mem: 8116184 total, 7960128 used, 156056 free, 269228 buffers
KiB Swap: 0 total, 0 used, 0 free, 6867260 cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18326 root -2 0 0 0 0 R 163.5 0.0 57:19.53 power_saving/3
18327 root -2 0 0 0 0 R 97.5 0.0 53:03.75 power_saving/4
18325 root -2 0 0 0 0 R 96.4 0.0 59:00.49 power_saving/2
18322 root -2 0 0 0 0 R 96.2 0.0 57:26.20 power_saving/0
18328 root -2 0 0 0 0 R 95.4 0.0 58:44.83 power_saving/5
18329 root -2 0 0 0 0 D 95.4 0.0 50:54.69 power_saving/6
21735 root 20 0 247m 153m 3708 R 53.2 1.9 93:48.18 puppet
15552 root 2 -18 517m 196m 2392 R 41.0 2.5 2:35.86 snort
18323 root -2 0 0 0 0 R 12.4 0.0 57:14.79 power_saving/1


Please advise me to solve the issue.

Regards,
Ramesh R

zeeshan002
Posts: 1
Joined: 2015-04-16 05:48

Re: Power_saving & watchdog is using huge 200% CPU

#4 Post by zeeshan002 »

Since Jesse is in development I expect things like this. I believe the problem started when the remaining Gnome Shell packages came in, at least that is when I noticed it. Has this bug been reported? How can I contribute? Just looking for a little advise from some experienced members here. :)
aliiii

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Power_saving & watchdog is using huge 200% CPU

#5 Post by stevepusser »

The original poster is running Debian stable, that only makes sense when running a server. Nothing to do with Jessie, and very probably nothing to do with GNOME or any GUI at all.
MX Linux packager and developer

Post Reply