Linux中目錄proc/net/dev詳解【轉】
阿新 • • 發佈:2019-03-16
版權 min com 訪問 his 緩沖 適配 ack admin
errs: The total number of transmit or receive errors detected by the device driver.(由設備驅動程序檢測到的發送或接收錯誤的總數)
drop: The total number of packets dropped by the device driver.(設備驅動程序丟棄的數據包總數)
fifo: The number of FIFO buffer errors.(FIFO緩沖區錯誤的數量)
frame: The number of packet framing errors.(分組幀錯誤的數量)
colls: The number of collisions detected on the interface.(接口上檢測到的沖突數)
compressed: The number of compressed packets transmitted or received by the device driver. (This appears to be unused in the 2.2.15 kernel.)(設備驅動程序發送或接收的壓縮數據包數)
carrier: The number of carrier losses detected by the device driver.(由設備驅動程序檢測到的載波損耗的數量)
multicast: The number of multicast frames transmitted or received by the device driver.(設備驅動程序發送或接收的多播幀數)
轉自:https://blog.csdn.net/yzy1103203312/article/details/77848192
版權聲明:本文為博主原創文章,未經博主允許不得轉載。 https://blog.csdn.net/yzy1103203312/article/details/77848192
在Linux系統中,系統調用是操作系統提供給應用程序使用操作系統服務的重要接口,但同時也正是通過系統調用機制,操作系統屏蔽了用戶直接訪問系統內核的可能性。幸運的是Linux提供了LKM機制可以使我們在內核空間工作,在LKM機制中一個重要的組成部分就是proc偽文件系統,它為用戶提供了動態操作Linux內核信息的接口,是除系統調用之外另一個重要的Linux內核空間與用戶空間交換數據的途徑。
而proc/net/dev就是提供給用戶讀取或更改網絡適配器及統計信息的途徑。
根據http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html,proc/net/dev中每一項的含義是:
bytes: The total number of bytes of data transmitted or received by the interface.(接口發送或接收的數據的總字節數)
packets: The total number of packets of data transmitted or received by the interface.(接口發送或接收的數據包總數)
drop: The total number of packets dropped by the device driver.(設備驅動程序丟棄的數據包總數)
fifo: The number of FIFO buffer errors.(FIFO緩沖區錯誤的數量)
frame: The number of packet framing errors.(分組幀錯誤的數量)
colls: The number of collisions detected on the interface.(接口上檢測到的沖突數)
carrier: The number of carrier losses detected by the device driver.(由設備驅動程序檢測到的載波損耗的數量)
multicast: The number of multicast frames transmitted or received by the device driver.(設備驅動程序發送或接收的多播幀數)
Linux中目錄proc/net/dev詳解【轉】