Page MenuHomeFreeBSD

pmcstat(8): warn about unfittable grouped sample periods
Needs ReviewPublic

Authored by afscoelho_gmail.com on Sep 3 2026, 9:32 PM.
Tags
None
Referenced Files
F176693040: D59363.id189823.diff
Tue, Oct 20, 8:18 PM
F176617528: D59363.id189823.diff
Tue, Oct 20, 6:50 AM
F176605426: D59363.id189823.diff
Tue, Oct 20, 4:30 AM
Unknown Object (File)
Mon, Oct 19, 10:55 PM
Unknown Object (File)
Mon, Oct 19, 5:46 PM
Unknown Object (File)
Mon, Oct 19, 5:45 AM
Unknown Object (File)
Wed, Oct 14, 3:59 AM
Unknown Object (File)
Wed, Oct 14, 3:59 AM
Subscribers

Details

Summary

A sampling PMC in a multiplexed group only retires a sample while its
group holds the hardware. If the period needs more events than one
rotation window can retire, the PMC produces almost no samples, and
pmcstat reported nothing about it.

Warn once, after the run, when the requested period could not fit a
rotation window. Compute the estimate before the run so that the
warning reflects what was asked for.

Report descendants whose group could not follow a fork. The work of
those children is missing from the totals, which otherwise look
complete. Print the group-inherit-miss record in the log dump and in
pmc(8) view.

Sponsored by: AMD

Signed-off-by: Andre Silva <andasilv@amd.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 78175
Build 75058: arc lint + arc unit

Event Timeline

Rebase on main (D60141 and D60185 are committed). No change.