Bug 1904990 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

### Steps to reproduce
1. Close all tabs and force stop the app
2. Open a new tab to play a video in Youtube. (I used https://m.youtube.com/watch?v=-ZeAr9ROO8w for my tests.)
3. Check the memory usage at various points via adb using "adb shell dumpsys meminfo".

### Expected behavior
Total memory usage by Firefox processes would be lower and closer to total memory usage by Chrome processes.

### Actual behavior
Firefox (org.mozilla.firefox package) uses 6 total processes when playing video: the main process, the gpu process, two "tab" processes (one of which is the content process and the other of which is the extension process), a utility process and a media process. I ran this test twice for Firefox and got pretty consistent results. Here are the averages across those runs, per-process:

```
RSS:
  453,206K: org.mozilla.firefox:gpu (pid 20168)
  434,658K: org.mozilla.firefox (pid 20003 / activities)
  325,544K: org.mozilla.firefox:[content process] (pid 20101)
  181,432K: org.mozilla.firefox:[extension process] (pid 20337)
  136,628K: org.mozilla.firefox:utility (pid 20412)
  122,866K: org.mozilla.firefox:media (pid 20504)
-----------
1,654,334K

PSS:
  310,491K: org.mozilla.firefox:gpu (pid 20168)
  239,186K: org.mozilla.firefox (pid 20003 / activities)
  171,872K: org.mozilla.firefox:tab34 (pid 20101)
   43,996K: org.mozilla.firefox:tab15 (pid 20337)
   20,549K: org.mozilla.firefox:utility (pid 20412)
   14,002K: org.mozilla.firefox:media (pid 20504)
-----------
  800,096K
```
Chrome (com.android.chrome) uses 3 total processes when playing this same video: the main process, a gpu process and a content process. I ran this test three times for Chrome and got pretty consistent results as well. Here are the averages across those runs, per-process:
```
RSS:
  397,681K: com.android.chrome (pid 20018 / activities)
  303,444K: com.android.chrome:privileged_process0 (pid 20104)
  271,611K: com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:1 (pid 20189)
  --------
  972,736K

PSS:
    230,423K: com.android.chrome (pid 20018 / activities)
    168,191K: com.android.chrome:privileged_process0 (pid 20104)
    155,149K: com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:1 (pid 20189)
	--------
	553,763K
```
According to these number, Firefox is using about 70% more memory according to RSS accounting and 44% more memory according to PSS accounting when playing this video.

### Device information

* Firefox version: 127.0.1
* Android device model: Pixel 6
* Android OS version: 14

### Any additional information?
I'm not sure how important is was but, prior to running tests in a given browser, I closed all tabs in that browser, cleared the cache for that browser, restarted my device and then force-closed that browser after the restart.
### Steps to reproduce
1. Close all tabs and force stop the app
2. Open a new tab to play a video in Youtube. (I used https://m.youtube.com/watch?v=-ZeAr9ROO8w for my tests.)
3. Check the memory usage at various points via adb using "adb shell dumpsys meminfo".

### Expected behavior
Total memory usage by Firefox processes would be lower and closer to total memory usage by Chrome processes.

### Actual behavior
Firefox (org.mozilla.firefox package) uses 6 total processes when playing video: the main process, the gpu process, two "tab" processes (one of which is the content process and the other of which is the extension process), a utility process and a media process. I ran this test twice for Firefox and got pretty consistent results. Here are the averages across those runs, per-process:

```
RSS:
  453,206K: org.mozilla.firefox:gpu (pid 20168)
  434,658K: org.mozilla.firefox (pid 20003 / activities)
  325,544K: org.mozilla.firefox:[content process] (pid 20101)
  181,432K: org.mozilla.firefox:[extension process] (pid 20337)
  136,628K: org.mozilla.firefox:utility (pid 20412)
  122,866K: org.mozilla.firefox:media (pid 20504)
-----------
1,654,334K

PSS:
  310,491K: org.mozilla.firefox:gpu (pid 20168)
  239,186K: org.mozilla.firefox (pid 20003 / activities)
  171,872K: org.mozilla.firefox:tab34 (pid 20101)
   43,996K: org.mozilla.firefox:tab15 (pid 20337)
   20,549K: org.mozilla.firefox:utility (pid 20412)
   14,002K: org.mozilla.firefox:media (pid 20504)
-----------
  800,096K
```
Chrome (com.android.chrome) uses 3 total processes when playing this same video: the main process, a gpu process and a content process. I ran this test three times for Chrome and got pretty consistent results as well. Here are the averages across those runs, per-process:
```
RSS:
  397,681K: com.android.chrome (pid 20018 / activities)
  303,444K: com.android.chrome:privileged_process0 (pid 20104)
  271,611K: com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:1 (pid 20189)
  --------
  972,736K

PSS:
  230,423K: com.android.chrome (pid 20018 / activities)
  168,191K: com.android.chrome:privileged_process0 (pid 20104)
  155,149K: com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:1 (pid 20189)
  --------
  553,763K
```
According to these number, Firefox is using about 70% more memory according to RSS accounting and 44% more memory according to PSS accounting when playing this video.

### Device information

* Firefox version: 127.0.1
* Android device model: Pixel 6
* Android OS version: 14

### Any additional information?
I'm not sure how important is was but, prior to running tests in a given browser, I closed all tabs in that browser, cleared the cache for that browser, restarted my device and then force-closed that browser after the restart.
### Steps to reproduce
1. Close all tabs and force stop the app
2. Open a new tab to play a video in Youtube. (I used https://m.youtube.com/watch?v=-ZeAr9ROO8w for my tests.)
3. Check the memory usage at various points via adb using "adb shell dumpsys meminfo".

### Expected behavior
Total memory usage by Firefox processes would be lower and closer to total memory usage by Chrome processes.

### Actual behavior
Firefox (org.mozilla.firefox package) uses 6 total processes when playing video: the main process, the gpu process, two "tab" processes (one of which is the content process and the other of which is the extension process), a utility process and a media process. I ran this test twice for Firefox and got pretty consistent results. Here are the averages across those runs, per-process:

```
RSS:
  453,206K: org.mozilla.firefox:gpu (pid 20168)
  434,658K: org.mozilla.firefox (pid 20003 / activities)
  325,544K: org.mozilla.firefox:[content process] (pid 20101)
  181,432K: org.mozilla.firefox:[extension process] (pid 20337)
  136,628K: org.mozilla.firefox:utility (pid 20412)
  122,866K: org.mozilla.firefox:media (pid 20504)
-----------
1,654,334K

PSS:
  310,491K: org.mozilla.firefox:gpu (pid 20168)
  239,186K: org.mozilla.firefox (pid 20003 / activities)
  171,872K: org.mozilla.firefox:tab34 (pid 20101)
   43,996K: org.mozilla.firefox:tab15 (pid 20337)
   20,549K: org.mozilla.firefox:utility (pid 20412)
   14,002K: org.mozilla.firefox:media (pid 20504)
-----------
  800,096K
```
Chrome (com.android.chrome) uses 3 total processes when playing this same video: the main process, a gpu process and a content process. I ran this test three times for Chrome and got pretty consistent results as well. Here are the averages across those runs, per-process:
```
RSS:
  397,681K: com.android.chrome (pid 20018 / activities)
  303,444K: com.android.chrome:privileged_process0 (pid 20104)
  271,611K: com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:1 (pid 20189)
  --------
  972,736K

PSS:
  230,423K: com.android.chrome (pid 20018 / activities)
  168,191K: com.android.chrome:privileged_process0 (pid 20104)
  155,149K: com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:1 (pid 20189)
  --------
  553,763K
```
According to these numbers, Firefox is using about 70% more memory according to RSS accounting and 44% more memory according to PSS accounting when playing this video.

### Device information

* Firefox version: 127.0.1
* Android device model: Pixel 6
* Android OS version: 14

### Any additional information?
I'm not sure how important is was but, prior to running tests in a given browser, I closed all tabs in that browser, cleared the cache for that browser, restarted my device and then force-closed that browser after the restart.
### Steps to reproduce
1. Close all tabs and force stop the app
2. Open a new tab to play a video in Youtube. (I used https://m.youtube.com/watch?v=-ZeAr9ROO8w for my tests.)
3. Check the memory usage at various points via adb using "adb shell dumpsys meminfo".

### Expected behavior
Total memory usage by Firefox processes would be lower and closer to total memory usage by Chrome processes.

### Actual behavior
Firefox (org.mozilla.firefox package) uses 6 total processes when playing video: the main process, the gpu process, two "tab" processes (one of which is the content process and the other of which is the extension process), a utility process and a media process. I ran this test twice for Firefox and got pretty consistent results. Here are the averages across those runs, per-process:

```
RSS:
  453,206K: org.mozilla.firefox:gpu (pid 20168)
  434,658K: org.mozilla.firefox (pid 20003 / activities)
  325,544K: org.mozilla.firefox:[content process] (pid 20101)
  181,432K: org.mozilla.firefox:[extension process] (pid 20337)
  136,628K: org.mozilla.firefox:utility (pid 20412)
  122,866K: org.mozilla.firefox:media (pid 20504)
-----------
1,654,334K

PSS:
  310,491K: org.mozilla.firefox:gpu (pid 20168)
  239,186K: org.mozilla.firefox (pid 20003 / activities)
  171,872K: org.mozilla.firefox:tab34 (pid 20101)
   43,996K: org.mozilla.firefox:tab15 (pid 20337)
   20,549K: org.mozilla.firefox:utility (pid 20412)
   14,002K: org.mozilla.firefox:media (pid 20504)
-----------
  800,096K
```
Chrome (com.android.chrome) uses 3 total processes when playing this same video: the main process, a gpu process and a content process. I ran this test three times for Chrome and got pretty consistent results as well. Here are the averages across those runs, per-process:
```
RSS:
  397,681K: com.android.chrome (pid 20018 / activities)
  303,444K: com.android.chrome:privileged_process0 (pid 20104)
  271,611K: com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:1 (pid 20189)
  --------
  972,736K

PSS:
  230,423K: com.android.chrome (pid 20018 / activities)
  168,191K: com.android.chrome:privileged_process0 (pid 20104)
  155,149K: com.android.chrome:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:1 (pid 20189)
  --------
  553,763K
```
According to these numbers, Firefox is using about 70% more memory according to RSS accounting and 44% more memory according to PSS accounting when playing this video.

### Device information

* Firefox version: 127.0.1
* Android device model: Pixel 6
* Android OS version: 14

### Any additional information?
I'm not sure how important is was but, prior to running tests in a given browser, I closed all tabs in that browser, cleared the cache for that browser and restarted my device.

Back to Bug 1904990 Comment 0