Adds libaio support for scrub.

This commit is contained in:
Andrea Mazzoleni 2014-09-04 22:47:29 +02:00
parent d1d4abaf31
commit ccc3ee27fc
4 changed files with 388 additions and 57 deletions

View file

@ -19,8 +19,11 @@
* Memory alignment provided by raid_malloc_align().
*
* It should guarantee good cache performance everywhere.
*
* Note that to allows use with libaio, a minimal alingment of
* 512 is required.
*/
#define RAID_MALLOC_ALIGN 256
#define RAID_MALLOC_ALIGN 512
/**
* Memory displacement to avoid cache address sharing on contiguous blocks,
@ -54,7 +57,7 @@
* genz 5838 [MB/s]
*
*/
#define RAID_MALLOC_DISPLACEMENT (7*256)
#define RAID_MALLOC_DISPLACEMENT (3*RAID_MALLOC_ALIGN)
/**
* Aligned malloc.