Re: Proposal: make RAID6 code optional



Matti Aarnio wrote:

I did quick "sum of symbol sizes" lookup of the raid.ko, and got
it like this:

nm -t d -n -S /lib/modules/2.6.27.21-170.2.56.fc10.x86_64/kernel/drivers/md/raid456.ko | grep raid4|awk '{print $2}'|sed -e 's/^0*//g'|awk '{sum+=$1}END{print sum}'
...

raid4: 152
raid5: 7165
raid6: 75558

Entire 64kB of that raid6 is single pre-initialized r/o datablock: raid6_gfmul

So yes, having RAID6 personality as separate module would be appropriate for
systems that are only interested in RAID4 or RAID5. Separating the RAID4
personality wastes space, separating RAID5 ... barely 2 of 4k memory pages.


RAID 4 is really just another layout scheme for RAID 5. But yes, moving
RAID 6 to a separate module makes sense. The amount of RAID 5 code not
used by RAID 6 is fairly trivial, so the right way to do this is to have
the raid6 module depend on the raid5 module.

There used to be a raid6 module which was forked from raid5, with a lot
of duplicate code. That really made really no sense.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

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



Relevant Pages

  • Re: Proposal: make RAID6 code optional
    ... having RAID6 personality as separate module would be appropriate ... systems that are only interested in RAID4 or RAID5. ... RAID 4 is really just another layout scheme for RAID 5. ...
    (Linux-Kernel)
  • Re: Leise Festplatten =?ISO-8859-15?Q?f=FCr_NAS?=
    ... letzteres dann Raid 6, ack. ... Deswegen setzt man IMO kein Raid6 ein. ... Ein Raid5 in einer Rebuildphase ist nicht mehr Fehlertolerant, das Risiko einer Nichtverfügbarkeit und eines Restore droht. ...
    (de.comp.hardware.laufwerke.festplatten)
  • Re: raid5: coding style cleanup / refactor
    ... Most of the raid5 code predates git so the coding style violations have ... allows for further reductions in code duplication between raid5 and raid6 ... Am I asking too much to have separate things in separate ...
    (Linux-Kernel)
  • trouble with mounting a 1.5 TB raid6 volume in 2.6.19-rc5-mm1
    ... Raid Level: raid6 ... # Generic Driver Options ...
    (Linux-Kernel)
  • Re: Server Configuration
    ... It's always a good idea to separate the log from the data files onto ... > of a concern in an environment like mine, where the transaction rate is ... and Data) on separate RAIDs--that would be 3 RAIDs in one box! ... >> RAID you might want to see if you can't do a RAID 1+0 instead of 5. ...
    (microsoft.public.sqlserver.setup)