Hi,

This is probably nothing... but I was testing something else and I wondered why 
there are so many calls to getrlimit about the size of the stack...

These are the "top 10" calls from one second dump of strace for the xulrunner 
process (first field is the count):

$ (strace  -p 10762 2>&1 & sleep 1 && pkill strace) | awk '{a[$0]+=1} END {for 
(k in a) {print a[k],k}}' | sort -k 1 -rn | head

58498 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
53 read(13, 0xb4d65058, 4096)              = -1 EAGAIN (Resource temporarily 
unavailable)
26 poll([{fd=4, events=POLLIN}, {fd=13, events=POLLIN}, {fd=6, events=POLLIN}], 
3, 0) = 0 (Timeout)
16 poll([{fd=4, events=POLLIN}, {fd=13, events=POLLIN}], 2, 0) = 0 (Timeout)
12 semop(131073, {{0, -1, SEM_UNDO}}, 1)   = 0
12 semop(131073, {{0, 1, SEM_UNDO}}, 1)    = 0
6 poll([{fd=4, events=POLLIN}, {fd=13, events=POLLIN}, {fd=6, events=POLLIN}], 
3, 9) = 0 (Timeout)
5 write(7, "!", 1)                        = 1
5 read(6, "!", 1)                         = 1
5 poll([{fd=4, events=POLLIN}, {fd=13, events=POLLIN}, {fd=6, events=POLLIN}], 
3, 0) = 1 ([{fd=6, revents=POLLIN}])

so there are almost 60.000 calls per second (min:53.000 max:64.000) to 
RLIMIT_STACK ...

I must be missing something... 

I could trim it down to this pages:
http://www.merriam-webster.com/dictionary/xul - 10.058 calls per second (pretty 
stable +/- 2) video there was off

When starting the video it spiked to 55.000 and remained there while loading 
(even after the video was paused). The plugin crashed soon afterwards.
A second try showed the same numbers. When the video finished loading it 
remained at ~60.000 and after it stopped it remained the same.
This only stops if the tab is closed.

Some data:

$ iceweasel -v
Mozilla Iceweasel 10.0.6

$ ps ux | grep xulrunner
user   14065  5.7  0.5 228076 43484 ?        SLl  14:56   0:29 
/usr/lib/xulrunner-10.0/plugin-container 
/usr/lib/flashplayer-mozilla/libflashplayer.so -greomni 
/usr/lib/xulrunner-10.0/omni.ja 13625 plugin

$ uname -a
Linux tux104 2.6.32-5-686-bigmem #1 SMP Sun May 6 04:39:05 UTC 2012 i686 
GNU/Linux

$ lsb_release -d
Description:    Debian GNU/Linux 6.0.5 (squeeze)

flash player: 11.2.202.236

probably is nothing but it does look awkward to me...

Cheers,
Estani

-- 
Estanislao Gonzalez
Institute of Meteorology
Freie Universität Berlin
Climate System Modeling Working Group
Carl-Heinrich-Becker Weg 6-10, Room 079 AB/1
D-12165 Berlin

Phone: +49 30 838-71116
Mail: estanislao.gonza...@met.fu-berlin.de

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to