Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sstable: expand sstable iterator block stats #4262

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EdwardX29
Copy link
Contributor

@EdwardX29 EdwardX29 commented Jan 15, 2025

Added iterator stats for rangekey, rangedel, and value blocks. Replaced block.NoReadEnv in NewRawRangeDelIter, NewRawRangeKeyIterm and ReadValueBlockExternal with an instantiated block.ReadEnv with Stats and IterStats fields. Refactored NewPointIter to accept a block.ReadEnv instead of InternalIteratorStats and IterStatsAccumulator. Removed ChildIterStatsAccumulator from category_stats.go as mutex contention in iterator stat reporting has been empirically tested to represent ~0% of overall mutex time in the worst case scenario. Updated interfaces and function calls to reflect changes.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Added iterator stats for rangekey, rangedel, and value blocks. Replaced block.NoReadEnv in NewRawRangeDelIter, NewRawRangeKeyIterm and ReadValueBlockExternal with an instantiated block.ReadEnv with Stats and IterStats fields. Refactored NewPointIter to accept a block.ReadEnv instead of InternalIteratorStats and IterStatsAccumulator. Removed ChildIterStatsAccumulator from category_stats.go as mutex contention in iterator stat reporting has been empirically tested to represent ~0% of overall mutex time in the worst case scenario. Updated interfaces and function calls to reflect changes.
@EdwardX29 EdwardX29 force-pushed the edwardx29/expand-iterator-stats-blockenv branch from ebcb6e0 to 9f49b3d Compare January 15, 2025 00:43
@EdwardX29 EdwardX29 marked this pull request as ready for review January 15, 2025 14:39
@EdwardX29 EdwardX29 requested a review from a team as a code owner January 15, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants