Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miscalculated ram of firefox #72

Open
xosevp opened this issue Nov 15, 2021 · 4 comments
Open

miscalculated ram of firefox #72

xosevp opened this issue Nov 15, 2021 · 4 comments

Comments

@xosevp
Copy link

xosevp commented Nov 15, 2021

Fedora 35 - x86_64 - kernel-5.15.2-200 - firefox-94, ps_men is latest git code: 3759690

# ps_mem.py 
 Private  +   Shared  =  RAM used       Program

204.0 KiB +  22.5 KiB = 226.5 KiB       gpm
188.0 KiB +  62.5 KiB = 250.5 KiB       xinit
252.0 KiB +  32.5 KiB = 284.5 KiB       mcelog
292.0 KiB +  79.5 KiB = 371.5 KiB       wmclock
344.0 KiB +  91.5 KiB = 435.5 KiB       irqbalance
360.0 KiB +  76.5 KiB = 436.5 KiB       wmmon
368.0 KiB + 118.5 KiB = 486.5 KiB       rtkit-daemon
460.0 KiB + 278.5 KiB = 738.5 KiB       alsactl
908.0 KiB +  68.5 KiB = 976.5 KiB       crond
988.0 KiB + 141.5 KiB =   1.1 MiB       chronyd
740.0 KiB + 456.5 KiB =   1.2 MiB       sd_dummy
  1.0 MiB + 458.5 KiB =   1.4 MiB       wmix
  1.1 MiB + 430.5 KiB =   1.5 MiB       gvfsd-fuse
  1.7 MiB +  29.5 KiB =   1.7 MiB       dhclient
  1.4 MiB + 375.5 KiB =   1.8 MiB       gvfsd
  1.1 MiB + 730.5 KiB =   1.8 MiB       su
  1.2 MiB + 704.5 KiB =   1.9 MiB       login
  1.8 MiB + 143.5 KiB =   2.0 MiB       smartd
  1.3 MiB + 756.5 KiB =   2.1 MiB       systemd-logind
  1.6 MiB + 505.5 KiB =   2.1 MiB       upowerd
  1.6 MiB + 630.5 KiB =   2.2 MiB       sshd
  1.9 MiB + 308.0 KiB =   2.2 MiB       dbus-broker (2)
  1.6 MiB + 599.0 KiB =   2.2 MiB       dbus-broker-launch (2)
  2.2 MiB +  57.5 KiB =   2.3 MiB       speech-dispatcher
  2.6 MiB + 510.5 KiB =   3.1 MiB       wpa_supplicant
  2.8 MiB + 408.5 KiB =   3.2 MiB       cupsd
  2.8 MiB + 573.5 KiB =   3.3 MiB       systemd-udevd
  3.0 MiB + 535.5 KiB =   3.6 MiB       sd_espeak-ng
  3.7 MiB + 526.5 KiB =   4.2 MiB       colord
  1.6 MiB +   2.6 MiB =   4.2 MiB       systemd-journald
  3.3 MiB +   2.2 MiB =   5.5 MiB       rsyslogd
  7.2 MiB +   4.0 MiB =  11.2 MiB       systemd (3)
 10.9 MiB +   1.6 MiB =  12.5 MiB       pulseaudio
 10.6 MiB +   1.9 MiB =  12.5 MiB       wmaker (2)
 12.3 MiB + 653.5 KiB =  12.9 MiB       polkitd
 11.6 MiB +   1.5 MiB =  13.1 MiB       bash (6)
 25.4 MiB +  13.4 MiB =  38.8 MiB       Xorg
 40.4 MiB +   4.3 MiB =  44.7 MiB       konsole
197.6 MiB +  26.1 MiB = 223.7 MiB       thunderbird (2)
368.5 MiB +  78.7 MiB = 447.2 MiB       firefox (9)
442.6 MiB +  23.4 MiB = 466.0 MiB       GeckoMain
---------------------------------
                          1.3 GiB
=================================

GeckoMain is a firefox thread/process. It should be added to it.

Thank you.

@pixelb
Copy link
Owner

pixelb commented Nov 15, 2021

Is there any way to link these processes. Are they parent and child for example.
ps -e -o pid,ppid,tid,cmd | grep -E '[f]ire|[G]ecko' would be informative

@xosevp
Copy link
Author

xosevp commented Nov 16, 2021

GeckoMain only appears with other options/tools:

$ ps -e -o pid,ppid,tid,cmd | grep -E '[f]iref|[G]ecko'
    747     721     747 /usr/lib64/firefox/firefox
    916     747     916 /usr/lib64/firefox/firefox -contentproc -parentBuildID 20211101141339 -prefsLen 1 -prefMapSize 251821 -appdir /usr/lib64/firefox/browser 747 true socket
    967     747     967 /usr/lib64/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 65 -prefMapSize 251821 -jsInit 278680 -parentBuildID 20211101141339 -appdir /usr/lib64/firefox/browser 747 true tab
   1006     747    1006 /usr/lib64/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 4734 -prefMapSize 251821 -jsInit 278680 -parentBuildID 20211101141339 -appdir /usr/lib64/firefox/browser 747 true tab
   1060     747    1060 /usr/lib64/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 5433 -prefMapSize 251821 -jsInit 278680 -parentBuildID 20211101141339 -appdir /usr/lib64/firefox/browser 747 true tab
   1572     747    1572 /usr/lib64/firefox/firefox -contentproc -childID 5 -isForBrowser -prefsLen 9618 -prefMapSize 251821 -jsInit 278680 -parentBuildID 20211101141339 -appdir /usr/lib64/firefox/browser 747 true tab
   1739     747    1739 /usr/lib64/firefox/firefox -contentproc -parentBuildID 20211101141339 -prefsLen 9618 -prefMapSize 251821 -appdir /usr/lib64/firefox/browser 747 true rdd
   1795     747    1795 /usr/lib64/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 9618 -prefMapSize 251821 -jsInit 278680 -parentBuildID 20211101141339 -appdir /usr/lib64/firefox/browser 747 true tab
   1959     747    1959 /usr/lib64/firefox/firefox -contentproc -childID 12 -isForBrowser -prefsLen 9887 -prefMapSize 251821 -jsInit 278680 -parentBuildID 20211101141339 -appdir /usr/lib64/firefox/browser 747 true tab
   3517     747    3517 /usr/lib64/firefox/firefox -contentproc -childID 45 -isForBrowser -prefsLen 10088 -prefMapSize 251821 -jsInit 278680 -parentBuildID 20211101141339 -appdir /usr/lib64/firefox/browser 747 true tab
   4535     747    4535 /usr/lib64/firefox/firefox -contentproc -childID 57 -isForBrowser -prefsLen 10088 -prefMapSize 251821 -jsInit 278680 -parentBuildID 20211101141339 -appdir /usr/lib64/firefox/browser 747 true tab
