The I/O by File page in SQL Server monitoring tools (such as Foglight) provides comprehensive, file-level metrics about data and log files in your SQL Server instance. This page helps DBAs and system administrators analyze which files are handling the most operations, where bottlenecks might exist, and the overall health of database storage.
Metrics commonly displayed:
Each metric represents a cumulative total, which can quickly grow high in busy environments.
SQL Server maintains counters for each file via DMVs such as `sys.dm_io_virtual_file_stats`, aggregating reads, writes, bytes, and wait times.
These metrics include all I/O:
When are values reset?
SQL PI Difference - Why Totals Don't Match
1. Identify Hot Files and Bottlenecks
2. Correlate with Workload Trends
3. Monitor for Sudden Counter Resets
4. Plan Capacity
| Metric Name | What it Measures | Typical Use Case | Time Scope | When Reset |
| Read Operations | All reads at file level | Disk load, bottleneck detection | Cumulative | SQL Server restart |
| Write Operations | All write at file level | Disk load, log operations | Cumulative | SQL Server restart |
| MB Read / MB Written | Total read/write bytes (MB) | Data/log growth, storage sizing | Cumulative | SQL Server restart |
| Total Operations | Reads + writes at file level | File ‘hotness’, overall activity | Cumulative | SQL Server restart |
| Wait Times (Total) | Aggregate I/O wait time | Latency investigation | Cumulative | SQL Server restart |
| Latency | Avg I/O operation completion time | Storage delay analyisis | Cumulative | SQL Server restart |