fsck parallel check

Eugene Grosbein eugen at grosbein.net
Thu Apr 16 16:53:11 UTC 2020


16.04.2020 23:25, Wojciech Puchar wrote:
>> Quoting the manual:
>>
>>     In other words: In preen mode all pass 1 partitions are checked
>>     sequentially.  Next all pass 2 partitions are checked in parallel, one
>>     process per disk drive.  Next all pass 3 partitions are checked in
>>     parallel, one process per disk drive.  etc.
> 
> Yes i've read this manual.
> 
> 
> "Next all pass 2 partitions are checked in parallel, one
> process per disk drive."
> 
> so having 5 partitions on one SSD - it will be checked sequentially.

Not necessary. Fsck tries to parse device name this way: /path/to/nameNUMBERrest
so it skips all chars upto last /, then extracts "name" part not containing any digits,
then extracts NUMBER part containing only digits, upto maximum lenght.
Then is uses nameNUMBER for "disk name".

So if your naming schema is /dev/gpt/gptlabel it all depends on exact label names
because /dev/gpt/ part is skipped first. If your gptlabels are in form of nameNUMBERrest
where name and NUMBER are all same, fsck threats them as part of single disk
and scans sequentially. Otherwise, in parallel.

You may easily check it with "fsck -d -p" so it prints verbose details not starting any checks really.





More information about the freebsd-hackers mailing list