From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Slaby Subject: Re: 2.6.21-rc5: swsusp: Not enough free memory Date: Tue, 03 Apr 2007 21:59:33 +0200 Message-ID: <4612B225.7060003@gmail.com> References: <460B6E4B.3060004@gmail.com> <200704022318.28451.rjw@sisk.pl> <46120449.7070302@gmail.com> <200704031250.07307.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200704031250.07307.rjw@sisk.pl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: "Rafael J. Wysocki" Cc: linux-pm@lists.osdl.org, Linux kernel mailing list List-Id: linux-pm@vger.kernel.org Rafael J. Wysocki napsal(a): > Okay, so I think the appended patch is needed. Could you please revert t= he [...] > Index: linux-2.6.21-rc5/kernel/power/swsusp.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- linux-2.6.21-rc5.orig/kernel/power/swsusp.c > +++ linux-2.6.21-rc5/kernel/power/swsusp.c > @@ -229,13 +229,13 @@ int swsusp_shrink_memory(void) > size +=3D highmem_size; > for_each_zone (zone) > if (populated_zone(zone)) { > + tmp +=3D snapshot_additional_pages(zone); > if (is_highmem(zone)) { > highmem_size -=3D > zone_page_state(zone, NR_FREE_PAGES); > } else { > tmp -=3D zone_page_state(zone, NR_FREE_PAGES); > tmp +=3D zone->lowmem_reserve[ZONE_NORMAL]; > - tmp +=3D snapshot_additional_pages(zone); This seems to work. thanks, -- = http://www.fi.muni.cz/~xslaby/ Jiri Slaby faculty of informatics, masaryk university, brno, cz e-mail: jirislaby gmail com, gpg pubkey fingerprint: B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E Hnus is an alias for /dev/null