$ pstree
systemd─┬─alsactl
        ├─chronyd
        ├─colord───2*[{colord}]
        ├─crond
        ├─cupsd
        ├─dbus-broker-lau───dbus-broker
        ├─dhclient
        ├─gpm
        ├─irqbalance───{irqbalance}
        ├─login───bash───startx───xinit─┬─Xorg───3*[{Xorg}]
        │                               └─wmaker───wmaker─┬─GeckoMain─┬─Privileged Cont───14*[{Privileged Cont}]
        │                                                 │           ├─RDD Process───7*[{RDD Process}]
        │                                                 │           ├─Socket Process───3*[{Socket Process}]
        │                                                 │           ├─2*[Web Content───15*[{Web Content}]]
        │                                                 │           ├─2*[Web Content───14*[{Web Content}]]
        │                                                 │           ├─Web Content───16*[{Web Content}]
        │                                                 │           ├─WebExtensions───14*[{WebExtensions}]
        │                                                 │           ├─file:// Content───24*[{file:// Content}]
        │                                                 │           └─122*[{GeckoMain}]
        │                                                 ├─konsole─┬─bash───su───bash
        │                                                 │         ├─bash
        │                                                 │         ├─bash───pstree
        │                                                 │         └─3*[{konsole}]
        │                                                 ├─thunderbird─┬─Web Content───13*[{Web Content}]
        │                                                 │             └─71*[{thunderbird}]
        │                                                 ├─wmclock
        │                                                 ├─wmix───{wmix}
        │                                                 └─wmmon
        ├─mcelog
[...] 
$ ps -ejH
[...]
      1       1       1 ?        00:00:01 systemd
    367     367     367 ?        00:00:00   systemd-journal
    382     382     382 ?        00:00:00   systemd-udevd
    403     403     403 ?        00:00:00   cupsd
    405     405     405 ?        00:00:01   irqbalance
    406     406     406 ?        00:00:00   mcelog
    408     408     408 ?        00:00:00   gpm
    409     409     409 ?        00:00:00   rsyslogd
    411     411     411 ?        00:00:00   smartd
    412     412     412 ?        00:00:00   sshd
    414     413     413 ?        00:00:00   chronyd
    416     416     416 ?        00:00:00   systemd-logind
    422     422     422 ?        00:00:00   crond
    425     425     425 ?        00:00:00   dbus-broker-lau
    432     425     425 ?        00:00:00     dbus-broker
    437     437     437 ?        00:00:00   colord
    530     530     530 ?        00:00:00   alsactl
    569     569     569 ?        00:00:00   login
    648     648     648 tty1     00:00:00     bash
    691     691     648 tty1     00:00:00       startx
    713     691     648 tty1     00:00:00         xinit
    714     714     648 tty1     00:04:56           Xorg
    720     720     720 ?        00:00:00           wmaker
    721     720     720 ?        00:00:09             wmaker
    743     743     743 ?        00:00:52               konsole
   1197    1197    1197 pts/1    00:00:00                 bash
   3781    3781    1197 pts/1    00:00:00                   su
   3788    3788    1197 pts/1    00:00:00                     bash
   5230    5230    1197 pts/1    00:00:00                       ps
   1221    1221    1221 pts/2    00:00:00                 bash
   3828    3828    3828 pts/0    00:00:00                 bash
    744     744     744 ?        00:00:01               wmclock
    745     745     745 ?        00:00:12               wmmon
    746     746     746 ?        00:00:04               wmix
    747     747     747 ?        00:25:08               GeckoMain
    916     747     747 ?        00:00:00                 Socket Process
    967     747     747 ?        00:02:03                 file:// Content
   1006     747     747 ?        00:01:16                 WebExtensions
   1060     747     747 ?        00:01:06                 Web Content
   1572     747     747 ?        00:00:12                 Privileged Cont
   1739     747     747 ?        00:00:28                 RDD Process
   1795     747     747 ?        00:00:33                 Web Content
   1959     747     747 ?        00:01:37                 Web Content
   3517     747     747 ?        00:01:03                 Web Content
   4535     747     747 ?        00:00:25                 Web Content
   4862     747     747 ?        00:00:07                 Web Content
   4892     747     747 ?        00:00:03                 Web Content
   4921     747     747 ?        00:00:03                 Web Content
   1595    1595    1595 ?        00:06:59               thunderbird
   1702    1595    1595 ?        00:00:01                 Web Content
[...] 

@xosevp
Copy link
Author

xosevp commented Apr 2, 2022

recent firefox releases replace "GeckoMain" with "firefox"

@allanlaal
Copy link

fixed by #75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants