Re: Severe slowdown with LVM on RAID, alignment problem?

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

 



Michael Guntsche wrote:

Is it possible that my computer is just too slow to get good read results?
unlikely

While reading is a little bit faster it's nowhere near the speed I get on
md0 itself.


I would guess that you did not set the correct read-ahead values for the LV. If you do not specify anything it will default to 128k (256 sectors), which is terribly small for sequential reads. On the contrary the MD device will do some clever calculations and set its read-ahead correctly depending on the raid level and the number of disks. Do:

blockdev --setra 65536 <your lv device>

and run the tests again. You are almost certainly going to get the results you are after.

Peter
--
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