From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id pAGMFtOW228900 for ; Wed, 16 Nov 2011 16:15:56 -0600 Received: from ogre.sisk.pl (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 8E9D81D12F8F for ; Wed, 16 Nov 2011 14:15:53 -0800 (PST) Received: from ogre.sisk.pl (ogre.sisk.pl [217.79.144.158]) by cuda.sgi.com with ESMTP id SSbuWoSPBX3NJu4s for ; Wed, 16 Nov 2011 14:15:53 -0800 (PST) From: "Rafael J. Wysocki" Subject: Re: [PATCH] PM / Freezer: Freeze filesystems while freezing processes (v2) Date: Wed, 16 Nov 2011 22:50:41 +0100 References: <4E1C70AD.1010101@u-club.de> <201110222335.29573.rjw@sisk.pl> <874ny4jhy4.fsf@tac.ki.iif.hu> In-Reply-To: <874ny4jhy4.fsf@tac.ki.iif.hu> MIME-Version: 1.0 Message-Id: <201111162250.42080.rjw@sisk.pl> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Ferenc Wagner Cc: Christoph , Theodore Ts'o , Linux PM list , LKML , xfs@oss.sgi.com, Christoph Hellwig , Nigel Cunningham , Pavel Machek , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org On Wednesday, November 16, 2011, Ferenc Wagner wrote: > "Rafael J. Wysocki" writes: > > > On Saturday, October 22, 2011, Christoph wrote: > > > >>> PM / Freezer: Freeze filesystems while freezing processes (v2) > >>> > >>> On Sunday, August 07, 2011, Dave Chinner wrote: > >>> > >>>> On Sat, Aug 06, 2011 at 11:17:18PM +0200, Rafael J. Wysocki wrote: > >>>> > >>>>> From: Rafael J. Wysocki > >>>>> > >>>>> Freeze all filesystems during the freezing of tasks by calling > >>>>> freeze_bdev() for each of them and thaw them during the thawing of > >>>>> tasks with the help of thaw_bdev(). > >>>>> > >>>>> This is needed by hibernation, because some filesystems (e.g. XFS) > >>>>> deadlock with the preallocation of memory used by it if the memory > >>>>> pressure caused by it is too heavy. > >>> > >>> Below is an alternative fix, the changelog pretty much explains the > >>> idea. > >>> > >>> I've tested it on Toshiba Portege R500, but I don't have an XFS > >>> partition to verify that it really helps, so I'd appreciate it if > >>> someone able to reproduce the original issue could test it and report > >>> back. > >> > >> Well, the kernel bugtracker is still down and I just like to post my > >> experience with kernel (x64) v3.1-rc8/9 + patches. My machine is a > >> MacBookPro, doomed with 4GB RAM running debian. > >> > >> Bug #1 > >> > >> on the way to hibernate, machine hangs on > >> > >> "PM: Preallocating image memory..." > >> > >> this patch worked for me now for weeks: > >> "[PATCH] PM / Freezer: Freeze filesystems while freezing processes (v2)" > >> https://lkml.org/lkml/2011/9/24/77 > > > > This patch is going to be merged into 3.2. > > Hi, > > I was the original reporter of the Bugzilla issue, just didn't know > about this thread until recently. Anyway, I'm running 3.2-rc1 now, > which contains the alternative fix, and I can confirm that it indeed > works: hibernation does not deadlock on my XFS rooted system anymore > during memory preallocation. Thanks everybody for his or her work on > the issue! > > To add something still, preallocation now ends with a couple of seconds > of heavy disk activity, but with several seconds of total inactivity > beforehand. Is this warranted by some CPU intensive task at that stage? Quilte frankly, I have no idea. Thanks, Rafael _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs