[OpenIndiana-discuss] Firefox cpu load / sluggishness

Predrag Zečević - Technical Support Analyst predrag.zecevic at 2e-systems.com
Mon Jan 23 10:27:12 UTC 2017


On 22.01.17 23:18, Aurélien Larcher wrote:
> Hi,
> i just came across this:
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=508427
>
> The advice is to set layout.frame_rate to a lower value than the default 60
> (-1).
> The same applies to Thunderbird.
>
> dtruss shows for 30sec:
>
> // layout.frame_rate = 24
> CALL                                        COUNT
> getsockname                                     1
> open                                            1
> doorfs                                          2
> getuid                                          2
> mmap                                            2
> open64                                          2
> statvfs64                                       2
> unlink                                          2
> close                                           3
> fstat64                                         4
> lwp_kill                                       18
> lwp_sigmask                                    18
> setcontext                                     18
> access                                         35
> fcntl                                          38
> ioctl                                          73
> gtime                                          74
> stat64                                        116
> lseek                                         160
> send                                          419
> llseek                                       1355
> writev                                       3256
> getpid                                       3257
> lwp_mutex_timedlock                          3765
> lwp_mutex_unlock                             3765
> write                                        8997
> read                                        11844
> yield                                       12086
> pollsys                                     27330
> recvmsg                                     28980
> lwp_park                                    44725
> clock_gettime                              154470
>
> // layout.frame_rate = -1
> CALL                                        COUNT
> mkdir                                           1
> open64                                          1
> recv                                            1
> unlink                                          1
> getsockname                                     2
> ioctl                                           2
> statvfs64                                       2
> fdsync                                          3
> gtime                                           3
> rename                                          3
> access                                          4
> doorfs                                          4
> fstat64                                         4
> getuid                                          4
> open                                            4
> close                                           5
> yield                                          12
> lwp_kill                                       16
> lwp_sigmask                                    16
> setcontext                                     16
> fcntl                                          51
> munmap                                         92
> mmap                                          100
> stat64                                        115
> send                                          419
> llseek                                       1399
> memcntl                                      2597
> getpid                                       2615
> lwp_mutex_timedlock                          3838
> lwp_mutex_unlock                             3838
> write                                        8761
> read                                        11410
> writev                                      36870
> lwp_park                                    44045
> clock_gettime                               74407
> pollsys                                     94750
> recvmsg                                    130168
>
> It seems to lower pollsys count as advertized (if I understood well).
>
> How does this look for you?
>
> Kind regards
>
> Aurélien
>


Hi all,

FF has 15 tabs opened, not touched during test - option was changed, no 
restart between:

// layout.frame_rate = 24; pfexec /opt/DTT/dtruss -p $FF_PID -c
CALL                                        COUNT
ioctl                                           2
recv                                            2
fdsync                                          3
connect                                         5
getsockopt                                      5
so_socket                                       5
rename                                          7
fstat64                                         8
unlink                                          8
doorfs                                         10
getuid                                         10
getsockname                                    19
open                                           19
lwp_kill                                       20
lwp_sigmask                                    20
setcontext                                     20
gtime                                          22
mmap                                           25
statvfs64                                      27
open64                                         29
access                                         33
setsockopt                                     40
close                                          48
getpeername                                    74
llseek                                         85
lstat64                                       174
fcntl                                         179
stat64                                        349
yield                                         560
memcntl                                       791
getpid                                       4035
write                                        5212
read                                         5449
writev                                       6598
recvmsg                                     22400
pollsys                                     23939
lwp_park                                    25037
clock_gettime                              118264

// layout.frame_rate = -1; pfexec /opt/DTT/dtruss -p $FF_PID -c
CALL                                        COUNT
access                                          1
fstat64                                         2
ioctl                                           2
rename                                          2
statvfs64                                       2
fdsync                                          3
gtime                                           3
open                                            3
open64                                          5
recv                                            5
close                                          11
munmap                                         17
lwp_kill                                       26
lwp_sigmask                                    26
setcontext                                     26
mmap                                           27
writev                                         42
llseek                                         48
yield                                          51
getpid                                         64
fcntl                                          98
stat64                                        251
memcntl                                       947
read                                         1386
write                                        1400
lwp_park                                     4336
recvmsg                                      5669
pollsys                                      5729
clock_gettime                               23077


Next test is done on FF which has 15 tabs opened (same ones, wasn't used 
during test) - with FF restart after changing it:

// layout.frame_rate = 24; pfexec /opt/DTT/dtruss -p $FF_PID -c
CALL                                        COUNT
recv                                            1
sysconfig                                       1
unlink                                          2
fstat                                           3
lwp_wait                                        5
mkdir                                           5
rename                                          6
getsockname                                     7
lwp_exit                                        7
gtime                                          11
lwp_kill                                       11
openat                                         11
setcontext                                     11
open64                                         12
fstat64                                        15
lwp_sigmask                                    18
access                                         21
getdents64                                     25
open                                           26
statvfs64                                      29
munmap                                         48
mmap                                           49
close                                          50
lstat64                                       264
llseek                                        314
stat64                                        385
yield                                         547
lstat                                         606
stat                                          994
getpid                                       1319
writev                                       1326
write                                        2984
memcntl                                      3298
read                                         3742
fcntl                                       12260
lwp_park                                    18072
recvmsg                                     25301
pollsys                                     26405
clock_gettime                              111836

// layout.frame_rate = -1; pfexec /opt/DTT/dtruss -p $FF_PID -c
CALL                                        COUNT
recv                                            1
statvfs64                                       1
unlink                                          1
open64                                          2
writev                                          3
rename                                          4
access                                          5
mkdir                                           5
lwp_exit                                        7
lwp_wait                                        7
gtime                                           8
lwp_kill                                       11
openat                                         11
setcontext                                     11
llseek                                         12
fstat64                                        13
open                                           14
lwp_sigmask                                    18
mmap                                           18
getdents64                                     25
close                                          28
fcntl                                          29
munmap                                         29
getpid                                         58
stat64                                        252
yield                                         447
lstat                                         604
stat                                          991
write                                        1901
read                                         1906
memcntl                                      2346
recvmsg                                      7309
pollsys                                      7316
lwp_park                                    13809
clock_gettime                               42027


To me it looks that in any case default (-1) value works better...

I am running OI /hipster (updated this morning):
$ uname -rosv
SunOS 5.11 illumos-8bd37d6 Solaris

Regards.

-- 
Predrag Zečević
Technical Support Analyst
2e Systems GmbH

Telephone: +49 6196 9505 815, Facsimile: +49 6196 9505 894
Mobile:    +49  174 3109 288,     Skype: predrag.zecevic
E-mail:    predrag.zecevic at 2e-systems.com

Headquarter:          2e Systems GmbH, Königsteiner Str. 87,
                       65812 Bad Soden am Taunus, Germany
Company registration: Amtsgericht Königstein (Germany), HRB 7303
Managing director:    Phil Douglas

http://www.2e-systems.com/ - Making your business fly!



More information about the openindiana-discuss mailing list