Hibernate flushes file caches (so afterwards my machine is slow)

Bug #334536 reported by
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I have a lot of RAM, 2GB. I also have a swappartition of 2.9GB. Now I start a large game. The entire game, fits in 2GB (1,5GB memory used, 580MB cached). After i shutdown the game, all the gamefiles are still cached (1GB memory used, 580MB cached), so when I start the game again, there's no HD activity, and my game starts extremely fast. The swappartition is completely empty, 0KB used.

Now I hibernate my PC. After resuming I see the following:
488MB memory used, 49MB cached, 340MB swap used.

This means hibernate has flushed my filecache. Even worse, it has placed stuff into the (slow) swappartition.

When I now start the game, everything has to be loading from HD, wich is slow.

In my opinion, hibernate should copy the complete memory to the swappartition, including cached files. Also, hibernate should not place files into the swappartition.

System info:
$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
$ apt-cache policy linux
linux:
  Geïnstalleerd: (geen)
  Kandidaat: 2.6.27.11.14
  Versietabel:
     2.6.27.11.14 0
        500 http://nl.archive.ubuntu.com intrepid-updates/restricted Packages
        500 http://security.ubuntu.com intrepid-security/restricted Packages
     2.6.27.7.11 0
        500 http://nl.archive.ubuntu.com intrepid/restricted Packages

Best regards,
Cedric

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
NonfreeKernelModules: nvidia
Package: linux-image-2.6.27-11-generic 2.6.27-11.27
ProcCmdLine: root=UUID=99b86031-bd19-45b8-bafa-0aba92388bb7 ro quiet splash crashkernel=384M-2G:64M@16M,2G-:128M@16M
ProcEnviron:
 PATH=/home/User Name/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.27-11.27-generic
SourcePackage: linux

Revision history for this message
Cé (cedric-dewijs-telfort) wrote :
Revision history for this message
Cé (cedric-dewijs-telfort) wrote :

Dmesg...

Revision history for this message
Cé (cedric-dewijs-telfort) wrote :
Revision history for this message
Cé (cedric-dewijs-telfort) wrote :
Revision history for this message
Cé (cedric-dewijs-telfort) wrote :
Revision history for this message
Cé (cedric-dewijs-telfort) wrote :

I had posted this in ubuntu brainstorm, but it was turned down for not being an idea:
http://brainstorm.ubuntu.com/idea/18272/

Best regards,
Cedric

Revision history for this message
Dominik Stadler (dominik-stadler) wrote :

I think this is basically the same thing as Bug 329199

Revision history for this message
Dominik Stadler (dominik-stadler) wrote :

To me the following items all report basically the same thing:

#329199 Slow swapin speeds after resume from disk
#334536 Hibernate flushes file caches (so afterwards my machine is slow)
#428554 Ubuntu is unresponsive directly after returning from hibernate
#455661 I/O slow after resume from suspend

Not sure if they can be made duplicates and which ones should stay open.

A possible "solution" would be to use TuxOnIce, which handles cache differently and thus does not have this slow repsonsiveness after resume.

See http://brainstorm.ubuntu.com/idea/1544/, everybody who would like to have that, should vote for that idea to indicate that this is an important feature that is missing.

tags: added: kernel-hibernate
tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu release http://www.ubuntu.com/getubuntu/download . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-expired
Changed in linux (Ubuntu):
status: Incomplete → Invalid
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.