CPU races to about 50% when online (0 when offline)

RESOLVED WORKSFORME

Status

Thunderbird
General
RESOLVED WORKSFORME
9 years ago
8 years ago

People

(Reporter: Eliot Lear, Unassigned)

Tracking

({perf})

Trunk
x86
Mac OS X

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b4pre) Gecko/20090413 Shredder/3.0b3pre

While not actually performing anything or even being logged in, Shredder is chewing CPU.  

Reproducible: Always

Steps to Reproduce:
1. Start Shredder
2. Go online (cpu races)
3. Go offline (cpu calms)
2. Go online again (cpu races again)
Actual Results:  
(see above)

Expected Results:  
I expect the CPU to not race for my mail reader unless it is doing a lot of filtering (it wasn't doing any).

Search indexing is apparently not a factor (duh- no networking necessary).  I wonder if this is related to Bug 480814.

Please provide guidance on what debugging information you would like.
(Reporter)

Comment 1

9 years ago
Created attachment 372607 [details]
full log (NSPR_LOG_MODULES=all:5)

Here's a log of what's going on.  Could there be a polling parameter problem?
Version: unspecified → Trunk
Are you using POP3 , Imap ? Your log does not contain anything connection related.

>Could there be a polling parameter problem? 

In what sense ?
(Reporter)

Comment 3

9 years ago
I'm seeing the following in the log:

-1341116416[1225090]:   calling PR_Poll [active=0 idle=0]
-1341116416[1225090]:     timeout = 0 milliseconds
-1341116416[1225090]:     ...returned after 0 milliseconds

and 

-1341116416[1225090]: STS poll iter [1]
-1341116416[1225090]:   calling PR_Poll [active=0 idle=0]
-1341116416[1225090]:     timeout = -1 milliseconds

Is one of these just wrong?
It might also be interesting to run Shark on Thunderbird while it's eating CPU and see what sort of information that turns up...
(In reply to comment #4)
> It might also be interesting to run Shark on Thunderbird while it's eating CPU
> and see what sort of information that turns up...

Eliot instructions on instrumenting with shark are at https://developer.mozilla.org/En/Profiling_JavaScript_with_Shark , while builds with shark enabled are at http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-1.9.1/. Could you install one of those -shark builds and follow the instructions on the wiki - and give us the results here. If you need more help please join us online on irc.mozilla.org #maildev we'll gladly help.
(Reporter)

Comment 6

9 years ago
This is the first time I've used Shark.  Oh it's lovely to have a profiler!  Thanks for the Leopard lesson!  Now back to my CPU...

The new binary doesn't reproduce the problem reliably, which leads me to believe that when TB is using CPU, now it's actually doing something ;-)  I'll come back in a day and see if it happens again.

Comment 7

8 years ago
If you no longer consider this to be a problem, please close WFM
Keywords: perf
Whiteboard: closeme 2009-09-21
(Reporter)

Comment 8

8 years ago
Still occasionally see a race, but it's not associated with online/offline.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → WORKSFORME
Whiteboard: closeme 2009-09-21
You need to log in before you can comment on or make changes to this bug.