From owner-freebsd-jail@FreeBSD.ORG Sat Sep 11 09:18:23 2010 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DEE3106566B for ; Sat, 11 Sep 2010 09:18:23 +0000 (UTC) (envelope-from klaus@mx.7he.at) Received: from smtp-07.sil.at (smtp-07.sil.at [78.142.186.51]) by mx1.freebsd.org (Postfix) with ESMTP id BA9718FC08 for ; Sat, 11 Sep 2010 09:18:22 +0000 (UTC) Received: from mx.7he.at ([86.59.13.138]) by smtp-07.sil.at with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1OuME1-0004d8-B7 for freebsd-jail@freebsd.org; Sat, 11 Sep 2010 11:18:21 +0200 Received: from mx.7he.at (mx.7he.at [86.59.13.138]) by mx.7he.at (8.14.3/8.14.3) with ESMTP id o8B9Hgjx061667 for ; Sat, 11 Sep 2010 09:17:42 GMT (envelope-from klaus@mx.7he.at) Received: (from klaus@localhost) by mx.7he.at (8.14.3/8.14.3/Submit) id o8B9HgN8061666 for freebsd-jail@freebsd.org; Sat, 11 Sep 2010 09:17:42 GMT (envelope-from klaus) Date: Sat, 11 Sep 2010 09:17:42 +0000 From: "Klaus P. Ohrhallinger" To: freebsd-jail@freebsd.org Message-ID: <20100911091742.GA14592@mx.7he.at> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Political-Attitude: Anarchistic X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on mx.7he.at X-Scan-Signature: dd53a031cb8b38c4127844b8be3aa059 Subject: Re: Jail hot migration X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2010 09:18:23 -0000 On Fri, Sep 10, 2010 at 10:28:09PM +0000, Andrew Hotlab wrote: Hello; > > I was really impressed by the live migration demo video and I wish to ask you a few questions about your solution... > At this time VPS technology lacks resource limiting capability, do you think it could be compatible with the resource container project sponsored by the FreeBSD Foundation? I heard about that resource container project, but don't know any details. But it sounds like it could be adapted or integrated to my work. I didn't put any effort in resource accounting/limiting yet because it's the most boring part of the whole story, IMHO. > Multiple virtual instances of FreeBSD running as VPS are required to share the same kernel, as in the Jail paradigm, or they may run different kernels, as in NetBSD (http://www.NetBSD.org/docs/rump/)? They share the same kernel, altough it works different from jail. Jail restricts processes from seeing and accessing certain resources, while VPS duplicates almost any resource. Please see my paper for details. > How many resources do you estimate in order to complete your project? Well, if I get positive feedback at the EuroBSDCon and people want to have it I can put quite a large amount of my time in it, but then it's still a long way to go until production quality. Anyways I plan to publish patches and binaries for testing in october. > It seems that it will be far more difficult to implement the live migration feature on the Jail framework than in VPS, but how about offline migration and resource control? Some work has been done to achieve that with the current Jail paradigm, do you think that VPS will be able to do a better job in these areas too? Live migration of jails is asking for some really nasty hacks. For example imagine what to do if a process has a PID number that is already assigned on the host you are migrating the jail to. > Sorry if any question sounds stupid: I do not know much on the internals of the technologies I mentioned. > Thank you very much for your work. > Andrew > P.S. I'm sorry for the format of the e-mail, I'm using this awful Hotmail web interface. :( > > Best regards, Klaus -- Alle sagten ''es geht nicht''. Dann kam einer, der wusste das nicht. Der hat's einfach gemacht.