Page MenuHomeFreeBSD

hwpmc.4: correct stale default values and update diagnostics
ClosedPublic

Authored by paulo_nlink.com.br on Mon, Mar 23, 5:11 PM.
Tags
None
Referenced Files
F150430785: D56050.id174183.diff
Wed, Apr 1, 4:38 AM
Unknown Object (File)
Mon, Mar 30, 7:48 PM
Unknown Object (File)
Mon, Mar 30, 10:56 AM
Unknown Object (File)
Mon, Mar 30, 6:34 AM
Unknown Object (File)
Mon, Mar 30, 5:35 AM
Unknown Object (File)
Mon, Mar 30, 5:25 AM
Unknown Object (File)
Sun, Mar 29, 3:46 AM
Unknown Object (File)
Sat, Mar 28, 11:25 PM
Subscribers

Details

Summary

The default values documented for kern.hwpmc.logbuffersize (4KB) and
kern.hwpmc.nbuffers_pcpu (64) have been incorrect since 2981a3420cb1
(2018), which updated the compiled defaults but did not update the
man page.

  • Correct logbuffersize default from 4KB to 256KB, add 16MB maximum
  • Correct nbuffers_pcpu default from 64 to 32, document 32MB per-CPU product limit with kern.hwpmc.logbuffersize
  • Update DIAGNOSTICS section to reflect current warning messages

Sponsored by: NLINK (nlink.com.br)

Test Plan

Verified rendered output with:

man -l share/man/man4/hwpmc.4

mandoc -T lint shows only one pre-existing warning
(IMPLEMENTATION NOTES section order, not introduced by this patch).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable