-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Record skipped MMP writes in multihost_history
Once per pass through the MMP thread's loop, the vdev tree is walked to find a suitable leaf to write the next MMP block to. If no such leaf is found, the thread sleeps for a while and resumes at the top of the loop. Add an entry to multihost_history when no leaf can be found, and record the reason in the error column. The errors are: MMP_TREE_RO No vdevs were writeable. MMP_WRITE_PENDING At least one writeable leaf vdev was found, but it had a pending MMP write. MMP_WRITE_OTHER An unknown error occurred. Other fields with different than usual meaning: timestamp = the time in seconds since the epoch when no leaf could be found originally. duration = the time (in ns) during which no MMP block was written for this reason. This does not include the preceeding inter-write period nor the following inter-write period. vdev_guid = the number of sequential cycles of the MMP thread looop when this occurred. Sample output, truncated to fit: id txg timestamp error duration mmp_delay vdev_guid ... 132 600 1519843891 0 431155 653254254 802655411578885... 133 600 1519843891 0 452966 650752256 802655411578885... 134 600 1519843892 0 3005185108 648269727 802655411578885... 135 600 1519843892 0 3008137340 645842610 922049630401438... 136 600 1519843892 135 665918776 645842610 3 ... 137 600 1519843893 0 5012173551 1344098049 176919829139477... 138 600 1519843894 135 999035706 1344098049 4 ... 139 600 1519843895 0 3011097252 1656021961 802655411578885... 140 600 1519843895 0 3006181383 1645709045 922049630401438... 141 600 1519843896 135 2331033361 1645709045 8 ... 142 600 1519843898 0 3009192828 2999942517 802655411578885... 143 600 1519843899 0 5012103050 2955857111 176919829139477... 144 600 1519843899 0 3007203554 2955857111 922049630401438... 145 600 1519843899 135 1998004169 2955857111 7 ... 146 600 1519843902 0 3007161955 2992006208 802655411578885... Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
- Loading branch information
Showing
4 changed files
with
176 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters