我们将用户和系统数据文件放在同一磁盘驱动器上。用户文件的(io_stall_write_ms /(1.0 + num_of_writes))低于2,但是tempdb文件通常超过400。而不是常规的数据库数据文件。
SELECT DISTINCT UPPER(LEFT(mf.physical_name, 1)) AS Directory,
( io_stall_write_ms / ( 1.0 + num_of_writes ) ) as result,
io_stall_write_ms, num_of_writes,
fs.database_id,
fs.[file_id]
FROM sys.dm_io_virtual_file_stats(NULL, NULL) AS fs
INNER JOIN sys.master_files AS mf ON fs.database_id = mf.database_id
AND fs.[file_id] = mf.[file_id]
谢谢,