linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mdadm 3.2.5: Assemble doesn't scale correctly
@ 2012-10-15 16:13 Sebastian Riemer
  2012-10-16 11:44 ` Sebastian Riemer
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Riemer @ 2012-10-15 16:13 UTC (permalink / raw)
  To: Linux RAID; +Cc: Sebastian Riemer

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-16 11:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 16:13 mdadm 3.2.5: Assemble doesn't scale correctly Sebastian Riemer
2012-10-16 11:44 ` Sebastian Riemer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).