Unable to free memory with current tuxonice-git
Harald Judt <[email protected]> Thu, 26 Apr 2012 11:06:44 +0200
| Newsgroups | gmane.linux.swsusp.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Actually the following error has already been there since >3.2-rc7, but
until now I simply worked around it using echo 1 > /proc/sys/vm/drop_caches.
In short, tuxonice can't free enough memory:
TuxOnIce 3.2.1, with support for usm, compression, block i/o, swap
storage, userui.
Initiating a hibernation cycle.
Using configuration file /etc/splash/tuxonice/1920x1080.cfg.
No silent picture specified in the theme config.
Framebuffer support initialised successfully.
Starting other threads.Freezing user space processes ... (elapsed 0.01
seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Restarting kernel threads ... done.
Asked shrink_all_memory for 2028770 low pages & 610379 pages from
anywhere, got 0.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Restarting kernel threads ... done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Restarting kernel threads ... done.
Asked shrink_all_memory for 2013849 low pages & 595383 pages from
anywhere, got 0.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Restarting kernel threads ... done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Free:40974(40974). Sets:2653287(2653287),0(0).
Nosave:1497981-1494456=3525. Storage:1045374/1045374(1615972=>1591972).
Needed:579630,0,1998065(100,1303,40000,2560) (PS2:no)
Failed to prepare the image because...
- The maximum number of iterations was reached without successfully
preparing the image.
- We need at least 1591972 pages of storage (ignoring the header), but
only have 1045374.
- We need to free 579630 lowmem pageset 1 pages.
Restarting tasks ... Restarting kernel threads ... done.
done.
TuxOnIce debugging info:
- TuxOnIce core : 3.2.1
- Kernel Version : 3.3.2+
- Compiler vers. : 4.6
- Attempt number : 3
- Parameters : 4233 700424 0 1 2560 5
- Overall expected compression percentage: 40.
- Compressor is 'lzo'.
- Block I/O active.
Used 0 pages from swap on /dev/sdb2.
- Max outstanding reads 1. Max writes 0.
Memory_needed: 1024 x (4096 + 360 + 104) = 4669440 bytes.
Free mem throttle point reached 0.
- Swap Allocator enabled.
Swap available for image: 1048575 pages.
- No I/O speed stats available.
- Extra pages : 16279 used/40000.
- Result : Hibernation was aborted.
: Insufficient storage was available.
: Unable to free enough memory to hibernate.
: We were unable to successfully prepare an image.
Note the shrink_all_memory results. It's not that there is not enough
memory available, but nothing gets freed. The whole process is over very
quickly.
As already said, echo 1 > /proc/sys/vm/drop_caches makes it work. But
then, no memory needs to be freed.
Harald
--
`Experience is the best teacher.'