Brendan Gregg | 48fbc3e | 2015-08-18 14:56:14 -0700 | [diff] [blame] | 1 | Demonstrations of vfsstat, the Linux eBPF/bcc version. |
| 2 | |
| 3 | |
| 4 | This traces some common VFS calls and prints per-second summaries. By default, |
| 5 | the output interval is one second: |
| 6 | |
Alexei Starovoitov | bdf0773 | 2016-01-14 10:09:20 -0800 | [diff] [blame] | 7 | # ./vfsstat |
Brendan Gregg | 48fbc3e | 2015-08-18 14:56:14 -0700 | [diff] [blame] | 8 | TIME READ/s WRITE/s CREATE/s OPEN/s FSYNC/s |
| 9 | 18:35:32: 231 12 4 98 0 |
| 10 | 18:35:33: 274 13 4 106 0 |
| 11 | 18:35:34: 586 86 4 251 0 |
| 12 | 18:35:35: 241 15 4 99 0 |
| 13 | 18:35:36: 232 10 4 98 0 |
| 14 | 18:35:37: 244 10 4 107 0 |
| 15 | 18:35:38: 235 13 4 97 0 |
| 16 | 18:35:39: 6749 2633 4 1446 0 |
| 17 | 18:35:40: 277 31 4 115 0 |
| 18 | 18:35:41: 238 16 6 102 0 |
| 19 | 18:35:42: 284 50 8 114 0 |
| 20 | ^C |
| 21 | |
| 22 | |
| 23 | Here we are using an output interval of five seconds, and printing three output |
| 24 | lines: |
| 25 | |
| 26 | # ./vfsstat 5 3 |
| 27 | TIME READ/s WRITE/s CREATE/s OPEN/s FSYNC/s |
| 28 | 18:35:55: 238 8 3 101 0 |
| 29 | 18:36:00: 962 233 4 247 0 |
| 30 | 18:36:05: 241 8 3 100 0 |
| 31 | |
| 32 | |
| 33 | Full usage: |
| 34 | |
| 35 | # ./vfsstat -h |
| 36 | USAGE: ./vfsstat [interval [count]] |