-
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 (120) No vdevs were writeable. MMP_WRITE_PENDING (121) At least one writeable leaf vdev was found, but it had a pending MMP write. MMP_WRITE_OTHER (122) 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 ... 152 360 1519694711 0 171169 943979470 8026554115788855270 ... 153 360 1519694712 0 169235 939206561 8026554115788855270 ... 154 360 1519694712 0 5005999224 927254856 17691982913947744211 ... 155 360 1519694712 0 5009048602 922635599 9220496304014385470 ... 156 360 1519694713 0 3004119061 922635599 8026554115788855270 ... 157 360 1519694713 121 2664070025 922635599 9 ... 158 360 1519694716 0 3009996115 3656036502 8026554115788855270 ... 159 360 1519694716 121 665978835 3656036502 3 ... 160 360 1519694717 0 5005954499 3637910364 17691982913947744211 ... 161 360 1519694718 0 5009012869 3612114592 9220496304014385470 ... 162 360 1519694718 121 998937783 3612114592 4 ... 163 360 1519694719 0 3008000079 3596894279 8026554115788855270 ... Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
- Loading branch information
Showing
4 changed files
with
146 additions
and
34 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