<div>I put a complete debug log here https://bugzilla.redhat.com/show_bug.cgi?id=1005570  (attement)<br><br></div><div>I created two mail threads , sorry .<br></div><div><br></div><br>======<br>I put some debug info here <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1005570" target="_blank">https://bugzilla.redhat.com/<wbr>show_bug.cgi?id=1005570</a><br>It seems something happened in virLXCControllerConsoleUpdateW<div><wbr>atch function,<br>a pipe , the write side broken, so the read side hangup which causes 100% cpu usage.<br><br>On my compute , libvirt_lxc started, 3 hours laster, this would occur . <br>In early time , under normal situation ,  the debug would print informations on  newHostEvents or newContEvents ,<br>but then It's going to be crazy ...  no debug information on newHostEvents or newContEvents anymore ,just infinate loop.<br><br><br>I even could not understand what's the meaning of the code ~~  <img src="https://res.mail.qq.com/zh_CN/images/mo/EMOJI/017.png"></div><br><br><div><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana;color:#000;"><div><br></div></div></div><div> </div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Daniel P. Berrange";<berrange@redhat.com>;</div><div><b>Date: </b> Fri, Nov 1, 2013 06:12 PM</div><div><b>To: </b> "jj"<menghuizhanguo@gmail.com>; <wbr></div><div><b>Cc: </b> "libvirt-users"<libvirt-users@redhat.com>; <wbr></div><div><b>Subject: </b> Re: [libvirt-users] libvirt_lxc causes cpu 100% usage</div></div><div><br></div>On Wed, Oct 30, 2013 at 10:50:07AM +0800, jj wrote:<br>> log_level = 1<br><br>> <br>> under abnormal situation , the below log generated without time delay  between loops.<br>> <br>> 2013-10-30 00:31:57.469+0000: 7566: debug : virEventPollRunOnce:638 : Poll got 1 event(s)<br>> 2013-10-30 00:31:57.469+0000: 7566: debug : virEventPollDispatchTimeouts:423 : Dispatch 2<br>> 2013-10-30 00:31:57.469+0000: 7566: debug : virEventPollDispatchHandles:468 : Dispatch 7<br>> 2013-10-30 00:31:57.469+0000: 7566: debug : virEventPollDispatchHandles:482 : i=0 w=1<br>> 2013-10-30 00:31:57.469+0000: 7566: debug : virEventPollDispatchHandles:482 : i=1 w=2<br>> 2013-10-30 00:31:57.469+0000: 7566: debug : virEventPollDispatchHandles:482 : i=2 w=3<br>> 2013-10-30 00:31:57.469+0000: 7566: debug : virEventPollDispatchHandles:482 : i=3 w=4<br>> 2013-10-30 00:31:57.469+0000: 7566: debug : virEventPollDispatchHandles:482 : i=4 w=5<br>> 2013-10-30 00:31:57.469+0000: 7566: debug : virEventPollDispatchHandles:482 : i=5 w=6<br>> 2013-10-30 00:31:57.470+0000: 7566: debug : virEventPollDispatchHandles:496 : EVENT_POLL_DISPATCH_HANDLE: watch=6 events=8<br>> 2013-10-30 00:31:57.470+0000: 7566: debug : virLXCControllerConsoleIO:974 : IO event watch=6 fd=18 events=8 fromHost=0 fromcont=1024<br>> 2013-10-30 00:31:57.470+0000: 7566: debug : virLXCControllerConsoleIO:1044 : Got EOF on 6 18<br>> 2013-10-30 00:31:57.470+0000: 7566: debug : virLXCControllerConsoleUpdateWatch:837 : Container watch 7=0 host watch 6=3<br>> 2013-10-30 00:31:57.470+0000: 7566: debug : virEventPollUpdateHandle:147 : EVENT_POLL_UPDATE_HANDLE: watch=7 events=0<br>> 2013-10-30 00:31:57.470+0000: 7566: debug : virEventPollInterruptLocked:710 : Skip interrupt, 1 1996885056<br>> 2013-10-30 00:31:57.470+0000: 7566: debug : virEventPollUpdateHandle:147 : EVENT_POLL_UPDATE_HANDLE: watch=6 events=3<br>> 2013-10-30 00:31:57.470+0000: 7566: debug : virEventPollInterruptLocked:710 : Skip interrupt, 1 1996885056<br>> 2013-10-30 00:31:57.470+0000: 7566: debug : virEventPollDispatchHandles:482 : i=7 w=8<br>> 2013-10-30 00:31:57.470+0000: 7566: debug : virEventPollCleanupTimeouts:514 : Cleanup 2<br>> 2013-10-30 00:31:57.471+0000: 7566: debug : virEventPollCleanupHandles:562 : Cleanup 8<br>> 2013-10-30 00:31:57.471+0000: 7566: debug : virEventRunDefaultImpl:270 : running default event implementation<br>> 2013-10-30 00:31:57.471+0000: 7566: debug : virEventPollCleanupTimeouts:514 : Cleanup 2<br>> 2013-10-30 00:31:57.471+0000: 7566: debug : virEventPollCleanupHandles:562 : Cleanup 8<br>> 2013-10-30 00:31:57.471+0000: 7566: debug : virEventPollMakePollFDs:391 : Prepare n=0 w=1, f=3 e=1 d=0<br>> 2013-10-30 00:31:57.471+0000: 7566: debug : virEventPollMakePollFDs:391 : Prepare n=1 w=2, f=5 e=1 d=0<br>> 2013-10-30 00:31:57.471+0000: 7566: debug : virEventPollMakePollFDs:391 : Prepare n=2 w=3, f=7 e=1 d=0<br>> 2013-10-30 00:31:57.471+0000: 7566: debug : virEventPollMakePollFDs:391 : Prepare n=3 w=4, f=9 e=1 d=0<br>> 2013-10-30 00:31:57.471+0000: 7566: debug : virEventPollMakePollFDs:391 : Prepare n=4 w=5, f=13 e=1 d=0<br>> 2013-10-30 00:31:57.472+0000: 7566: debug : virEventPollMakePollFDs:391 : Prepare n=5 w=6, f=18 e=5 d=0<br>> 2013-10-30 00:31:57.472+0000: 7566: debug : virEventPollMakePollFDs:391 : Prepare n=6 w=7, f=12 e=0 d=0<br>> 2013-10-30 00:31:57.472+0000: 7566: debug : virEventPollMakePollFDs:391 : Prepare n=7 w=8, f=14 e=1 d=0<br>> 2013-10-30 00:31:57.472+0000: 7566: debug : virEventPollCalculateTimeout:332 : Calculate expiry of 2 timers <br>> 2013-10-30 00:31:57.472+0000: 7566: debug : virEventPollCalculateTimeout:361 : Timeout at 0 due in -1 ms<br>> 2013-10-30 00:31:57.472+0000: 7566: debug : virEventPollRunOnce:627 : EVENT_POLL_RUN: nhandles=7 timeout=-1<br><br><br>Can you provide a more complete log file for this scenario. I'd like<br>to see multiple cases of the virLXCControllerConsoleIO log message,<br>preferrably from right when the container first starts up. If the<br>logfile is very large, upload it somewhere rather than sending to<br>the list.<br><br>Also, when does this occur ? Does it happen immediately when you<br>start an LXC guest on mips ? Or does it only happen afer the VM<br>has been running for some period of time  ?<br><br><br>Daniel<br>-- <br>|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|<br>|: http://libvirt.org              -o-             http://virt-manager.org :|<br>|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|<br>|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|<br><br>_______________________________________________<br>libvirt-users mailing list<br>libvirt-users@redhat.com<br>https://www.redhat.com/mailman/listinfo/libvirt-users<br>..<br><br></div>