Bug #15716

Check Tor Browser 8 memory usage

Added by intrigeri 2018-07-05 14:37:47 . Updated 2018-07-07 14:24:26 .

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Hardware support
Target version:
Start date:
2018-07-05
Due date:
% Done:

100%

Feature Branch:
Type of work:
Research
Blueprint:

Starter:
Affected tool:
Browser
Deliverable for:

Description

My test VM with 2GB of RAM quickly becomes sluggish when I use Tor Browser 8 and do a little bit of other things on the side, like installing bpython and running journalctl -f.


Subtasks


Related issues

Blocks Tails - Feature #15334: Core work 2018Q3: Foundations Team Resolved 2018-02-20

History

#1 Updated by intrigeri 2018-07-05 14:37:55

#2 Updated by intrigeri 2018-07-05 16:02:46

Started Tails, waited a few minutes for things like the check for upgrades to have happened, started Tor Browser, waited for the homepage to load, opened 3 more tabs (https://blog.torproject.org/, https://riseup.net/, https://www.youtube.com/watch?v=uCu0IGC53xg), paused the YouTube video as soon as it started playing, and then opened a terminal to get resources info:

3.8 (Tor Browser 7.5.6)

$ free -m
              total        used        free      shared  buff/cache   available
Mem:           1900        1097         135         123         667         435
Swap:             0           0           0

$ ps ux | grep -E 'firefox|plugin-container'
amnesia   8249 13.1 22.1 2383328 430464 tty2   Rl+  15:34   0:59 /usr/local/lib/tor-browser/firefox -allow-remote --class Tor Browser -profile /home/amnesia/.tor-browser/profile.default
amnesia   8377 15.6 17.0 2282036 332428 tty2   Sl+  15:34   1:08 /usr/local/lib/tor-browser/plugin-container -greomni /usr/local/lib/tor-browser/omni.ja -appomni /usr/local/lib/tor-browser/browser/omni.ja -appdir /usr/local/lib/tor-browser/browser 8249 tab

feature/15023-tor-browser-8 (Tor Browser 8.0a9)

$ free -m
              total        used        free      shared  buff/cache   available
Mem:           1900        1496         133         123         271          82
Swap:             0           0           0

$ ps ux | grep firefox
amnesia   8549 30.0 18.4 2685896 359664 tty2   Sl+  15:34   1:19 /usr/local/lib/tor-browser/firefox -allow-remote --class Tor Browser -profile /home/amnesia/.tor-browser/profile.default
amnesia   8682  4.6  5.7 1542652 112296 tty2   Sl+  15:34   0:11 /usr/local/lib/tor-browser/firefox -contentproc -childID 1 -isForBrowser -boolPrefs 301:0| -stringPrefs 287:36;8e57ea23-3af1-486f-92dc-384ec9648bc2| -schedulerPrefs 0001,2 -greomni /usr/local/lib/tor-browser/omni.ja -appomni /usr/local/lib/tor-browser/browser/omni.ja -appdir /usr/local/lib/tor-browser/browser 8549 tab
amnesia   8784  3.4  5.7 1572128 112196 tty2   Sl+  15:34   0:08 /usr/local/lib/tor-browser/firefox -contentproc -childID 2 -isForBrowser -boolPrefs 301:0| -stringPrefs 287:36;8e57ea23-3af1-486f-92dc-384ec9648bc2| -schedulerPrefs 0001,2 -greomni /usr/local/lib/tor-browser/omni.ja -appomni /usr/local/lib/tor-browser/browser/omni.ja -appdir /usr/local/lib/tor-browser/browser 8549 tab
amnesia   8882  3.1  5.9 1605664 115940 tty2   Sl+  15:35   0:05 /usr/local/lib/tor-browser/firefox -contentproc -childID 3 -isForBrowser -boolPrefs 301:0| -stringPrefs 287:36;8e57ea23-3af1-486f-92dc-384ec9648bc2| -schedulerPrefs 0001,2 -greomni /usr/local/lib/tor-browser/omni.ja -appomni /usr/local/lib/tor-browser/browser/omni.ja -appdir /usr/local/lib/tor-browser/browser 8549 tab
amnesia   8917 27.6 10.9 1817240 212432 tty2   Sl+  15:36   0:42 /usr/local/lib/tor-browser/firefox -contentproc -childID 4 -isForBrowser -boolPrefs 301:0| -stringPrefs 287:36;8e57ea23-3af1-486f-92dc-384ec9648bc2| -schedulerPrefs 0001,2 -greomni /usr/local/lib/tor-browser/omni.ja -appomni /usr/local/lib/tor-browser/browser/omni.ja -appdir /usr/local/lib/tor-browser/browser 8549 tab

#3 Updated by intrigeri 2018-07-05 16:38:23

According to about:support and dom.ipc.processCount, Tor Browser 8 uses up to 4 web content processes, which matches what I’ve reported above. While Tor Browser 7.x uses only 1.

#4 Updated by intrigeri 2018-07-06 02:42:54

  • Status changed from Confirmed to In Progress

Applied in changeset commit:6d681cd90343bb4e7ef6e7d49241dbb744063b34.

#5 Updated by intrigeri 2018-07-07 14:24:26

  • Status changed from In Progress to Resolved
  • Assignee deleted (intrigeri)
  • % Done changed from 0 to 100

Fixed in commit:37e1488912dd07763440ade0d8900ad9b0fd6926, with less than 3GB of RAM we’ll use a lower number of web content processes.