我正在使用 Ubuntu 14.04。今天我浏览文件系统,发现在
/proc/fs/jbd2/sda6-8/信息
下面提到的事情。
9286 transactions (8421 requested), each up to 8192 blocks
平均的:
0ms waiting for transaction
0ms request delay
1612ms running transaction
0ms transaction was being locked
0ms flushing data (in ordered mode)
36ms logging transaction
82093us average transaction commit time
90 handles per transaction
8 blocks per transaction
9 logged blocks per transaction
以上这些是什么意思呢?
Ubuntu 中 /proc/fs/jbd2/sda6-8/info 文件的作用是什么? 以上所有内容的意义是什么?
答案1
/proc/fs/jbd2/partition/info
/proc/fs/jbd2/partition/history
文件显示自文件系统首次挂载以来文件的平均统计信息。
执行结果cat /proc/fs/jbd2/partition/info
为:
56 transaction, each upto 2048 blocks
average:
0ms waiting for transaction
57671ms running transaction
0ms transaction was being locked
28ms flushing data (in ordered mode)
14ms logging transaction
2383 handles per transaction
6 blocks per transaction
7 logged blocks per transaction
该文件的目的还 /proc/fs/jbd2/partition/history
在于提供有关 ext4 日志层 (JBD2) 行为的信息。
cat /proc/fs/jbd2/partition/history
给出:
R/C tid wait run lock flush log hndls block inlog ctime write drop close
R 7102 0 5000 0 1424 4 68681 5 6
R 7103 0 5000 0 1644 4 64579 9 10
R 7104 0 5000 0 856 32 38719 11 12
R 7105 0 5000 0 1052 0 47142 12 13
R 7106 0 5000 0 1172 16 56028 11 12
R 7107 0 5000 0 1416 4 71047 11 12
R 7108 0 5000 0 1640 4 81125 5 6
R 7109 0 5000 0 1616 4 77314 6 7
R 7110 0 5000 0 1640 0 76111 5 6
:
: