From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752483Ab0KPF1D (ORCPT ); Tue, 16 Nov 2010 00:27:03 -0500 Received: from ksp.mff.cuni.cz ([195.113.26.206]:52817 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751706Ab0KPF1B (ORCPT ); Tue, 16 Nov 2010 00:27:01 -0500 Date: Tue, 16 Nov 2010 06:26:34 +0100 From: Pavel Machek To: "Rafael J. Wysocki" Cc: kernel list , Linux-pm mailing list Subject: Re: 2.6.37-rc1+: hibernate regression, claims not enough swap space Message-ID: <20101116052634.GA30449@elf.ucw.cz> References: <20101114052138.GB2189@elf.ucw.cz> <201011152326.44357.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201011152326.44357.rjw@sisk.pl> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > Well, 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 > > 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. OOM? No... image_size of 0 should have written "as small image as possible"; slow, but should not OOM. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html