about:processes shows unrealistic memory usage numbers on Linux.
Categories
(Core :: DOM: Content Processes, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox75 | --- | unaffected |
firefox76 | --- | unaffected |
firefox77 | --- | unaffected |
firefox78 | --- | fixed |
People
(Reporter: emilio, Assigned: Kwan)
References
Details
Attachments
(5 files)
See screenshot.
So, let's list what's wong:
- pid 0, that's basically impossible;
- missing processes;
- numbers are off.
I suspect that this and bug 1636203 are the same and that both are due to a bug in parsing /proc/[pid]/stat
. It lives here, in case anybody wants to look at it.
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
All the indexes were off by two, so the values were for completely different
measurements, and thus nonsense. Resident Set Size still doesn't seem to be
handled correctly, perhaps because it's being treated as a bytes count rather
than the page count it is somewhere, but with this change the Virtual Memory
figures match what system monitor displays.
Assignee | ||
Comment 3•5 years ago
|
||
This is what I see after the two patches.
Assignee | ||
Comment 4•5 years ago
|
||
As noted in the comment /proc/[pid]/stat is returning the number of pages, but
this value is being used elsewhere as a bytes figure, so we need to multiply by
the page size to get that.
Assignee | ||
Comment 5•5 years ago
|
||
And with the third patch now resident memory matches.
Updated•5 years ago
|
Comment 7•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c7713eb6813c
https://hg.mozilla.org/mozilla-central/rev/25f2f567dad6
Updated•5 years ago
|
Description
•