Skip to content

High CPU load in whonix-ws-14 AppVM & DispVM - related to notifications?  #4969

@githubhun1

Description

@githubhun1

Qubes OS version
R4.0 and up

Affected component(s) or functionality
whonix-ws-14-dvm based AppVMs, DispVMs: Tor Browser, Tor connection notification widget

Brief summary
Tor Browser (process: firefox.real) is causing constant excessive CPU load (>150%), even if there's no web content displayed (empty page) in these two use cases:

  1. Tor Browser window launches before sys-whonix displays notification "Connected to Tor". CPU load in AppVM jumps up and remains there until Tor Browser is closed and re-opened again
  2. if system wakes up from sleep, then Tor Browser is launched, a few second later (presumably, when sys-whonix reconnects to Tor and would send the notification) CPU load jumps up and remains there until Tor Browser is closed and re-opened again

To Reproduce
Steps to reproduce the behavior:
use case 1:

  1. Start Qubes with sys-whonix not started automatically (or equally start with sys-whonix not running actually).
  2. Try to open any Tor Browser window in a whonix-ws AppVM or DispVM
  3. Wait until Tor Browser window appear
  4. Check AppVM or DispVM CPU usage in Dom0 with xentop or top/htop in AppVM, after "Connected to tor network" notification is displayed.

use case 2:

  1. Make sure sys-whonix is running
  2. Suspend/Resume system
  3. Lauch Tor Browser window in a whonix-ws-14 based AppVM or DispVM
  4. Wait until Tor Browser window appear
  5. Check AppVM or DispVM CPU usage in Dom0 with xentop or top/htop in AppVM or DispVM

Expected behavior
No hang processes in AppVM or DispVM

Actual behavior
Constant CPU usage >150% in the respective AppVM or DispVM. Requesting new identity in TB doesn't solve the issue, only closing Tor Browser and reopening again seem to help.
You can still browse despite the high CPU usage, however system is very slow and CPU fans constantly operate at high speed.

Screenshots
N/A

Additional context
This might be connected to sys-whonix notification scripts, or the way sys-whonix checks if connection to Tor is verified. In use case 1, browsing is already working before the notification is being shown, there could be few seconds - max 10-15s - delay for the notification to appear. After the initial notification ("Connected to Tor") no further notifications appear, but use case2 still exist.
Might be also worth checking if there could be any security implications (anonymity) for having that hang "Firefox.real" process, before the connection to tor is presumably verified

Solutions you've tried
Workaround: close and re-open Tor Browser - not too convenient in DispVM

Relevant documentation you've consulted
N/A
Related, non-duplicate issues
Could be related to "Launching Tor Browser in anon-whonix AppVM results in torbrowser script bug #4311"

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: WhonixThis issue pertains to Whonix templates or standalones.P: defaultPriority: default. Default priority for new issues, to be replaced given sufficient information.R: upstream issueResolution: This issue pertains to software that the Qubes OS Project does not develop or control.community templateThis issue pertains to a community-maintained template.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions