From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 23 Jun 2005 16:03:14 -0700 (PDT) From: Christoph Lameter Subject: Re: [PATCH 2.6.12-rc5 0/10] mm: manual page migration-rc3 -- overview In-Reply-To: <42BB3EFC.7060800@engr.sgi.com> Message-ID: References: <20050622163908.25515.49944.65860@tomahawk.engr.sgi.com> <42BB3EFC.7060800@engr.sgi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Ray Bryant Cc: Ray Bryant , Hirokazu Takahashi , Andi Kleen , Dave Hansen , Marcelo Tosatti , Christoph Hellwig , Ray Bryant , linux-mm , lhms-devel@lists.sourceforge.net, Paul Jackson , Nathan Scott List-ID: On Thu, 23 Jun 2005, Ray Bryant wrote: > > There is PF_FREEZE flag used by the suspend feature that could be used here > > to send the process into the "freezer" first. Using regular signals to stop > > a process may cause races with user space code also doing > > SIGSTOP SIGCONT on a process while migrating it. > > So are you suggesting that I set PF_FREEZE, wait until PF_FROZEN is set as > well, then migrate the pages, and then clear PF_FROZEN to resume the task? Yes. > I guess that might work, unless we're actually running on a laptop and it > goes into hibernation at the same time we are trying to do a migration.... You can atomically set the PF_FREEZE flag. -- 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: aart@kvack.org