[Bug 582272] [NEW] resume from suspend-to-ram results in heavy swap thrashing

Sabin Iacob iacobs at m0n5t3r.info
Tue May 18 14:29:17 UTC 2010


Public bug reported:

With default settings (vm.swappiness=60), wakeup after a few hours of suspending results in heavy swap thrashing (looks like all memory is being copied to swap and then read back); this is even more problematic for me, since 
1. I am on a 2 year old (MLC) SSD, which will eventually take a hit from this
2. it's a JMicron one, which means I see something like 70-80% IOWait, and everything moves like crap

Setting vm.swappiness to 0 fixes this, but causes me other problems
(with preemptive swapping disabled, IOWait lockups happen if I fill all
the available RAM, and that usually happens when I'm working).

My theory is that some timer goes bananas,  and after resuming the
lernel thinks all applications haven't been used for x hours, hence they
should be committed to swap in order to free memory, and then all of
them are being used again, so they need to be brought back...

so far, my fix involves setting vm.swappiness to 0 before suspend, and
back to 60 after resume, I attached the script that does it (place in
/usr/lib/pm-utils/sleep.d)

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-22-generic 2.6.32-22.33
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
AplayDevices: aplay: device_list:223: no soundcards found...
Architecture: i386
ArecordDevices: arecord: device_list:223: no soundcards found...
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC0:  m0n5t3r    1483 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Date: Tue May 18 16:42:13 2010
HibernationDevice: RESUME=UUID=3d9c5f9a-a197-4a55-abe8-ae87c27dc444
MachineType: ASUSTeK Computer INC. 1000H
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.32-22-generic root=UUID=09346cac-8fb4-491e-bf27-3db050bdfab3 ro quiet splash
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.34
SourcePackage: linux
StagingDrivers: rt2860sta
Title: [STAGING]
WifiSyslog:
 
dmi.bios.date: 07/11/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0901
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: 1000H
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: x.xx
dmi.chassis.asset.tag: 0x00000000
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTek Computer INC.
dmi.chassis.version: x.x
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0901:bd07/11/2008:svnASUSTeKComputerINC.:pn1000H:pvrx.x:rvnASUSTeKComputerINC.:rn1000H:rvrx.xx:cvnASUSTekComputerINC.:ct10:cvrx.x:
dmi.product.name: 1000H
dmi.product.version: x.x
dmi.sys.vendor: ASUSTeK Computer INC.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 lucid needs-upstream-testing regression-release resume staging suspend ubuntu-une

-- 
resume from suspend-to-ram results in heavy swap thrashing
https://bugs.launchpad.net/bugs/582272
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list