kswapd0 high CPU usage and lagging system

Bug #1185172 reported by dimovnike
50
This bug affects 10 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Hi,
when the RAM is about to be full the kswapd0 process starts using very much CPU like 80-100%, and the system is unusable because of a severe lagging. What is interestin is that thunderbird seems to trigger this (e.g. when i shut down thunderbird everything comes ot normal, so let me know if you need to know the size of my thunderbird databases) more info on this comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/721896/comments/39

When this is happening, the free -m outout looks liek this:

             total used free shared buffers cached
Mem: 3920 3822 97 0 0 344
-/+ buffers/cache: 3477 442
Swap: 0 0 0

WORKAROUND: Enabling 1Gb swap seems to solve this issue.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: linux-image-3.8.0-22-generic 3.8.0-22.33
ProcVersionSignature: Ubuntu 3.8.0-22.33-generic 3.8.11
Uname: Linux 3.8.0-22-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: nick 2166 F.... pulseaudio
Date: Wed May 29 00:08:11 2013
InstallationDate: Installed on 2012-06-22 (340 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MachineType: ASUSTeK Computer Inc. K50IJ
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB:
 0 inteldrmfb
 1 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.8.0-22-generic root=UUID=10fbfaa4-4532-4680-ab0f-13cf0cf1e40f ro loop.max_part=16 quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.8.0-22-generic N/A
 linux-backports-modules-3.8.0-22-generic N/A
 linux-firmware 1.106
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
UpgradeStatus: Upgraded to raring on 2013-03-24 (65 days ago)
dmi.bios.date: 05/08/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 207
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: K50IJ
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.asset.tag: ATN12345678901234567
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr207:bd05/08/2009:svnASUSTeKComputerInc.:pnK50IJ:pvr1.0:rvnASUSTeKComputerInc.:rnK50IJ:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr1.0:
dmi.product.name: K50IJ
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK Computer Inc.

Revision history for this message
dimovnike (dimovnike) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.10 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10-rc3-saucy/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
penalvch (penalvch)
tags: added: bios-outdated-207 needs-upstream-testing regression-potential
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

This may be a duplicate of bug 1152736

Revision history for this message
dimovnike (dimovnike) wrote :

the prolem is gone in linux-image-3.10.0-031000rc3-generic_3.10.0-031000rc3.201305261935_amd64.deb ! Also the system has a faster feel (and some of the apps as thunderbird and android emulator seem to move faster)

Is it possible to get this kernel in raring via the usual update one day? (because now there were some DKMS erros which ignored for the time of this test) or is it possible to enable a PPA which will maintain this mainline kernel up to date?

tags: added: kernel-fixed-upstream
dimovnike (dimovnike)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
dimovnike (dimovnike) wrote :

forgot to mention that the test was done with swap off. Also right before the test I confirmed that the bug is still prezent with the stable raring kernel (that the system becomes unresponsive and almost hangs, u can barely move the mouse). After the new kernel was installed and reboot, the problem is gone.

penalvch (penalvch)
tags: added: kernel-fixed-upstream-v3.10-rc3
removed: needs-upstream-testing
penalvch (penalvch)
tags: added: needs-reverse-bisect
penalvch (penalvch)
description: updated
Revision history for this message
penalvch (penalvch) wrote :

dimovnike, thank you for testing the newest mainline kernel. Could you please test for this problem in Saucy (i.e. 0GB swap/swap off and kswapd0 has 80-100% CPU usage) via http://cdimage.ubuntu.com/daily-live/current/ and comment to the results?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Michael-tutty (michael-tutty) wrote :

I'm running stable raring right now on SSD, and having this problem daily. Can someone point me to a HOWTO/instructions to get the updated kernel until it's available mainline?

Revision history for this message
penalvch (penalvch) wrote :

Michael-tutty, if you have a bug in Ubuntu, the Ubuntu Kernel team, Ubuntu Bug Control team, and Ubuntu Bug Squad would like you to please file a new report by executing the following in a terminal:
ubuntu-bug linux

For more on this, please see the Ubuntu Kernel team article:
https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports

the Ubuntu Bug Control team and Ubuntu Bug Squad team article:
https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue

and Ubuntu Community article:
https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Please note, not filing a new report would delay your problem being addressed as quickly as possible.

Thank you for your understanding.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
marco (nazgul17) wrote :

The problem is still affecting me. I have no swap partition but at some times computer starts lagging and disk start working as hell. top command tells me chromium and kswapd usage is very high.

Revision history for this message
penalvch (penalvch) wrote :

marco, if you have a bug in Ubuntu, the Ubuntu Kernel team, Ubuntu Bug Control team, and Ubuntu Bug Squad would like you to please file a new report by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Please note, not filing a new report would delay your problem being addressed as quickly as possible.

No need exists to comment here at this time. After reading the above documentation in it's entirety, if you have further questions, you are welcome to redirect them to the appropriate mailing list or forum via http://www.ubuntu.com/support/community/mailinglists , or you may contact me directly.

Thank you for your understanding.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.