perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

memory watchdog easily hit in traced_probes when systemd_journald source is enabled

Open aetheln opened this issue 3 months ago • 2 comments

tring to use linux.systemd_journald source, and after a few minutes traced_probes service crashed reporting memory watchdog hit.

traced_probes[33514]: -----BEGIN PERFETTO PRE-CRASH LOG----- traced_probes[33514]: wdog_reason: 2 traced_probes[33514]: wdog_timeout: 0 traced_probes[33514]: wdog_actual_boot: 0 traced_probes[33514]: wdog_actual_mono: 0 traced_probes[33514]: wdog_actual_cpu: 0 traced_probes[33514]: ds_instance_count: 4 traced_probes[33514]: tracing_session_count: 1 traced_probes[33514]: [608.093] watchdog_posix.cc:411 Memory watchdog trigger. Memory window of 103649280.000000 bytes is above the 69206016 bytes limit. Sep 04 13:40:42 ALANLAPTOP traced_probes[33514]: -----END PERFETTO PRE-CRASH LOG-----

aetheln avatar Sep 04 '26 05:09 aetheln

This should be fixed by https://github.com/google/perfetto/pull/7313

As we discovered from elsewhere, the watchdog tracking RSS as a metric was a very poor choice because it includes shmem and file memory. The above PR switches to use anon + swap instead which is a much better choice.

LalitMaganti avatar Sep 04 '26 09:09 LalitMaganti

solved with the fix from 7313

aetheln avatar Sep 04 '26 10:09 aetheln