⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stat.txt

📁 linux 内核源代码
💻 TXT
字号:
Block layer statistics in /sys/block/<dev>/stat===============================================This file documents the contents of the /sys/block/<dev>/stat file.The stat file provides several statistics about the state of blockdevice <dev>.Q. Why are there multiple statistics in a single file?  Doesn't sysfs   normally contain a single value per file?A. By having a single file, the kernel can guarantee that the statistics   represent a consistent snapshot of the state of the device.  If the   statistics were exported as multiple files containing one statistic   each, it would be impossible to guarantee that a set of readings   represent a single point in time.The stat file consists of a single line of text containing 11 decimalvalues separated by whitespace.  The fields are summarized in thefollowing table, and described in more detail below.Name            units         description----            -----         -----------read I/Os       requests      number of read I/Os processedread merges     requests      number of read I/Os merged with in-queue I/Oread sectors    sectors       number of sectors readread ticks      milliseconds  total wait time for read requestswrite I/Os      requests      number of write I/Os processedwrite merges    requests      number of write I/Os merged with in-queue I/Owrite sectors   sectors       number of sectors writtenwrite ticks     milliseconds  total wait time for write requestsin_flight       requests      number of I/Os currently in flightio_ticks        milliseconds  total time this block device has been activetime_in_queue   milliseconds  total wait time for all requestsread I/Os, write I/Os=====================These values increment when an I/O request completes.read merges, write merges=========================These values increment when an I/O request is merged with analready-queued I/O request.read sectors, write sectors===========================These values count the number of sectors read from or written to thisblock device.  The "sectors" in question are the standard UNIX 512-bytesectors, not any device- or filesystem-specific block size.  Thecounters are incremented when the I/O completes.read ticks, write ticks=======================These values count the number of milliseconds that I/O requests havewaited on this block device.  If there are multiple I/O requests waiting,these values will increase at a rate greater than 1000/second; forexample, if 60 read requests wait for an average of 30 ms, the read_ticksfield will increase by 60*30 = 1800.in_flight=========This value counts the number of I/O requests that have been issued tothe device driver but have not yet completed.  It does not include I/Orequests that are in the queue but not yet issued to the device driver.io_ticks========This value counts the number of milliseconds during which the device hashad I/O requests queued.time_in_queue=============This value counts the number of milliseconds that I/O requests have waitedon this block device.  If there are multiple I/O requests waiting, thisvalue will increase as the product of the number of milliseconds times thenumber of requests waiting (see "read ticks" above for an example).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -