Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 May 2011 17:46:57 GMT
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/156889: firefox 3.6.17 eats cpu on current/x64
Message-ID:  <201105081746.p48HkvMr035238@critter.freebsd.dk>
Resent-Message-ID: <201105081810.p48IA9aS014317@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         156889
>Category:       ports
>Synopsis:       firefox 3.6.17 eats cpu on current/x64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 08 18:10:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Poul-Henning Kamp
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD critter.freebsd.dk 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r221621M: Sun May 8 08:20:17 UTC 2011 root@critter.freebsd.dk:/sys/amd64/compile/CRITTER amd64

>Description:

	Firefox 3.6.17 spins and eats CPU on current/x64

	As far as I can tell, the trouble is a poll(2) which either
	is called with bad args, or returns success prematurely, causing
	firefox to spin on it.

	I have not been able to locate the offending poll in the
	firefox souce-code.

	This may be a kernel bug, but I have made this PR "ports" because
	I think it needs to be investigated from the firefox port.

	The machine does not have java installed.

	I have not discovered similar problems in any other program (yet)

>How-To-Repeat:

	Install it, start it, observe system stats:

|    14 users    Load  2.30  2.17  1.79                  May  8 17:38
| 
| Mem:KB    REAL            VIRTUAL                       VN PAGER   SWAP PAGER
|         Tot   Share      Tot    Share    Free           in   out     in   out
| Act  703620   19248  4613700    22928 1677300  count
| All  847408   21984 1078509k    49820          pages
| Proc:                                                            Interrupts
|   r   p   d   s   w   Csw  Trp  Sys  Int  Sof  Flt    434 cow    1219 total
|   2         140      3910 3985   1M 1219  200 2940   2157 zfod        atkbd0 1
|                                                           ozfod       acpi0 9
| 71.5%Sys   0.0%Intr 19.9%User  0.0%Nice  8.6%Idle        %ozfod    80 psm0 12
| |    |    |    |    |    |    |    |    |    |    |       daefr    12 ath0 uhci3
| ====================================>>>>>>>>>>       1165 prcfr     2 ehci1 19
|                                        182 dtbuf     1603 totfr  1123 hpet0 uhci
| Namei     Name-cache   Dir-cache    141202 desvn          react     2 vgapci0
|    Calls    hits   %    hits   %     33259 numvn          pdwak
|     5200    5184 100       1   0     12625 frevn          pdpgs
|                                                           intrn
| Disks   ad4   da0   cd0 pass0 pass1                473588 wire
| KB/t  16.00  0.00  0.00  0.00  0.00                396112 act
| tps       7     0     0     0     0               1375344 inact
| MB/s   0.11  0.00  0.00  0.00  0.00                  3536 cache
| %busy     0     0     0     0     0               1674152 free
|                                                   417536 buf

Note 1M syscalls/sec

|last pid: 35194;  load averages:  1.90,  2.06,  1.80    up 0+01:57:12  17:40:57
|138 processes: 2 running, 134 sleeping, 2 zombie
|CPU: 14.6% user,  0.0% nice, 42.1% system,  0.2% interrupt, 43.1% idle
|Mem: 382M Active, 1341M Inact, 463M Wired, 3552K Cache, 408M Buf, 1641M Free
Swap: 
|
|  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND   
| 2840 phk          13  24    0   554M   355M uwait   1 107:28 100.78% firefox-b
| 2688 phk           1  20    0   491M   414M select  0   0:53  0.10% Xorg
| 3504 root          1  20    0 45172K  3716K select  1   0:12  0.00% ppp


	
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105081746.p48HkvMr035238>