ungoogled-software/ungoogled-chromium

Option to increase or remove heap memory limit

Open

#2.600 geöffnet am 9. Nov. 2023

Auf GitHub ansehen
 (2 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)Python (771 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (18.674 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 11h) (9 gemergte PRs in 30 T)

Beschreibung

Description

Make an option, in flags or command-line, to allow users to increase or remove heap memory limit, to use heap larger than 4GB in systems with much greater memory.

Who's implementing?

  • I'm willing to implement this feature myself

The problem

Currently chrome limits the heap memory (or the memory of a render process) to likely 4GB, but larger heap would be useful for debugging heap using the memory profiler, or running large, resource-consuming app on web. This is previously discussed on many forums, but now I can not find a thing that works without rebuilding the chromium itself.

Previous contexts:

Possible solutions

  • Make the flag --max-old-space-size and --max-semi-space-size work like in node.js
  • Make a flag to disable pointer compression (this could be a compile-time flag)
  • Get things upstreamed

Alternatives

Use Firefox which has larger limit on heap, and a slower js engine.

Additional context

No response

Contributor Guide