Re: Re: question about software Raid 1

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



Kay Diederichs wrote:
BTW, there is - even with current kernels - no speed gain in using RAID1 - see http://kernelnewbies.org/KernelProjects/Raid1ReadBalancing .

except, thats wrong. I unwrapped a recent kernel source tarball from kernel.org and found...

static struct mirror *choose_mirror(struct mirror_set *ms, sector_t sector)
{
       struct mirror *m = get_default_mirror(ms);

       do {
               if (likely(!atomic_read(&m->error_count)))
                       return m;

               if (m-- == ms->mirror)
                       m += ms->nr_mirrors;
       } while (m != get_default_mirror(ms));

       return NULL;
}


so it appears its a round robin ...
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux