Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print slow commit operations in nfsslower
nfsslower does not currently print out slow commit operations, which sometimes cause long delays in NFS writes. This commit adds code to trace slow commit operations. NFS commits are quite slow and are not performed often, so the patch shouldn't incur visible overhead. Below is a sample output when writing a large file using dd command. Most commits are issued from kworker threads, so the commit output may be mostly dropped when filtered by PID. TIME COMM PID T BYTES OFF_KB LAT(ms) FILENAME ... 16:46:11 dd 1212 W 1048576 651264 46.58 testfile 16:46:11 dd 1212 W 1048576 653312 54.41 testfile 16:46:11 dd 1212 W 1048576 654336 18.96 testfile 16:46:11 dd 1212 W 1048576 655360 49.05 testfile 16:46:11 dd 1212 W 1048576 657408 82.96 testfile 16:46:11 dd 1212 W 1048576 659456 109.25 testfile 16:46:12 dd 1212 W 1048576 660480 163.55 testfile 16:46:12 dd 1212 W 1048576 662528 205.44 testfile 16:46:13 dd 1212 W 1048576 663552 751.02 testfile 16:46:37 kworker/u8:5 1207 C 0 0 27449.05 testfile 16:46:37 kworker/u8:5 1207 C 0 0 26725.16 testfile 16:46:37 kworker/u8:5 1207 C 0 0 27592.04 testfile 16:46:37 kworker/u8:4 1206 C 0 0 22188.75 testfile 16:46:37 kworker/u8:4 1206 C 0 0 26092.59 testfile 16:46:37 kworker/u8:4 1206 C 0 0 27268.90 testfile 16:46:37 kworker/u8:4 1206 C 0 0 22303.24 testfile 16:46:37 kworker/u8:4 1206 C 0 0 27081.34 testfile 16:46:37 dd 1212 W 1048576 664576 24337.80 testfile 16:46:38 dd 1212 W 1048576 958464 61.77 testfile 16:46:38 dd 1212 W 1048576 960512 56.60 testfile 16:46:38 dd 1212 W 1048576 963584 55.75 testfile 16:46:38 dd 1212 W 1048576 965632 54.84 testfile ... Signed-off-by: Kosuke Tatsukawa <[email protected]>
- Loading branch information