From owner-freebsd-jail@FreeBSD.ORG Mon May 23 11:07:02 2011 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 5304D1065674 for ; Mon, 23 May 2011 11:07:02 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 42EE48FC28 for ; Mon, 23 May 2011 11:07:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4NB72sT051713 for ; Mon, 23 May 2011 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4NB71B0051711 for freebsd-jail@FreeBSD.org; Mon, 23 May 2011 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 23 May 2011 11:07:01 GMT Message-Id: <201105231107.p4NB71B0051711@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-jail@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-jail@FreeBSD.org 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: Mon, 23 May 2011 11:07:02 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/156584 jail [jail] ipv4 packet is not forward to v4-mapped binding o kern/156111 jail [jail] procstat -b not supported in jail o misc/155765 jail [patch] `buildworld' does not honors WITHOUT_JAIL o conf/154246 jail [jail] [patch] Bad symlink created if devfs mount poin o conf/149050 jail [jail] rcorder ``nojail'' too coarse for Jail+VNET s conf/142972 jail [jail] [patch] Support JAILv2 and vnet in rc.d/jail o conf/141317 jail [patch] uncorrect jail stop in /etc/rc.d/jail o kern/133265 jail [jail] is there a solution how to run nfs client in ja o kern/119842 jail [smbfs] [jail] "Bad address" with smbfs inside a jail o bin/99566 jail [jail] [patch] fstat(1) according to specified jid o bin/32828 jail [jail] w(1) incorrectly handles stale utmp slots with 11 problems total. From owner-freebsd-jail@FreeBSD.ORG Mon May 23 17:06:02 2011 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 35E1A106566B for ; Mon, 23 May 2011 17:06:02 +0000 (UTC) (envelope-from lars@sixfeetup.com) Received: from mail.sixfeetup.com (smtp.sixfeetup.com [24.172.160.14]) by mx1.freebsd.org (Postfix) with ESMTP id 181568FC15 for ; Mon, 23 May 2011 17:06:01 +0000 (UTC) Received: from lynskey.local (unknown [10.12.3.13]) by mail.sixfeetup.com (Postfix) with ESMTP id 0B4551A8070 for ; Mon, 23 May 2011 12:48:31 -0400 (EDT) Message-ID: <4DDA8FDE.9030005@sixfeetup.com> Date: Mon, 23 May 2011 12:48:30 -0400 From: "Lars R. Noldan" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Memory Limits 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: Mon, 23 May 2011 17:06:02 -0000 Hello all, I'm sorry if this has been asked before. My search fu only showed something dating back to FreeBSD 6.2 era, and I know a lot of work has gone into jails since then. Is there a way to limit the amount of total ram available to a jail? Say for instance I have a jails server with 32gb of ram, can I limit jail01 to 512mb? If this isn't currently possible is there any work being done towards this goal? Any suggestions you can provide, including links to the fine manual I should have found but didn't are welcome. Thanks for all the hard work that's gone into jails! In the time I've been using them (since 7.1-Release) The improvements are huge! Thanks again! Lars -- Six Feet Up, Inc. | Where sophisticated web projects thrive Direct Line: +1 (317) 861-5948 x609 Email: lars@sixfeetup.com Try Plone 4 Today at: http://plone4demo.com From owner-freebsd-jail@FreeBSD.ORG Mon May 23 18:22:25 2011 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 D1EAD106566C for ; Mon, 23 May 2011 18:22:25 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7D2A78FC19 for ; Mon, 23 May 2011 18:22:25 +0000 (UTC) Received: by vxc34 with SMTP id 34so5932479vxc.13 for ; Mon, 23 May 2011 11:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=BeG/YXEnDYq/+mpUSyLkcaARL2RScS8fh57p5bCE24Y=; b=JmEzGxhkKRYE3jkfNTJwFg+M1MCZ5Aaqgg2t3liSAUhsGuBAT2jyxogVNe2ykYadDe XuWwW24VXQsvKgSgjxdGnb9g8/zoEZsjdun5y71DiVjRyp0jtAORy6ZgB41BYHpnnpos bGPhjaDOYwwCNjYJwu0BBfF8K/+ENzKrXaqL8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=PgvX8PVSo4B47WFQFFku4ggx952LnHtjvVSMtJn9hotjph+DL2dutfdLbzcctftLX+ x0mj1Z0uXvlre+IJZ0VYHcAh0VBdR7azUmdRxzQ3J0bWc/+/QvOfV6b1uJRASlhTJz1H jURxbjSZ7KAcLdFdrL03jOGFpiBFNEk5hDUXI= MIME-Version: 1.0 Received: by 10.52.111.10 with SMTP id ie10mr3893206vdb.81.1306173248570; Mon, 23 May 2011 10:54:08 -0700 (PDT) Received: by 10.52.161.201 with HTTP; Mon, 23 May 2011 10:54:08 -0700 (PDT) In-Reply-To: <4DDA8FDE.9030005@sixfeetup.com> References: <4DDA8FDE.9030005@sixfeetup.com> Date: Mon, 23 May 2011 10:54:08 -0700 Message-ID: From: Kurt Buff To: "Lars R. Noldan" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-jail@freebsd.org Subject: Re: Memory Limits 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: Mon, 23 May 2011 18:22:25 -0000 A quick search turned up this: http://wiki.freebsd.org/Jails Seems to address what you're looking for. Top entry in the table, by ChrisJ= ones. Kurt On Mon, May 23, 2011 at 09:48, Lars R. Noldan wrote: > Hello all, > > I'm sorry if this has been asked before. =C2=A0My search fu only showed s= omething > dating back to FreeBSD 6.2 era, and I know a lot of work has gone into ja= ils > since then. =C2=A0Is there a way to limit the amount of total ram availab= le to a > jail? =C2=A0Say for instance I have a jails server with 32gb of ram, can = I limit > jail01 to 512mb? =C2=A0If this isn't currently possible is there any work= being > done towards this goal? > > Any suggestions you can provide, including links to the fine manual I sho= uld > have found but didn't are welcome. > > Thanks for all the hard work that's gone into jails! =C2=A0In the time I'= ve been > using them (since 7.1-Release) The improvements are huge! > > Thanks again! > Lars > -- > > Six Feet Up, Inc. | Where sophisticated web projects thrive > Direct Line: +1 (317) 861-5948 x609 > Email: lars@sixfeetup.com > Try Plone 4 Today at: http://plone4demo.com > > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" > From owner-freebsd-jail@FreeBSD.ORG Mon May 23 19:05:34 2011 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 2D037106566B for ; Mon, 23 May 2011 19:05:34 +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 DEB898FC17 for ; Mon, 23 May 2011 19:05:33 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id C887E19E02D; Mon, 23 May 2011 20:48:40 +0200 (CEST) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 58EA419E02F; Mon, 23 May 2011 20:48:38 +0200 (CEST) Message-ID: <4DDAAC05.5050101@quip.cz> Date: Mon, 23 May 2011 20:48:37 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 MIME-Version: 1.0 To: "Lars R. Noldan" References: <4DDA8FDE.9030005@sixfeetup.com> In-Reply-To: <4DDA8FDE.9030005@sixfeetup.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org Subject: Re: Memory Limits 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: Mon, 23 May 2011 19:05:34 -0000 Lars R. Noldan wrote: > Hello all, > > I'm sorry if this has been asked before. My search fu only showed > something dating back to FreeBSD 6.2 era, and I know a lot of work has > gone into jails since then. Is there a way to limit the amount of total > ram available to a jail? Say for instance I have a jails server with > 32gb of ram, can I limit jail01 to 512mb? If this isn't currently > possible is there any work being done towards this goal? > > Any suggestions you can provide, including links to the fine manual I > should have found but didn't are welcome. > > Thanks for all the hard work that's gone into jails! In the time I've > been using them (since 7.1-Release) The improvements are huge! You are looking for http://wiki.freebsd.org/Hierarchical_Resource_Limits it is implemented in 9-CURRENT http://svnweb.freebsd.org/base/head/usr.bin/rctl/ Miroslav Lachman From owner-freebsd-jail@FreeBSD.ORG Thu May 26 08:27:44 2011 Return-Path: Delivered-To: jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CEDE106564A for ; Thu, 26 May 2011 08:27:44 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 1780D8FC15 for ; Thu, 26 May 2011 08:27:43 +0000 (UTC) Received: from outgoing.leidinger.net (p5B155E9A.dip.t-dialin.net [91.21.94.154]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 21580844015; Thu, 26 May 2011 10:09:03 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::3:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 6F8862CD5; Thu, 26 May 2011 10:09:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1306397340; bh=wBvnqv4v5w98wz2uCQFE9/stumWG0wO+m9ytnrskpH8=; h=Message-ID:Date:From:To:Cc:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=JuJVDTlt4ac2km10tNPE9Ey8IT1g7KGVLi/ujEUd7I+g8TTUBG00Pml+ci5jLVMKW GZCibu4JA2HYJbMu633awDbGWZVKtk/pRTiLxKXjO2YgHdzOQeDD4W6sxJqwKatoLz ogEuylo8ybpHfC16qyRZW5189IxjJFUIegovKX6gyLMBlpIGjLkvG9CkND9gMubAOG An8xrjXyawNu11qMiaNHQCKgNSDgkLEc/hJfPZe7MyqIXkQWXEr7hv5xyIJVmLZN8d NYk3vETpVYnQe0r5jXe37dnAWu1tpVc/LDoAKsdkOPqvCGAck7UR3MaJFQNOGBeLte 72p5NP+kOHJhQ== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.14.4/Submit) id p4Q88xWW064440; Thu, 26 May 2011 10:08:59 +0200 (CEST) (envelope-from Alexander@Leidinger.net) X-Authentication-Warning: webmail.leidinger.net: www set sender to Alexander@Leidinger.net using -f Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Thu, 26 May 2011 10:08:59 +0200 Message-ID: <20110526100859.80484v1nnc56r4pn@webmail.leidinger.net> Date: Thu, 26 May 2011 10:08:59 +0200 From: Alexander Leidinger To: jail@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.6) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 21580844015.ADD32 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=1.177, required 6, autolearn=disabled, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, J_CHICKENPOX_32 0.60, J_CHICKENPOX_55 0.60, TW_GL 0.08) X-EBL-MailScanner-SpamScore: s X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1307002143.78797@Pu2/rMQkQ9h9Z5cnjciw3w X-EBL-Spam-Status: No Cc: ambrisko@ambrisko.com Subject: Fwd: X11 in a jail (was: Re: NFS mount inside jail fails) 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: Thu, 26 May 2011 08:27:44 -0000 Ooops, s/jails@/jail@/ ... Quoting Doug Ambrisko (from Wed, 25 May 2011 09:42:20 -0700 (PDT)): CCing jails@ > Alexander Leidinger writes: > | Quoting Doug Ambrisko (from Thu, 19 May 2011 > | 14:38:40 -0700 (PDT)): > | > | > Alexander Leidinger writes: > | > | On Thu, 19 May 2011 10:24:59 -0700 (PDT) Doug Ambrisko > | > | wrote: > | > | > | > | > doesn't have access to it anymore either. Running an X server in a > | > | > vimage has some issues. Most are pretty easy to over-come. > | > | > | > | Are you using my patch > | > | (http://www.leidinger.net/FreeBSD/current-patches/0_jail.diff) + a > | > | custom devfs.rules to get the 2D part (the last time I tried the DRI > | > | part of my patch, it paniced the machine) of the X server working in a > | > | jail, or did you come up with something yourself? If it is the later, I > | > | would be interested how you did it. > | > > | > Nope, didn't know about it when I played with it. I should try it. > | > I added > | > case PRIV_IO: > | > return (0); > | > > | > to kern_jail.c to get X to work. This was with the Intel graphics. > | > The main problem I have now is on resume the X server dies and restarts. > | > I use xdm. Without jail with vimage then it works okay. > | > | I use it without vimage in a jail. This is with a radeon card > | (corresponding kernel module loaded at boot to get 2D acceleration, as > | the X server obviously can not load modules in a jail). > | > | > My laptop can use either Intel or ATI graphics. I just switched it to > | > ATI to see what happens. I should try some more tests. It seems > | > my BIOS likes to reset this setting and enable both :-( > | > > | > I don't seem to have panics. This is with a month or so old -current. > | > | You do not allow access to the dri device, so I do not expect a panic. > | If you give access to the dri device (which can be enabled separately > | in my patch), I would not be surprised to see a panic (the last time I > | tried it is a year or two ago, I didn't take the time to investigate > | why it panics). > > Okay, I have an update. With Intel graphics and using dri things > work better and I don't get panics. I load drm.ko & i915.ko before Just to make sure we talk about the same things: Did you configure the X server to use 3D (dri and glx in the modules section, dri section in the X11 config, dri device visible in devfs)? xdriinfo shows some valid hardware acceleration? If yes, I definitively have to test the 3D part again with my radeon (with a normal jail and with a vimage jail in case the normal jail fails). > starting the vimage jail. X sees it and uses it. This solves the > suspend/resume issue I had. The dri issue also prevented suspend and > resume fail to work in a chroot. > > I have not tried switching to using the ATI option. On a plus side > my laptop is running cooler and faster now. If you didn't had loaded i915.ko before, you have at least 2D accel now, and probably the power management of the chip got activated too. Bye, Alexander. -- Hope that the day after you die is a nice day. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ----- Ende der weitergeleiteten Nachricht ----- -- Since we cannot hope for order, let us withdraw with style from the chaos. -- Tom Stoppard http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-jail@FreeBSD.ORG Thu May 26 18:05:33 2011 Return-Path: Delivered-To: jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2573F106566B for ; Thu, 26 May 2011 18:05:33 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [64.174.51.43]) by mx1.freebsd.org (Postfix) with ESMTP id CE8438FC1E for ; Thu, 26 May 2011 18:05:32 +0000 (UTC) X-Ambrisko-Me: Yes Received: from server2.ambrisko.com (HELO internal.ambrisko.com) ([192.168.1.2]) by ironport.ambrisko.com with ESMTP; 26 May 2011 10:36:56 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by internal.ambrisko.com (8.14.4/8.14.4) with ESMTP id p4QHaOBD038305; Thu, 26 May 2011 10:36:24 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.14.4/8.14.4/Submit) id p4QHaOSX038303; Thu, 26 May 2011 10:36:24 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <201105261736.p4QHaOSX038303@ambrisko.com> In-Reply-To: <20110526100859.80484v1nnc56r4pn@webmail.leidinger.net> To: Alexander Leidinger Date: Thu, 26 May 2011 10:36:24 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL124d (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Cc: jail@FreeBSD.org, ambrisko@ambrisko.com Subject: Re: Fwd: X11 in a jail (was: Re: NFS mount inside jail fails) 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: Thu, 26 May 2011 18:05:33 -0000 Alexander Leidinger writes: | Ooops, s/jails@/jail@/ ... | | Quoting Doug Ambrisko (from Wed, 25 May 2011 | 09:42:20 -0700 (PDT)): | | CCing jails@ | | > Alexander Leidinger writes: | > | Quoting Doug Ambrisko (from Thu, 19 May 2011 | > | 14:38:40 -0700 (PDT)): | > | | > | > Alexander Leidinger writes: | > | > | On Thu, 19 May 2011 10:24:59 -0700 (PDT) Doug Ambrisko | > | > | wrote: | > | > | | > | > | > doesn't have access to it anymore either. Running an X server in a | > | > | > vimage has some issues. Most are pretty easy to over-come. | > | > | | > | > | Are you using my patch | > | > | (http://www.leidinger.net/FreeBSD/current-patches/0_jail.diff) + a | > | > | custom devfs.rules to get the 2D part (the last time I tried the DRI | > | > | part of my patch, it paniced the machine) of the X server working in a | > | > | jail, or did you come up with something yourself? If it is the later, I | > | > | would be interested how you did it. | > | > | > | > Nope, didn't know about it when I played with it. I should try it. | > | > I added | > | > case PRIV_IO: | > | > return (0); | > | > | > | > to kern_jail.c to get X to work. This was with the Intel graphics. | > | > The main problem I have now is on resume the X server dies and restarts. | > | > I use xdm. Without jail with vimage then it works okay. | > | | > | I use it without vimage in a jail. This is with a radeon card | > | (corresponding kernel module loaded at boot to get 2D acceleration, as | > | the X server obviously can not load modules in a jail). | > | | > | > My laptop can use either Intel or ATI graphics. I just switched it to | > | > ATI to see what happens. I should try some more tests. It seems | > | > my BIOS likes to reset this setting and enable both :-( | > | > | > | > I don't seem to have panics. This is with a month or so old -current. | > | | > | You do not allow access to the dri device, so I do not expect a panic. | > | If you give access to the dri device (which can be enabled separately | > | in my patch), I would not be surprised to see a panic (the last time I | > | tried it is a year or two ago, I didn't take the time to investigate | > | why it panics). | > | > Okay, I have an update. With Intel graphics and using dri things | > work better and I don't get panics. I load drm.ko & i915.ko before | | Just to make sure we talk about the same things: | Did you configure the X server to use 3D (dri and glx in the modules | section, dri section in the X11 config, dri device visible in devfs)? | xdriinfo shows some valid hardware acceleration? main% xdriinfo Screen 0: i965 main% ls -lt /dev/dri total 0 crw-rw---- 1 root wheel 0, 35 May 26 10:18 card0 main% from xorg.conf: Section "Module" Load "record" Load "glx" Load "extmod" Load "dri2" Load "dri" Load "dbe" EndSection a part of Xorg.log (WW) intel(0): DRI2 requires UXA drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 10, (OK) drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 10, (OK) drmOpenByBusid: Searching for BusID pci:0000:00:02.0 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 10, (OK) drmOpenByBusid: drmOpenMinor returns 10 drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0 (II) [drm] DRM interface version 1.2 (II) [drm] DRM open master succeeded. (II) intel(0): [drm] Using the DRM lock SAREA also for drawables. (II) intel(0): [drm] framebuffer mapped by ddx driver (II) intel(0): [drm] added 1 reserved context for kernel (II) intel(0): X context handle = 0x1 (II) intel(0): [drm] installed DRM signal handler (**) intel(0): Framebuffer compression enabled (**) intel(0): Tiling enabled (==) intel(0): VideoRam: 262144 KB (II) intel(0): Attempting memory allocation with tiled buffers. (II) intel(0): Tiled allocation successful. (II) intel(0): [drm] Registers = 0x00000000 (II) intel(0): [drm] ring buffer = 0x00000000 (II) intel(0): [drm] mapped front buffer at 0xd091a000, handle = 0x00000000 (II) intel(0): [drm] mapped back buffer at 0xd271c000, handle = 0x00000000 (II) intel(0): [drm] mapped depth buffer at 0xd2e9c000, handle = 0x00000000 (II) intel(0): [drm] mapped classic textures at 0xd361c000, handle = 0x00000000 (II) intel(0): [drm] Initialized kernel agp heap manager, 33554432 (II) intel(0): [dri] visual configs initialized | If yes, I definitively have to test the 3D part again with my radeon | (with a normal jail and with a vimage jail in case the normal jail | fails). | | > starting the vimage jail. X sees it and uses it. This solves the | > suspend/resume issue I had. The dri issue also prevented suspend and | > resume fail to work in a chroot. | > | > I have not tried switching to using the ATI option. On a plus side | > my laptop is running cooler and faster now. | | If you didn't had loaded i915.ko before, you have at least 2D accel | now, and probably the power management of the chip got activated too. Before neither were loaded until I added it. Outside of a chroot X will auto load it. I agree that probably something else got activated to make suspend/resume work. Doug A. From owner-freebsd-jail@FreeBSD.ORG Fri May 27 07:43:26 2011 Return-Path: Delivered-To: jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F287106564A for ; Fri, 27 May 2011 07:43:26 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id B955E8FC1C for ; Fri, 27 May 2011 07:43:25 +0000 (UTC) Received: from outgoing.leidinger.net (p5B155D1A.dip.t-dialin.net [91.21.93.26]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id CF8BD844015; Fri, 27 May 2011 09:43:12 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::3:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 205B92DA8; Fri, 27 May 2011 09:43:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1306482190; bh=cP3Tjo+EEeM0tQaedE/cFwVfFH3vCAj2ET8tSqNsPp8=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=Fu5oWaQtOOFjuCuhI/VJFRn4jLg+yg+PBf9/BZp+XuhBdOcB2jKWHea09ToS+V6OW t4ZCcV11066mclv2lsd8qJA9AatH4joOwRl91/Awcxh9qwuF31JUhTSvJk0wWYXeVi QFrNM3q5GEEq52n5q545YWnovmYM3TVURWOZ4ECAqBTt1K19O3IiTUFanWhInDYmov Pku3HNKeoZ2R2vZjrCe9bQWstSwW8t3PFKcjs0TXWGx2t7BDdaevR9Txe7JMDZVq/d ltIFs9Q3SACk6PH6/L6sr66diDulJ2WQUBSC+/2lPs0R+DL8/chScoQaq9Unq3P71F JSJR33z3U3+3Q== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.14.4/Submit) id p4R7h852024224; Fri, 27 May 2011 09:43:08 +0200 (CEST) (envelope-from Alexander@Leidinger.net) X-Authentication-Warning: webmail.leidinger.net: www set sender to Alexander@Leidinger.net using -f Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 27 May 2011 09:43:08 +0200 Message-ID: <20110527094308.4994554jau0kpzws@webmail.leidinger.net> Date: Fri, 27 May 2011 09:43:08 +0200 From: Alexander Leidinger To: Doug Ambrisko References: <201105261736.p4QHaOSX038303@ambrisko.com> In-Reply-To: <201105261736.p4QHaOSX038303@ambrisko.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.6) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: CF8BD844015.A315A X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=2.877, required 6, autolearn=disabled, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, J_CHICKENPOX_21 0.60, MANGLED_LOOK 2.30, TW_GL 0.08) X-EBL-MailScanner-SpamScore: ss X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1307086993.23558@03u693TFgMHpG29Op0E/eA X-EBL-Spam-Status: No Cc: jail@FreeBSD.org Subject: Re: Fwd: X11 in a jail (was: Re: NFS mount inside jail fails) 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: Fri, 27 May 2011 07:43:26 -0000 Quoting Doug Ambrisko (from Thu, 26 May 2011 10:36:24 -0700 (PDT)): > Alexander Leidinger writes: > | Just to make sure we talk about the same things: > | Did you configure the X server to use 3D (dri and glx in the modules > | section, dri section in the X11 config, dri device visible in devfs)? > | xdriinfo shows some valid hardware acceleration? > a part of Xorg.log > (WW) intel(0): DRI2 requires UXA > drmOpenDevice: node name is /dev/dri/card0 > drmOpenDevice: open result is 10, (OK) > drmOpenDevice: node name is /dev/dri/card0 > drmOpenDevice: open result is 10, (OK) > drmOpenByBusid: Searching for BusID pci:0000:00:02.0 > drmOpenDevice: node name is /dev/dri/card0 > drmOpenDevice: open result is 10, (OK) > drmOpenByBusid: drmOpenMinor returns 10 > drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0 > (II) [drm] DRM interface version 1.2 > (II) [drm] DRM open master succeeded. > (II) intel(0): [dri] visual configs initialized That's the first time I see 3D enabled in a jail with my patch. I definitively need to get some time to try it with my radeon again. Any opinions here on jail@ about committing the kernel part (not the rc.d part) of the patch? http://www.leidinger.net/FreeBSD/current-patches/0_jail.diff Bye, Alexander. -- Staff meeting in the conference room in 3 minutes. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-jail@FreeBSD.ORG Fri May 27 09:24:45 2011 Return-Path: Delivered-To: jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1425A1065674 for ; Fri, 27 May 2011 09:24:45 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 9798E8FC1A for ; Fri, 27 May 2011 09:24:44 +0000 (UTC) Received: from outgoing.leidinger.net (p5B155D1A.dip.t-dialin.net [91.21.93.26]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 92137844015; Fri, 27 May 2011 11:24:28 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::3:102]) by outgoing.leidinger.net (Postfix) with ESMTP id CD5012DBD; Fri, 27 May 2011 11:24:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1306488265; bh=Dd+ew/FKf0j0IAxa29fMe6vyg6ik8alEwmyX0KzI8no=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=bh8g+D6eSu5IiYNeOqTKNn81LEEtC0nOZIeMrE+AsjPLgJGM6GYK7Qy9s+oFQ+GLx j7oA/zmdRsSQWAIvSg1xpXHiJDsZWagcchFCgOu9kwaoan1xfiVVIaaafkEaWytMAq fCwVF9rUrPB32w5Lb2frm/NktgYBcXJUFwHSYY98fnSYoiDP3BR7kleTyBct+iMypt F1VAHSG78I1EgkGu9jUH1FNoQ2RWphgaKHe9RlSp+xG0a0fdGkRP+qyCrUYe1TylAp 2V4yW6NB79hu74CMdevhK5CHyLZn5NUPOEm/e1CZkVxEd9xWCW7uWxRKOudZ3t0fe9 ywFPATiFRxsng== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.14.4/Submit) id p4R9OOAq028546; Fri, 27 May 2011 11:24:24 +0200 (CEST) (envelope-from Alexander@Leidinger.net) X-Authentication-Warning: webmail.leidinger.net: www set sender to Alexander@Leidinger.net using -f Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 27 May 2011 11:24:24 +0200 Message-ID: <20110527112424.17011lxozjf226yw@webmail.leidinger.net> Date: Fri, 27 May 2011 11:24:24 +0200 From: Alexander Leidinger To: Alexander Leidinger References: <201105261736.p4QHaOSX038303@ambrisko.com> <20110527094308.4994554jau0kpzws@webmail.leidinger.net> In-Reply-To: <20110527094308.4994554jau0kpzws@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.6) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 92137844015.AE599 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=2.877, required 6, autolearn=disabled, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, J_CHICKENPOX_21 0.60, MANGLED_LOOK 2.30, TW_GL 0.08) X-EBL-MailScanner-SpamScore: ss X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1307093071.96418@rUVS4+k1v/dZCsGnXw5UZQ X-EBL-Spam-Status: No Cc: jail@FreeBSD.org, Doug Ambrisko Subject: Re: Fwd: X11 in a jail (was: Re: NFS mount inside jail fails) 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: Fri, 27 May 2011 09:24:45 -0000 Quoting Alexander Leidinger (from Fri, 27 May 2011 09:43:08 +0200): > Quoting Doug Ambrisko (from Thu, 26 May 2011 > 10:36:24 -0700 (PDT)): > >> Alexander Leidinger writes: > >> | Just to make sure we talk about the same things: >> | Did you configure the X server to use 3D (dri and glx in the modules >> | section, dri section in the X11 config, dri device visible in devfs)? >> | xdriinfo shows some valid hardware acceleration? > >> a part of Xorg.log >> (WW) intel(0): DRI2 requires UXA >> drmOpenDevice: node name is /dev/dri/card0 >> drmOpenDevice: open result is 10, (OK) >> drmOpenDevice: node name is /dev/dri/card0 >> drmOpenDevice: open result is 10, (OK) >> drmOpenByBusid: Searching for BusID pci:0000:00:02.0 >> drmOpenDevice: node name is /dev/dri/card0 >> drmOpenDevice: open result is 10, (OK) >> drmOpenByBusid: drmOpenMinor returns 10 >> drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0 >> (II) [drm] DRM interface version 1.2 >> (II) [drm] DRM open master succeeded. > >> (II) intel(0): [dri] visual configs initialized > > That's the first time I see 3D enabled in a jail with my patch. I > definitively need to get some time to try it with my radeon again. > > Any opinions here on jail@ about committing the kernel part (not the > rc.d part) of the patch? > http://www.leidinger.net/FreeBSD/current-patches/0_jail.diff FYI: I got confirmation from someone off-list that 3D also works (at least is enabled according to the X11 log) on 8-stable (an adaption of it, off course) with a GeForce 8400GS (I'm not sure if it is the driver from NVidia or the open source one, but I have the impression it is the closed-source one): ---snip--- (II) Loading extension NV-GLX (II) May 12 18:18:44 NVIDIA(0): Initialized OpenGL Acceleration ---snip--- Bye, Alexander. -- Where's th' DAFFY DUCK EXHIBIT?? http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137