mdadm 3.2.5: Assemble doesn't scale correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list,

the mdadm 3.2.5 assemble command doesn't scale correctly.

First, I've tested simple stuff with "strace" like this one:

# mdadm -A /dev/md0 /dev/loop0 /dev/loop1

This also scans imsm superblocks by reading files from "/sys/bus/pci".
Let's set it explicitly to 1.2:

# mdadm -A /dev/md0 -e 1.2 /dev/loop0 /dev/loop1

This results in approx. 100 lines less strace output.


But now the big performance killer:

Assemble()->open_dev_excl()->dev_open("%d:%d")->map_dev()

Why does this have to scan the whole "/dev" directory - not finding any
device with the same/wanted major:minor? Isn't there a better method?

It takes longer and longer the more devices are in /dev.

Cheers,
Sebastian

-- 
Sebastian Riemer
Linux Kernel Developer - Storage

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux