From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id 8332B6B0047 for ; Thu, 7 May 2009 18:34:31 -0400 (EDT) From: "Rafael J. Wysocki" Subject: [RFC][PATCH 0/5] PM/Hibernate: Rework memory shrinking (rev. 2) Date: Thu, 7 May 2009 23:48:58 +0200 References: <200905070040.08561.rjw@sisk.pl> In-Reply-To: <200905070040.08561.rjw@sisk.pl> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200905072348.59856.rjw@sisk.pl> Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: pm list Cc: Wu Fengguang , Andrew Morton , LKML , Pavel Machek , Nigel Cunningham , David Rientjes , "linux-mm@kvack.org" List-ID: On Thursday 07 May 2009, Rafael J. Wysocki wrote: > Hi, > > The following patchset is an attempt to rework the memory shrinking mechanism > used during hibernation to make room for the image. It is a work in progress > and most likely it's going to be modified, but it has been discussed recently > and I'd like to get comments on the current version. > > [1/5] - disable the OOM kernel after freezing tasks (this will be dropped if > it's verified that we can avoid the OOM killing by using > __GFP_FS|__GFP_WAIT|__GFP_NORETRY|__GFP_NOWARN > in the next patches). > > [2/5] - drop memory shrinking from the suspend (to RAM) code path > > [3/5] - move swsusp_shrink_memory() to snapshot.c > > [4/5] - rework swsusp_shrink_memory() (to use memory allocations for applying > memory pressure) > > [5/5] - allocate image pages along with the shrinking. Updated patchset follows. Most importantly, the first patch has been replaced by the one adding __GFP_NO_OOM_KILL, following the Andrew's advice. The other patches are slightly changed to address some comments I've received since yesterday. Please tell me what you think. Best, Rafael -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org