Reject IBS fetch and op sample periods below 65536 in the kernel. Use the same minimum as libpmc for direct allocation calls, with no sysctls.
Sponsored by: AMD
Differential D61367
hwpmc_ibs: enforce minimum sample periods Authored by afscoelho_gmail.com on Tue, Nov 10, 1:07 AM. Project Tags None Referenced Files
Subscribers
Details
Reject IBS fetch and op sample periods below 65536 in the kernel. Use the same minimum as libpmc for direct allocation calls, with no sysctls. Sponsored by: AMD The hwpmc module and pmc_exterr_test build without warnings.
Diff Detail
Event TimelineComment Actions Tested with the series on main 1b9a8e1dcc69 (EPYC 9654, INVARIANTS and The new floor matches what libpmc already enforces (IBS_FETCH_MIN_RATE LGTM. Comment Actions No real objection, but why do these limits need to be user-tunable? It does not seem necessary to me. Comment Actions Thanks for the review. Comment Actions Remove both IBS minimum-period sysctls and enforce the libpmc minimum of 65536 for fetch and op. |