Closed Bug 1982963 Opened 1 year ago Closed 1 year ago

Collect PSI information in crash reports to study correlation between PSI and oom-killer on Linux

Categories

(Core :: Performance: Memory, task)

task

Tracking

()

RESOLVED FIXED
145 Branch
Tracking Status
firefox145 --- fixed

People

(Reporter: sinker, Assigned: sinker)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Add a new annotation to crash report in order to collect PSI information when oom-killer kills Firefox.

/proc/pressure/memory provides memory PSI (Pressure Stall Information) of Linux.
We need this information to study the correlation between oom-kill and PSI.
If they are highly related, we should incorporate PSI to AvailableMemoryWatcher for Linux.

Blocks: 1982423

LinuxMemoryPSI will contain the values from /proc/pressure/memory.
It provides information of memory pressure. [1]

[1] https://docs.kernel.org/accounting/psi.html

test_crash_psi_annotation.js comprise two test cases. One is for PSI
available, the other one is for PSI unavailable. It make sure
LinuxMemoryPSI works normal with or without PSI.

Summary: Collect PSI information in crash to study correlation between PSI and oom-killer on Linux → Collect PSI information in crash reports to study correlation between PSI and oom-killer on Linux
Assignee: nobody → thinker.li
Status: NEW → ASSIGNED
Attachment #9507026 - Attachment description: WIP: Bug 1982963 - Test case to make sure LinuxMemoryPSI is in the crash report. → Bug 1982963 - Test case to make sure LinuxMemoryPSI is in the crash report.
Attachment #9507025 - Attachment description: WIP: Bug 1982963 - Add the LinuxMemoryPSI annotation to the crash report. → Bug 1982963 - Add the LinuxMemoryPSI annotation to the crash report.
Pushed by thinker.li@gmail.com: https://github.com/mozilla-firefox/firefox/commit/77aa63a2127b https://hg.mozilla.org/integration/autoland/rev/8151b466dad1 Add the LinuxMemoryPSI annotation to the crash report. r=xpcom-reviewers,nika https://github.com/mozilla-firefox/firefox/commit/a266216a54e3 https://hg.mozilla.org/integration/autoland/rev/63a2c88212c1 Test case to make sure LinuxMemoryPSI is in the crash report. r=xpcom-reviewers,nika
Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/234d2b5a25db https://hg.mozilla.org/integration/autoland/rev/4bea0632667c Revert "Bug 1982963 - Test case to make sure LinuxMemoryPSI is in the crash report. r=xpcom-reviewers,nika" for causing build bustages in AvailableMemoryWatcherLinux.cpp.

Reverted this because it was causing build bustages in AvailableMemoryWatcherLinux.cpp.

  • Revert link
  • Push with failures
  • Failure Log
  • Failure line: /builds/worker/checkouts/gecko/xpcom/base/AvailableMemoryWatcherLinux.cpp:X:27: error: result of comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-unsigned-zero-compare]
Flags: needinfo?(thinker.li)
Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a87ad8d89c66 https://hg.mozilla.org/integration/autoland/rev/ba800c99bdff Revert "Bug 1982963 - Add the LinuxMemoryPSI annotation to the crash report. r=xpcom-reviewers,nika" for causing build bustages in AvailableMemoryWatcherLinux.cpp.
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch
Flags: needinfo?(thinker.li)
QA Whiteboard: [qa-triage-done-c145/b146]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: