Page MenuHomeFreeBSD

Track stats on effectivess of bm_bighint field
Needs ReviewPublic

Authored by dougm on Nov 16 2018, 5:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 20, 5:02 AM
Unknown Object (File)
Jan 29 2024, 10:53 PM
Unknown Object (File)
Dec 31 2023, 8:47 PM
Unknown Object (File)
Nov 6 2023, 2:37 AM
Unknown Object (File)
Nov 5 2023, 3:31 PM
Unknown Object (File)
Oct 5 2023, 1:29 AM
Unknown Object (File)
Oct 4 2023, 2:26 PM
Unknown Object (File)
Sep 30 2023, 2:29 PM
Subscribers
None
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Count the number of times bm_bighint is used to avoid an allocation call, and how often it allows alloctions that fail. Count the number of updates and resets of the bm_bighint field. Write these stats when a tree is printed.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Dump the stats on the 's' stats option, not the 'p' print option, since printing a tree is often many many lines and the stats are lost.

Dropping from phabricator. Part of the subr_blist super-patch to be emailed instead.

Use sysctl to make stats available. Update stats atomically.