You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
obs-websocket: GetStats reports more than 100 % CPU in test_ws_cpu_usage under ASan #3367
parallel_get_stats_on_one_session fails now and then in the asan job at test/cmocka/test_ws_cpu_usage.cpp:206:
assert_true(usage <= 100.0);
8 threads call GetStats 50 times each. In some runs one cpuUsage is above 100.
What to do
Find out whether it is a real bug or the test:
if cpuUsage is meant to be a share of the whole machine (0–100), a value over 100 is a bug in how GetStats computes it, for example process CPU time over wall time without dividing by the core count, or a short sample interval: fix it;
if values over 100 are valid by design, the test is wrong and needs the correct bound.
Then the test is solid, and its entry goes from the sanitizer harness's known list (kind flaky, #3290). Related: #1346.
Activity
vpacher commentedon Nov 1, 2026
/ready
vpacher commentedon Nov 1, 2026
Claiming: GetStats CPU usage over 100 %
Plan (one PR, after #3290):
cpuUsageis meant to be (share of the machine or of one core) and how a sample goes over 100.flakyentry from the known list.First PR: after #3290 merges.
vpacher commentedon Nov 1, 2026
Blocked: waiting on #3290
fix(obs-util): CPU usage is at most all of the machine (obs-rust#3367) (