Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S271861AbTGRRgP (ORCPT ); Fri, 18 Jul 2003 13:36:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S271862AbTGRRgP (ORCPT ); Fri, 18 Jul 2003 13:36:15 -0400 Received: from smtp-out1.iol.cz ([194.228.2.86]:15791 "EHLO smtp-out1.iol.cz") by vger.kernel.org with ESMTP id S271861AbTGRRgI (ORCPT ); Fri, 18 Jul 2003 13:36:08 -0400 Date: Fri, 18 Jul 2003 19:50:46 +0200 From: Pavel Machek To: Andrew Morton Cc: Peter Osterlund , linux-kernel@vger.kernel.org Subject: Re: Software suspend testing in 2.6.0-test1 Message-ID: <20030718175045.GA195@elf.ucw.cz> References: <20030717200039.GA227@elf.ucw.cz> <20030717130906.0717b30d.akpm@osdl.org> <20030718032433.4b6b9281.akpm@osdl.org> <20030718152205.GA407@elf.ucw.cz> <20030718094542.07b2685a.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030718094542.07b2685a.akpm@osdl.org> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.3i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1301 Lines: 31 Hi! > > I tried the patch below, but it didn't work. Nothing (or very little) > > was swapped out to disk. I also tried using GFP_KERNEL, but that > > seemed to cause a deadlock. (Maybe it would have gone OOM if I had > > waited long enough). I think the problem is that pdflush and friends > > are already frozen when this code runs. > > Oh, we shouldn't be doing this sort of thing when the kernel threads are > refrigerated. We do need kswapd services for the trick you tried. > > And all flavours of ext3_writepage() can block on kjournald activity, so if > kjournald is refrigerated during the memory shrink the machine can deadlock. > > It would be much better to freeze kernel threads _after_ doing the big > memory shrink. I wanted to avoid that: we do want user threads refrigerated at that point so that we know noone is allocating memory as we are trying to do memory shrink. I'd like to avoid having refrigerator run in two phases.... Pavel -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] - 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/