Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751818Ab1BVWHo (ORCPT ); Tue, 22 Feb 2011 17:07:44 -0500 Received: from mondschein.lichtvoll.de ([194.150.191.11]:45737 "EHLO mail.lichtvoll.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750920Ab1BVWHn (ORCPT ); Tue, 22 Feb 2011 17:07:43 -0500 From: Martin Steigerwald To: "Rafael J. Wysocki" Subject: Re: does hibernate to disk try hard enough to free memory? Date: Tue, 22 Feb 2011 23:07:33 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.37-tp42-rtime-00004-g9eb63ce; KDE/4.5.3; i686; ; ) Cc: Linux PM mailing list , LKML References: <201102222159.58546.Martin@lichtvoll.de> <201102222209.15647.rjw@sisk.pl> (sfid-20110222_230528_360254_A6598DE5) In-Reply-To: <201102222209.15647.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5176909.d92r2dqokB"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201102222307.41499.Martin@lichtvoll.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2209 Lines: 61 --nextPart5176909.d92r2dqokB Content-Type: Text/Plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Am Tuesday 22 February 2011 schrieb Rafael J. Wysocki: > On Tuesday, February 22, 2011, Martin Steigerwald wrote: > > Hi! > >=20 > > Since Radeon KMS I often have it that my ThinkPad T42 with 2 MiB of > > RAM is not able to allocate memory for the hibernation image. Before > > KMS hibernation only very rarely failed for that reason. > >=20 > > Often I run without compositing at all as I believe this might spare > > some pages as well. But this doesn't always help. > >=20 > > It complains that to less pages could be freed. For example with > > kernel 2.6.37: > >=20 > > Feb 16 00:15:00 shambhala kernel: PM: Creating hibernation image: > > Feb 16 00:15:00 shambhala kernel: PM: Need to copy 186577 pages > > Feb 16 00:15:00 shambhala kernel: PM: Normal pages needed: 114411 + > > 1024, available pages: 112767 > > Feb 16 00:15:00 shambhala kernel: PM: Not enough free memory > > Feb 16 00:15:00 shambhala kernel: PM: Error -12 creating hibernation > > image Feb 16 00:15:00 shambhala kernel: Extended CMOS year: 2000 > > Feb 16 00:15:00 shambhala kernel: ACPI: Waking up from system sleep > > state S4 > > Feb 16 00:15:00 shambhala kernel: PM: early recover of devices > > complete after 0.376 msecs >=20 > What's the value in /sys/power/image_size? shambhala:~> cat /sys/power/image_size 844206080 Should I try with less? Thanks, =2D-=20 Martin 'Helios' Steigerwald - http://www.Lichtvoll.de GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7 --nextPart5176909.d92r2dqokB Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAk1kM6YACgkQmRvqrKWZhMeoWwCgiqbO01HcFYpp6067sQEOkrzM NKEAn0aFZWP8g0qPGbtRur+o0MUDGZFW =XgYH -----END PGP SIGNATURE----- --nextPart5176909.d92r2dqokB-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/