Project

General

Profile

Bug #15716

Feature #15023: Upgrade to Tor Browser based on Firefox ESR60

Check Tor Browser 8 memory usage

Added by intrigeri over 1 year ago. Updated over 1 year ago.

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

100%

Feature Branch:
Type of work:
Research
Blueprint:
Starter:
Affected tool:
Browser

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.


Related issues

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

Associated revisions

Revision 6d681cd9 (diff)
Added by intrigeri over 1 year ago

Confine Firefox 60 "Web Content" processes under the torbrowser_plugin_container AppArmor profile (refs: #15716)

Revision 37e14889 (diff)
Added by intrigeri over 1 year ago

Make Tor Browser less memory-hungry on systems with less than 3 GiB of RAM (refs: #15716).

With 2 GiB of RAM, the default settings (4 content child processes) make Tor
Browser eat way too much memory: Tor Browser starts breaking after some browsing
and our check for upgrades may fail. With 3 GiB of RAM and the default settings,
once I open a bunch of tabs, start LibreOffice, Thunderbird, Files and KeePassX,
then the system still works and Tor Browser is still snappy.

History

#1 Updated by intrigeri over 1 year ago

#2 Updated by intrigeri over 1 year ago

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 over 1 year ago

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 over 1 year ago

  • Status changed from Confirmed to In Progress

#5 Updated by intrigeri over 1 year ago

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

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

Also available in: Atom PDF