Real-Time Disk I/O Throughput & IOPS Telemetry #10
Notifications
Due Date
No due date set.
Depends on
#9 Storage Volumes, APFS Containers & Capacity Telemetry
gronod/MacMonitor
Reference: gronod/MacMonitor#10
Reference in New Issue
Block a user
Resolved in Milestone 3. Implemented
MMDiskIOProvider.h/.msampling IOKitIOBlockStorageDriverstatistics, BSD child media mapping, read/write Bps and IOPS counters. Verified with unit tests. Merged intodevelop.Technical Implementation Plan & Code Solution
1. IOKit Disk I/O Telemetry Architecture
macOS tracks block storage read/write performance in the IORegistry under
IOBlockStorageDriverinstances. Each driver publishes anIOBlockStorageDriverStatisticsdictionary.Key metrics exposed per driver:
Bytes (Read): Cumulative bytes read from disk.Bytes (Write): Cumulative bytes written to disk.Operations (Read): Number of read transactions (IOPS).Operations (Write): Number of write transactions (IOPS).2. Objective-C Provider (
MMDiskIOProvider.m)3. Swift UI Integration
4. Edge Cases & Safety
IOIteratorNext()are explicitly released withIOObjectRelease().