Re: [Lxc-users] starting a container causes Xorg to consume 100% cpu

2010-06-22 Thread Jon Nordby
On 22 June 2010 17:32, Stuart Nixon stu...@rednut.net wrote:
 Hello LXCers

 When ever I start a lxc container the hosts Xorg process starts
 consuming 100% cpu time.

 Is this a known issue? Are there any work-arounds to avoid this behaviour?
I can reproduce this issue on a container (with separate rootfs) which
does not even have
pts, tty or networking set up. gettys in the container are commented
out, of course. This is on 2.6.34 with lxc 0.7.0
It also leaves me unable to switch ttys in the host. Shutting down the
container does not fix the problem, I have to kill X for it to go back
to normal.

-- 
Regards Jon Nordby - www.jonnor.com

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] starting a container causes Xorg to consume 100% cpu

2010-06-22 Thread Daniel Lezcano
On 06/22/2010 07:05 PM, Daniel Lezcano wrote:
 On 06/22/2010 06:55 PM, Jon Nordby wrote:

 On 22 June 2010 17:32, Stuart Nixonstu...@rednut.net   wrote:
  
 Hello LXCers

 When ever I start a lxc container the hosts Xorg process starts
 consuming 100% cpu time.

 Is this a known issue? Are there any work-arounds to avoid this behaviour?

 I can reproduce this issue on a container (with separate rootfs) which
 does not even have
 pts, tty or networking set up. gettys in the container are commented
 out, of course. This is on 2.6.34 with lxc 0.7.0
 It also leaves me unable to switch ttys in the host. Shutting down the
 container does not fix the problem, I have to kill X for it to go back
 to normal.
  

 The problem does no longer occur since I upgraded to ubuntu 10.04, what
 is your distro ? I am not suggesting you have to upgrade ;)


Correction, I just got it again :)


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] starting a container causes Xorg to consume 100% cpu

2010-06-22 Thread Daniel Lezcano
On 06/22/2010 05:32 PM, Stuart Nixon wrote:
 Hello LXCers

 When ever I start a lxc container the hosts Xorg process starts
 consuming 100% cpu time.

 Is this a known issue? Are there any work-arounds to avoid this behaviour?


Ok, I think I got the problem.

Until I fix this, you can use the workaround by specifying:

  lxc-start -n name -s lxc.console=$(tty)

or lxc.console=/dev/null or lxc.console=mylog, whatever ...

Thanks
   -- Daniel

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] starting a container causes Xorg to consume 100% cpu

2010-06-22 Thread Daniel Lezcano
On 06/22/2010 08:57 PM, Jon Nordby wrote:
 On 22 June 2010 19:50, Daniel Lezcanodaniel.lezc...@free.fr  wrote:

 Until I fix this, you can use the workaround by specifying:

   lxc-start -n name -s lxc.console=$(tty)

 or lxc.console=/dev/null or lxc.console=mylog, whatever ...
  
 This does indeed work around the issue. Thanks


Fixed by commit:

http://lxc.git.sourceforge.net/git/gitweb.cgi?p=lxc/lxc;a=commitdiff;h=cd453b38b778652cb341062fbf3c38edefc3a478;hp=8119235833dc0861c34086f639a60546cda2739c

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users