2.6.37-rc1+: hibernate regression, claims not enough swap space
Hi!
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cached
thinkpad_acpi: ACPI backlight control delay disabled
PM: thaw of devices complete after 539.577 msecs
PM: writing image.
PM: Free swap pages: 194166
PM: Not enough free swap
Restarting tasks ...
Aha, and it is the new default /sys/power/image_size .. setting it to 0 lets machine hibernate. I guess the new default is very wrong for highmem machine...
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 1 line · Pavel Machek
Hi!
Hi,
Quoted 7 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cached
Well, the swap is rather in short supply. Below the 50% of RAM recommendation.
Quoted 10 lines
thinkpad_acpi: ACPI backlight control delay disabled
PM: thaw of devices complete after 539.577 msecs
PM: writing image.
PM: Free swap pages: 194166
PM: Not enough free swap
Restarting tasks ...Aha, and it is the new default
/sys/power/image_size.. setting it to 0 lets machine hibernate. I guess the new default is very wrong for highmem machine...
The old default did the wrong thing for everyone with sufficient swap (it made the OOM code trigger every time while preparing to create an image), so I think the new one it's better overall.
Thanks,
Rafael
Quoted 1 line · Pavel Machek
Hi!
Hi,
Quoted 7 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cached
Well, the swap is rather in short supply. Below the 50% of RAM recommendation.
Quoted 10 lines
thinkpad_acpi: ACPI backlight control delay disabled
PM: thaw of devices complete after 539.577 msecs
PM: writing image.
PM: Free swap pages: 194166
PM: Not enough free swap
Restarting tasks ...Aha, and it is the new default
/sys/power/image_size.. setting it to 0 lets machine hibernate. I guess the new default is very wrong for highmem machine...
The old default did the wrong thing for everyone with sufficient swap (it made the OOM code trigger every time while preparing to create an image), so I think the new one it's better overall.
Thanks,
Rafael
Hi!
Quoted 9 lines
Quoted 7 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cachedWell, the swap is rather in short supply. Below the 50% of RAM recommendation.
Well, but the biggest image we can write is not 50% of RAM, but 50% of lowmem... and swap is nearly as big as lowmem in this case -- so this machine is not misconfigured.
root@amd:/# cat /proc/meminfo MemTotal: 2054716 kB MemFree: 192048 kB Buffers: 97628 kB Cached: 1427088 kB SwapCached: 0 kB Active: 547580 kB Inactive: 1091744 kB Active(anon): 57060 kB Inactive(anon): 58908 kB Active(file): 490520 kB Inactive(file): 1032836 kB Unevictable: 0 kB Mlocked: 0 kB HighTotal: 1178440 kB HighFree: 128092 kB LowTotal: 876276 kB LowFree: 63956 kB SwapTotal: 779148 kB SwapFree: 779148 kB
Quoted 7 lines
Quoted 7 lines
thinkpad_acpi: ACPI backlight control delay disabled
PM: thaw of devices complete after 539.577 msecs
PM: writing image.
PM: Free swap pages: 194166
PM: Not enough free swap
Restarting tasks ...
Quoted 7 lines
Quoted 3 lines
Aha, and it is the new default
/sys/power/image_size.. setting it to 0 lets machine hibernate. I guess the new default is very wrong for highmem machine...The old default did the wrong thing for everyone with sufficient swap (it made the OOM code trigger every time while preparing to create an image), so I think the new one it's better overall.
OOM? No... image_size of 0 should have written "as small image as possible"; slow, but should not OOM.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Hi!
Quoted 9 lines
Quoted 7 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cachedWell, the swap is rather in short supply. Below the 50% of RAM recommendation.
Well, but the biggest image we can write is not 50% of RAM, but 50% of lowmem... and swap is nearly as big as lowmem in this case -- so this machine is not misconfigured.
root@amd:/# cat /proc/meminfo MemTotal: 2054716 kB MemFree: 192048 kB Buffers: 97628 kB Cached: 1427088 kB SwapCached: 0 kB Active: 547580 kB Inactive: 1091744 kB Active(anon): 57060 kB Inactive(anon): 58908 kB Active(file): 490520 kB Inactive(file): 1032836 kB Unevictable: 0 kB Mlocked: 0 kB HighTotal: 1178440 kB HighFree: 128092 kB LowTotal: 876276 kB LowFree: 63956 kB SwapTotal: 779148 kB SwapFree: 779148 kB
Quoted 7 lines
Quoted 7 lines
thinkpad_acpi: ACPI backlight control delay disabled
PM: thaw of devices complete after 539.577 msecs
PM: writing image.
PM: Free swap pages: 194166
PM: Not enough free swap
Restarting tasks ...
Quoted 7 lines
Quoted 3 lines
Aha, and it is the new default
/sys/power/image_size.. setting it to 0 lets machine hibernate. I guess the new default is very wrong for highmem machine...The old default did the wrong thing for everyone with sufficient swap (it made the OOM code trigger every time while preparing to create an image), so I think the new one it's better overall.
OOM? No... image_size of 0 should have written "as small image as possible"; slow, but should not OOM.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 7 lines · Pavel Machek
Hi!
Quoted 5 lines
Quoted 5 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cachedWell, the swap is rather in short supply. Below the 50% of RAM recommendation.
Well, but the biggest image we can write is not 50% of RAM, but 50% of lowmem... and swap is nearly as big as lowmem in this case -- so this machine is not misconfigured.
BTW swsusp.txt may need updating, it says:
echo N > /sys/power/image_size
before suspend (it is limited to 500 MB by default).
...
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 7 lines · Pavel Machek
Hi!
Quoted 5 lines
Quoted 5 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cachedWell, the swap is rather in short supply. Below the 50% of RAM recommendation.
Well, but the biggest image we can write is not 50% of RAM, but 50% of lowmem... and swap is nearly as big as lowmem in this case -- so this machine is not misconfigured.
BTW swsusp.txt may need updating, it says:
echo N > /sys/power/image_size
before suspend (it is limited to 500 MB by default).
...
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 17 lines · Pavel Machek
Quoted 7 lines · Pavel Machek
Hi!
Quoted 5 lines
Quoted 5 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cachedWell, the swap is rather in short supply. Below the 50% of RAM recommendation.
Well, but the biggest image we can write is not 50% of RAM, but 50% of lowmem... and swap is nearly as big as lowmem in this case -- so this machine is not misconfigured.
Quoted 5 lines
BTW swsusp.txt may need updating, it says:
echo N >
/sys/power/image_sizebefore suspend (it is limited to 500 MB by default).
Yes, this needs to be updated.
Thanks,
Rafael
Quoted 17 lines · Pavel Machek
Quoted 7 lines · Pavel Machek
Hi!
Quoted 5 lines
Quoted 5 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cachedWell, the swap is rather in short supply. Below the 50% of RAM recommendation.
Well, but the biggest image we can write is not 50% of RAM, but 50% of lowmem... and swap is nearly as big as lowmem in this case -- so this machine is not misconfigured.
Quoted 5 lines
BTW swsusp.txt may need updating, it says:
echo N >
/sys/power/image_sizebefore suspend (it is limited to 500 MB by default).
Yes, this needs to be updated.
Thanks,
Rafael
Quoted 7 lines · Pavel Machek
Hi!
Quoted 5 lines
Quoted 5 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cachedWell, the swap is rather in short supply. Below the 50% of RAM recommendation.
Well, but the biggest image we can write is not 50% of RAM, but 50% of lowmem...
No, it is not. It's been 50% of RAM for a couple of years now. :-)
Quoted 35 lines
and swap is nearly as big as lowmem in this case -- so this machine is not misconfigured.
root@amd:/# cat /proc/meminfo MemTotal: 2054716 kB MemFree: 192048 kB Buffers: 97628 kB Cached: 1427088 kB SwapCached: 0 kB Active: 547580 kB Inactive: 1091744 kB Active(anon): 57060 kB Inactive(anon): 58908 kB Active(file): 490520 kB Inactive(file): 1032836 kB Unevictable: 0 kB Mlocked: 0 kB HighTotal: 1178440 kB HighFree: 128092 kB LowTotal: 876276 kB LowFree: 63956 kB SwapTotal: 779148 kB SwapFree: 779148 kBQuoted 11 lines
Quoted 10 lines
thinkpad_acpi: ACPI backlight control delay disabled
PM: thaw of devices complete after 539.577 msecs
PM: writing image.
PM: Free swap pages: 194166
PM: Not enough free swap
Restarting tasks ...Aha, and it is the new default
/sys/power/image_size.. setting it to 0 lets machine hibernate. I guess the new default is very wrong for highmem machine...
Quoted 6 lines
Quoted 3 lines
The old default did the wrong thing for everyone with sufficient swap (it made the OOM code trigger every time while preparing to create an image), so I think the new one it's better overall.
OOM? No...
image_sizeof 0 should have written "as small image as possible"; slow, but should not OOM.
This is not how it works now. We preallocate memory to create memory pressure, so if image_size is 0, we need to preallocate until we run out of pages that can be freed, which means OOM.
Thanks,
Rafael
Quoted 7 lines · Pavel Machek
Hi!
Quoted 5 lines
Quoted 5 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cachedWell, the swap is rather in short supply. Below the 50% of RAM recommendation.
Well, but the biggest image we can write is not 50% of RAM, but 50% of lowmem...
No, it is not. It's been 50% of RAM for a couple of years now. :-)
Quoted 35 lines
and swap is nearly as big as lowmem in this case -- so this machine is not misconfigured.
root@amd:/# cat /proc/meminfo MemTotal: 2054716 kB MemFree: 192048 kB Buffers: 97628 kB Cached: 1427088 kB SwapCached: 0 kB Active: 547580 kB Inactive: 1091744 kB Active(anon): 57060 kB Inactive(anon): 58908 kB Active(file): 490520 kB Inactive(file): 1032836 kB Unevictable: 0 kB Mlocked: 0 kB HighTotal: 1178440 kB HighFree: 128092 kB LowTotal: 876276 kB LowFree: 63956 kB SwapTotal: 779148 kB SwapFree: 779148 kBQuoted 11 lines
Quoted 10 lines
thinkpad_acpi: ACPI backlight control delay disabled
PM: thaw of devices complete after 539.577 msecs
PM: writing image.
PM: Free swap pages: 194166
PM: Not enough free swap
Restarting tasks ...Aha, and it is the new default
/sys/power/image_size.. setting it to 0 lets machine hibernate. I guess the new default is very wrong for highmem machine...
Quoted 6 lines
Quoted 3 lines
The old default did the wrong thing for everyone with sufficient swap (it made the OOM code trigger every time while preparing to create an image), so I think the new one it's better overall.
OOM? No...
image_sizeof 0 should have written "as small image as possible"; slow, but should not OOM.
This is not how it works now. We preallocate memory to create memory pressure, so if image_size is 0, we need to preallocate until we run out of pages that can be freed, which means OOM.
Thanks,
Rafael
Hi!
Quoted 32 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cachedWell, the swap is rather in short supply. Below the 50% of RAM recommendation.
Well, but the biggest image we can write is not 50% of RAM, but 50% of lowmem...
No, it is not. It's been 50% of RAM for a couple of years now. :-)
Quoted 14 lines
Quoted 13 lines
Quoted 9 lines
PM: thaw of devices complete after 539.577 msecs
PM: writing image.
PM: Free swap pages: 194166
PM: Not enough free swap
Restarting tasks ...Aha, and it is the new default
/sys/power/image_size.. setting it to 0 lets machine hibernate. I guess the new default is very wrong for highmem machine...The old default did the wrong thing for everyone with sufficient swap (it made the OOM code trigger every time while preparing to create an image), so I think the new one it's better overall.
Quoted 6 lines
Quoted 2 lines
OOM? No...
image_sizeof 0 should have written "as small image as possible"; slow, but should not OOM.This is not how it works now. We preallocate memory to create memory pressure, so if
image_sizeis 0, we need to preallocate until we run out of pages that can be freed, which means OOM.
That's bad, right? Instead of killing
Anyway, it does not work at all.
root@amd:~# echo 300000000 > /sys/power/image_size root@amd:~# echo disk > /sys/power/state -su: echo: write error: No space left on device
(And dmesg full of failed allocations).
I can write 400M there, and it fails, too.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 34 lines · Pavel Machek
Hi!
Quoted 32 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cachedWell, the swap is rather in short supply. Below the 50% of RAM recommendation.
Well, but the biggest image we can write is not 50% of RAM, but 50% of lowmem...
No, it is not. It's been 50% of RAM for a couple of years now. :-)
Quoted 14 lines
Quoted 13 lines
Quoted 9 lines
PM: thaw of devices complete after 539.577 msecs
PM: writing image.
PM: Free swap pages: 194166
PM: Not enough free swap
Restarting tasks ...Aha, and it is the new default
/sys/power/image_size.. setting it to 0 lets machine hibernate. I guess the new default is very wrong for highmem machine...The old default did the wrong thing for everyone with sufficient swap (it made the OOM code trigger every time while preparing to create an image), so I think the new one it's better overall.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
OOM? No...
image_sizeof 0 should have written "as small image as possible"; slow, but should not OOM.This is not how it works now. We preallocate memory to create memory pressure, so if
image_sizeis 0, we need to preallocate until we run out of pages that can be freed, which means OOM.That's bad, right? Instead of killing
I'm not sure what you mean.
Quoted 9 lines
Anyway, it does not work at all.
root@amd:~# echo 300000000 > /sys/power/image_size root@amd:~# echo disk > /sys/power/state -su: echo: write error: No space left on device(And dmesg full of failed allocations).
I can write 400M there, and it fails, too.
Well, in that case your swap is smaller than the requested image size, isn't it?
There's a check in there that should catch that and it apparently doesn't work.
Do you have that dmesg by chance?
Rafael
Quoted 34 lines · Pavel Machek
Hi!
Quoted 32 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cachedWell, the swap is rather in short supply. Below the 50% of RAM recommendation.
Well, but the biggest image we can write is not 50% of RAM, but 50% of lowmem...
No, it is not. It's been 50% of RAM for a couple of years now. :-)
Quoted 14 lines
Quoted 13 lines
Quoted 9 lines
PM: thaw of devices complete after 539.577 msecs
PM: writing image.
PM: Free swap pages: 194166
PM: Not enough free swap
Restarting tasks ...Aha, and it is the new default
/sys/power/image_size.. setting it to 0 lets machine hibernate. I guess the new default is very wrong for highmem machine...The old default did the wrong thing for everyone with sufficient swap (it made the OOM code trigger every time while preparing to create an image), so I think the new one it's better overall.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
OOM? No...
image_sizeof 0 should have written "as small image as possible"; slow, but should not OOM.This is not how it works now. We preallocate memory to create memory pressure, so if
image_sizeis 0, we need to preallocate until we run out of pages that can be freed, which means OOM.That's bad, right? Instead of killing
I'm not sure what you mean.
Quoted 9 lines
Anyway, it does not work at all.
root@amd:~# echo 300000000 > /sys/power/image_size root@amd:~# echo disk > /sys/power/state -su: echo: write error: No space left on device(And dmesg full of failed allocations).
I can write 400M there, and it fails, too.
Well, in that case your swap is smaller than the requested image size, isn't it?
There's a check in there that should catch that and it apparently doesn't work.
Do you have that dmesg by chance?
Rafael
Hi!
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
This is not how it works now. We preallocate memory to create memory pressure, so if
image_sizeis 0, we need to preallocate until we run out of pages that can be freed, which means OOM.That's bad, right? Instead of killing
I'm not sure what you mean.
I meant "instead of failing hibernation, you get OOM -- killing random processes".
Quoted 11 lines
Quoted 9 lines
Anyway, it does not work at all.
root@amd:~# echo 300000000 > /sys/power/image_size root@amd:~# echo disk > /sys/power/state -su: echo: write error: No space left on device(And dmesg full of failed allocations).
I can write 400M there, and it fails, too.
Well, in that case your swap is smaller than the requested image size, isn't it?
No, swap is
pavel@amd:~/misc$ cat /proc/swaps Filename Type Size Used Priority /dev/sda1 partition 779148 0 -1
... 700M.
Quoted 3 lines
There's a check in there that should catch that and it apparently doesn't work.
Do you have that dmesg by chance?
dmesg is useless -- it is full of backtraces :-(. ACPI allocations fail.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 6 lines · Pavel Machek
Hi!
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
This is not how it works now. We preallocate memory to create memory pressure, so if
image_sizeis 0, we need to preallocate until we run out of pages that can be freed, which means OOM.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
That's bad, right? Instead of killing
I'm not sure what you mean.
I meant "instead of failing hibernation, you get OOM -- killing random processes".
That's not the case. The OOM _killer_ is disabled during hibernation, but there's some more OOM code that's trying very hard to free whatever pages it can get without killing any processes.
Quoted 20 lines
Quoted 11 lines
Quoted 9 lines
Anyway, it does not work at all.
root@amd:~# echo 300000000 > /sys/power/image_size root@amd:~# echo disk > /sys/power/state -su: echo: write error: No space left on device(And dmesg full of failed allocations).
I can write 400M there, and it fails, too.
Well, in that case your swap is smaller than the requested image size, isn't it?
No, swap is
pavel@amd:~/misc$ cat /proc/swaps Filename Type Size Used Priority /dev/sda1 partition 779148 0 -1
Quoted 8 lines
... 700M.
Quoted 3 lines
There's a check in there that should catch that and it apparently doesn't work.
Do you have that dmesg by chance?
dmesg is useless -- it is full of backtraces :-(. ACPI allocations fail.
What about:
# echo core > /sys/power/pm_test # echo disk > /sys/power/state
Then the messages should be there in the logs.
Thanks,
Rafael
Quoted 6 lines · Pavel Machek
Hi!
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
This is not how it works now. We preallocate memory to create memory pressure, so if
image_sizeis 0, we need to preallocate until we run out of pages that can be freed, which means OOM.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
That's bad, right? Instead of killing
I'm not sure what you mean.
I meant "instead of failing hibernation, you get OOM -- killing random processes".
That's not the case. The OOM _killer_ is disabled during hibernation, but there's some more OOM code that's trying very hard to free whatever pages it can get without killing any processes.
Quoted 20 lines
Quoted 11 lines
Quoted 9 lines
Anyway, it does not work at all.
root@amd:~# echo 300000000 > /sys/power/image_size root@amd:~# echo disk > /sys/power/state -su: echo: write error: No space left on device(And dmesg full of failed allocations).
I can write 400M there, and it fails, too.
Well, in that case your swap is smaller than the requested image size, isn't it?
No, swap is
pavel@amd:~/misc$ cat /proc/swaps Filename Type Size Used Priority /dev/sda1 partition 779148 0 -1
Quoted 8 lines
... 700M.
Quoted 3 lines
There's a check in there that should catch that and it apparently doesn't work.
Do you have that dmesg by chance?
dmesg is useless -- it is full of backtraces :-(. ACPI allocations fail.
What about:
# echo core > /sys/power/pm_test # echo disk > /sys/power/state
Then the messages should be there in the logs.
Thanks,
Rafael
Hi!
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
This is not how it works now. We preallocate memory to create memory pressure, so if
image_sizeis 0, we need to preallocate until we run out of pages that can be freed, which means OOM.That's bad, right? Instead of killing
I'm not sure what you mean.
I meant "instead of failing hibernation, you get OOM -- killing random processes".
Quoted 11 lines
Quoted 9 lines
Anyway, it does not work at all.
root@amd:~# echo 300000000 > /sys/power/image_size root@amd:~# echo disk > /sys/power/state -su: echo: write error: No space left on device(And dmesg full of failed allocations).
I can write 400M there, and it fails, too.
Well, in that case your swap is smaller than the requested image size, isn't it?
No, swap is
pavel@amd:~/misc$ cat /proc/swaps Filename Type Size Used Priority /dev/sda1 partition 779148 0 -1
... 700M.
Quoted 3 lines
There's a check in there that should catch that and it apparently doesn't work.
Do you have that dmesg by chance?
dmesg is useless -- it is full of backtraces :-(. ACPI allocations fail.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Hi!
Quoted 32 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
...but there's enough -- or at least it was enough to fit previous versions. 32-bit machine, so it has highmem.
System is in console mode, very lightly loaded.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Mem: 2054716k total, 736548k used, 1318168k free, 15368k buffers Swap: 779148k total, 2360k used, 776788k free, 546388k cachedWell, the swap is rather in short supply. Below the 50% of RAM recommendation.
Well, but the biggest image we can write is not 50% of RAM, but 50% of lowmem...
No, it is not. It's been 50% of RAM for a couple of years now. :-)
Quoted 14 lines
Quoted 13 lines
Quoted 9 lines
PM: thaw of devices complete after 539.577 msecs
PM: writing image.
PM: Free swap pages: 194166
PM: Not enough free swap
Restarting tasks ...Aha, and it is the new default
/sys/power/image_size.. setting it to 0 lets machine hibernate. I guess the new default is very wrong for highmem machine...The old default did the wrong thing for everyone with sufficient swap (it made the OOM code trigger every time while preparing to create an image), so I think the new one it's better overall.
Quoted 6 lines
Quoted 2 lines
OOM? No...
image_sizeof 0 should have written "as small image as possible"; slow, but should not OOM.This is not how it works now. We preallocate memory to create memory pressure, so if
image_sizeis 0, we need to preallocate until we run out of pages that can be freed, which means OOM.
That's bad, right? Instead of killing
Anyway, it does not work at all.
root@amd:~# echo 300000000 > /sys/power/image_size root@amd:~# echo disk > /sys/power/state -su: echo: write error: No space left on device
(And dmesg full of failed allocations).
I can write 400M there, and it fails, too.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html