Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932191AbWBFQZF (ORCPT ); Mon, 6 Feb 2006 11:25:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932198AbWBFQZF (ORCPT ); Mon, 6 Feb 2006 11:25:05 -0500 Received: from e31.co.us.ibm.com ([32.97.110.149]:26797 "EHLO e31.co.us.ibm.com") by vger.kernel.org with ESMTP id S932191AbWBFQZE (ORCPT ); Mon, 6 Feb 2006 11:25:04 -0500 Date: Mon, 6 Feb 2006 10:24:54 -0600 From: "Serge E. Hallyn" To: Alexey Kuznetsov Cc: "Serge E. Hallyn" , Cedric Le Goater , Dave Hansen , Kirill Korotaev , arjan@infradead.org, frankeh@watson.ibm.com, mrmacman_g4@mac.com, alan@lxorguk.ukuu.org.uk, Linux Kernel Mailing List , devel@openvz.org Subject: Re: [RFC][PATCH 5/7] VPIDs: vpid/pid conversion in VPID enabled case Message-ID: <20060206162454.GE11887@sergelap.austin.ibm.com> References: <43E22B2D.1040607@openvz.org> <43E23398.7090608@openvz.org> <1138899951.29030.30.camel@localhost.localdomain> <20060203105202.GA21819@ms2.inr.ac.ru> <43E35105.3080208@fr.ibm.com> <20060203140229.GA16266@ms2.inr.ac.ru> <43E38D40.3030003@fr.ibm.com> <20060206094843.GA6013@ms2.inr.ac.ru> <20060206145104.GB11887@sergelap.austin.ibm.com> <20060206155101.GA22522@ms2.inr.ac.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060206155101.GA22522@ms2.inr.ac.ru> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1652 Lines: 37 Quoting Alexey Kuznetsov (kuznet@ms2.inr.ac.ru): > Hello! > > > into the pidhash, or make the first exec()d process the container's > > init? Does that seem reasonable? > > It is exactly what openvz does, the first task becomes child reaper. > > Cedric asked why do we have an init in each container, I answered that > we want to. But openvz approach is enough flexible not to do this, nothing > will break if a container process is reparented to normal init. > > The question was not about openvz, it was about (container,pid) approach. > How are you going to reap chidren without a child reaper inside container? > If you reparent all the children to a single init in root container, > what does wait() return? In openvz it returns global pid and child is buried > in peace. If you do not have global pid, you cannot just return private pid. Yes, /sbin/init would need to be modified to use whatever enhanced api is produced to support cross-container wait and pidlookup. I'm not sure that in this set of threads we've discussed enhanced wait requirements, though for pidlookup it's been mentioned that we can just require some kind of sys_execute_container(pid_lookup(pid)); to avoid having to expand userspace pid lookup routines - ie to avoid having any userspace code (except init) need to know about containers. But perhaps a per-container init is in fact cleaner. Other opinions? -serge - 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/