From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757964Ab2AKR77 (ORCPT ); Wed, 11 Jan 2012 12:59:59 -0500 Received: from mail-bk0-f46.google.com ([209.85.214.46]:55397 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756976Ab2AKR76 (ORCPT ); Wed, 11 Jan 2012 12:59:58 -0500 Date: Wed, 11 Jan 2012 21:59:52 +0400 From: Cyrill Gorcunov To: KOSAKI Motohiro Cc: LKML , Andrew Morton , Kyle Moffett , Tejun Heo , Pavel Emelyanov , Glauber Costa , Andi Kleen , Matt Helsley , Pekka Enberg , Eric Dumazet , Vasiliy Kulikov , Alexey Dobriyan , Herbert Xu , "David S. Miller" , "Eric W. Biederman" , Andrey Vagin Subject: Re: [RFC] on general object IDs again Message-ID: <20120111175952.GI466@moon> References: <20120111161939.GI8752@moon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 11, 2012 at 12:25:04PM -0500, KOSAKI Motohiro wrote: > > In turn doing everything in a manner of syscall "compare resources of two pids" > > gives up very slow speed because we will have to compare every pid resources > > with every other pids we're checkpointing. > > Could you please write down pseudo code of your userland compare logic? When > and why do you need? I still don't like this idea, but maybe I need to > understand your > requerement before putting negative comments. > Hi Kosaki, the idea on user-space is something like - collect all pids to dump - collect IDs for every pid - sort the IDs obtained - find the same IDs (which will be kind of find intersections in a sets of IDs) and set up CLONE_ flags on restore procedure as appropriate (for example if GEN_OBJ_ID_VM IDs for two or more tasks are the same we need to use CLONE_VM at restore time, and so on). Cyrill