From owner-freebsd-stable@FreeBSD.ORG Tue Apr 21 22:40:49 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 249371065676 for ; Tue, 21 Apr 2009 22:40:49 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id D8DCE8FC21 for ; Tue, 21 Apr 2009 22:40:48 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 4E8CA19E023 for ; Wed, 22 Apr 2009 00:40:47 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 3798F19E019 for ; Wed, 22 Apr 2009 00:40:44 +0200 (CEST) Message-ID: <49EE4B6B.5020005@quip.cz> Date: Wed, 22 Apr 2009 00:40:43 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: changing cpuset of jail from inside of jail - is it feature? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2009 22:40:49 -0000 I am running system FreeBSD 7.1-STABLE amd64 GENERIC (Wed Feb 11 09:56:08 CET 2009) hosting few jails. The machine has dual core CPU and some jails are set to run only on one core (core 0 in this example): host# cpuset -l 0 -j 25 As I tested today, root user inside the jail can change this by the same command as I am doing it from the host system: injail# cpuset -l 0,1 -j 25 And from now, jail with JID 25 is running on both cores. Is it expected behavior of cpuset to allow user inside the jail change cpuset of the jail itself or is it a bug? It seems to me as undesirable. Miroslav Lachman