Bug 866439

Summary: kwapd0 using 100% cpu
Product: [Fedora] Fedora Reporter: volnei
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: gansalmon, itamar, john.ellson, jonathan, kernel-maint, madhu.chinakonda, travneff
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-01 02:18:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
dmesg file none

Description volnei 2012-10-15 11:24:41 UTC
Created attachment 627336 [details]
dmesg file

Description of problem:

kwap is using 100% cpu. I do not know why this is happening and to
Honestly, I had seen the problem but had not gone through it.
Would help to solve it.

Please, if you need more information please let me know

Thanks

Version-Release number of selected component (if applicable):

kernel-3.6.1-1.fc17.x86_64



How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:


[root@vmsmb01 ~]# free
             total       used       free     shared    buffers     cached
Mem:       3786572    1583048    2203524          0     114472     973040
-/+ buffers/cache:     495536    3291036
Swap:      6258684          0    6258684





Tasks: 126 total,   2 running, 124 sleeping,   0 stopped,   0 zombie
Cpu0  :  0.0%us,  0.0%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.3%st
Cpu1  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu2  :  0.0%us, 99.7%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.3%hi,  0.0%si,  0.0%st
Cpu3  :  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3786572k total,  1578952k used,  2207620k free,   113508k buffers
Swap:  6258684k total,        0k used,  6258684k free,   974048k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                    
   61 root      20   0     0    0    0 R 99.5  0.0   2045:59 kswapd0                                                                                                    
 1253 mysql     20   0  870m 317m 6896 S  0.3  8.6   2:40.31 mysqld                                                                                                     
10039 root      20   0 15248 1368 1028 R  0.3  0.0   0:00.07 top                                                                                                        
    1 root      20   0 67564  25m 1868 S  0.0  0.7   0:01.94 systemd                                                                                                    
    2 root      20   0     0    0    0 S  0.0  0.0   0:00.01 kthreadd                                                                                                   
    3 root      20   0     0    0    0 S  0.0  0.0   0:00.31 ksoftirqd/0                                                                                                
    5 root       0 -20     0    0    0 S  0.0  0.0   0:00.00 kworker/0:0H                                                                                               
    6 root      20   0     0    0    0 S  0.0  0.0   0:00.01 kworker/u:0                                                                                                
    7 root       0 -20     0    0    0 S  0.0  0.0   0:00.00 kworker/u:0H                                                                                               
    8 root      RT   0     0    0    0 S  0.0  0.0   0:00.17 migration/0                                                                                                
    9 root      RT   0     0    0    0 S  0.0  0.0   0:01.14 watchdog/0                                                                                                 
   10 root      RT   0     0    0    0 S  0.0  0.0   0:00.02 migration/1                                                                                                
   11 root      20   0     0    0    0 S  0.0  0.0   0:03.80 kworker/1:0                                                                                                
   12 root       0 -20     0    0    0 S  0.0  0.0   0:00.00 kworker/1:0H                                                                                               
   13 root      20   0     0    0    0 S  0.0  0.0   0:00.39 ksoftirqd/1                                                                                                
   14 root      RT   0     0    0    0 S  0.0  0.0   0:01.58 watchdog/1                                                                                                 
   15 root      RT   0     0    0    0 S  0.0  0.0   0:00.06 migration/2                                                                                                
   17 root       0 -20     0    0    0 S  0.0  0.0   0:00.00 kworker/2:0H                                                                                               
   18 root      20   0     0    0    0 S  0.0  0.0   0:00.52 ksoftirqd/2                                                                                                
   19 root      RT   0     0    0    0 S  0.0  0.0   0:02.39 watchdog/2                                                                                                 
   20 root      RT   0     0    0    0 S  0.0  0.0   0:00.06 migration/3                                                                                                
   22 root       0 -20     0    0    0 S  0.0  0.0   0:00.00 kworker/3:0H                                                                                               
   23 root      20   0     0    0    0 S  0.0  0.0   0:00.02 ksoftirqd/3                                                                                                
   24 root      RT   0     0    0    0 S  0.0  0.0   0:02.33 watchdog/3                                                                                                 
   25 root       0 -20     0    0    0 S

Comment 1 Andrew 2013-04-16 16:41:44 UTC
I face something similar with current F18 x64 kernels (3.8.x).

Sometimes kswapd0 consumes a lot of CPU with no relation to swapping (free RAM exists, swap is empty, no visible apps activity which could be related, no swap activity in iotop).
System slowdowns significantly and then may even freeze with no reaction on magic keys (sometimes). HDD LED lights constantly while it.

Not sure in the reason because at the same time a lot of CPU is spent on HW IRQ (have an ugly USB device which generates ~1000 irqs/s). Disconnecting of that device doesn't cure the slowdown symptoms when they already exists, though.

Overall effect seems to be accumulated — firstly you don't notice it but then things became more and more worse without any significant input from you.

kernel-3.8.6-203.fc18.x86_64

Comment 2 Fedora End Of Life 2013-07-03 23:32:26 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2013-08-01 02:18:38 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.