Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759699AbZDQVP6 (ORCPT ); Fri, 17 Apr 2009 17:15:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756130AbZDQVPr (ORCPT ); Fri, 17 Apr 2009 17:15:47 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:42876 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752930AbZDQVPq (ORCPT ); Fri, 17 Apr 2009 17:15:46 -0400 Date: Fri, 17 Apr 2009 14:12:00 -0700 (PDT) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: "Rafael J. Wysocki" cc: Alan Jenkins , Jens Axboe , Linux Kernel Mailing List , Kernel Testers List Subject: Re: [Bug #13058] First hibernation attempt fails In-Reply-To: <200904172258.58783.rjw@sisk.pl> Message-ID: References: <49E8C06A.5080605@tuffmail.co.uk> <200904172258.58783.rjw@sisk.pl> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1273 Lines: 46 On Fri, 17 Apr 2009, Rafael J. Wysocki wrote: > > Can you please try to reproduce the problem with the appended debug patch > applied and send the output of dmesg to me? Maybe something like this instead (or in addition to). It does "show_mem()" when memory shrinking fails. It will show a _lot_ of data. Untested, but trivial. Linus --- kernel/power/swsusp.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c index 78c3504..6e70efd 100644 --- a/kernel/power/swsusp.c +++ b/kernel/power/swsusp.c @@ -207,9 +207,16 @@ void swsusp_show_speed(struct timeval *start, struct timeval *stop, #define SHRINK_BITE 10000 static inline unsigned long __shrink_memory(long tmp) { + unsigned long ret; + if (tmp > SHRINK_BITE) tmp = SHRINK_BITE; - return shrink_all_memory(tmp); + ret = shrink_all_memory(tmp); + if (!ret) { + printk("shrink_all_memory(%ld) failed\n", tmp); + show_mem(); + } + return ret; } int swsusp_shrink_memory(void) -- 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/