Hi pancake

----- Original Message -----
> From: "pancake" <[email protected]>
> To: [email protected]
> Sent: Friday, May 24, 2013 7:01:27 AM
> Subject: Re: [b2g] b2g 100% cpu usage
> 
> On 05/24/13 14:59, Justin Lebar wrote:
> > This should be very easy to debug.
> >
> > Just attach gdb to the relevant process (./run-gdb.sh attach PID --
> > you can find the pid by running adb shell b2g-ps), then break on
> > |read|, then you should quite quickly find out who's calling read
> > |in a
> > loop.
> >
> > The real question will be why we get an infinite loop of
> > EAGAIN's...
> 
> b2g has 36 threads running.. after setting a breakpoint on "read" i
> got
> the thread.

Well, you got a thread that calls read, not necessarily "the" thread which is 
consuming 100% of the CPU.

I'd recommend that you do:

top -t -m 20

to see which thread is causing the CPU usage.

Dave Hylands
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to