Dear all,

I just merged b2g-info, a tool which gives you information about b2g
processes running on a device, into gonk-misc.  You can get this new
tool by running ./repo sync and then rebuilding with ./build.sh.

b2g-info is meant to subsume b2g-procrank and b2g-ps.  It (hopefully)
outputs all of the useful information from b2g-ps, b2g-procrank,
b2g-procrank --nice, and b2g-procrank --oom plus some additional data
in a (hopefully) easier-to-digest format.

b2g-info is also faster than b2g-procrank, which makes a difference if
you're running b2g-info repeatedly from a script.  In addition,
b2g-info -t outputs the niceness of each thread running on the device.
 This will help us catch some important bugs that we weren't able to
see before we had this tool

When filing bugs, please include the output of b2g-info instead of
b2g-procrank / b2g-ps.

Once we've established that b2g-info actually has all the information
from b2g-procrank and b2g-ps that people care about, I plan to retire
the old scripts, so please let me know if you encounter any
difficulties.  (For now I'm leaving b2g-ps and b2g-procrank untouched
since other scripts rely on them.)

Happy hacking,
-Justin

https://bugzilla.mozilla.org/show_bug.cgi?id=864597

$ adb shell b2g-info
                         |     megabytes    |
           NAME PID NICE  USS  PSS  RSS VSIZE OOM_ADJ USER
            b2g 144    0 55.0 58.5 72.0 175.9       0 root
     Homescreen 414   18 16.5 19.9 33.5  78.3       4 app_414
          Usage 462   18 12.5 15.7 28.8  72.6       6 app_462
        Gallery 713   18 13.2 16.6 30.1  84.2       6 app_713
(Preallocated a 775   18  9.9 12.6 24.6  67.1       6 root

System memory info:

            Total 176.5 MB
     Used - cache 127.1 MB
  B2G procs (PSS) 123.3 MB
    Non-B2G procs   3.8 MB
     Free + cache  49.4 MB
             Free   6.3 MB
            Cache  43.1 MB

Low-memory killer parameters:

  notify_trigger 14336 KB

  oom_adj min_free
        6 20480 KB
        4  8192 KB
        3  7168 KB
        2  6144 KB
        1  5120 KB
        0  4096 KB
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to