I think there is a trick to improve performance of md.

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

 



blow are some codes in md_do_sync function of md.c in linux-2.6.17.11-rc5/drivers/md

4774: int next = (last_mark+1) % SYNC_MARKS;

I have no idea why SYNC_MARKS is set 10. if set SYNC_MARKS to 8 or 16(the power of 2), we can replace the % operation to & operation
and this trick will accelerate the running of this code.

-
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