From 29b411e3fe252dac9ef9fce586fa6413cb5862db Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 1 Jan 2014 22:26:56 +0100 Subject: [PATCH] Fixes build due missing PAGE_SIZE. --- raid/module.c | 2 +- speed.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/raid/module.c b/raid/module.c index abd52cb8..9b5f9843 100644 --- a/raid/module.c +++ b/raid/module.c @@ -115,7 +115,7 @@ void raid_par_ref(int nd, int np, size_t size, void **vv) /* * Size of the blocks to test. */ -#define TEST_SIZE PAGE_SIZE +#define TEST_SIZE 4096 /* * Number of data blocks to test. diff --git a/speed.c b/speed.c index 1fd5a212..d63bb60d 100644 --- a/speed.c +++ b/speed.c @@ -22,6 +22,7 @@ #include "raid/raid.h" #include "raid/cpu.h" #include "raid/internal.h" +#include "raid/memory.h" #include "state.h" /* @@ -150,6 +151,7 @@ void speed(void) printf("\n"); printf("Speed test using %u data buffers of %u bytes, for a total of %u KiB.\n", nd, size, nd * size / 1024); + printf("Memory blocks have a displacement of %u bytes to improve cache performance.\n", RAID_MALLOC_DISPLACEMENT); printf("The reported value is the aggregate bandwidth of all data blocks in MiB/s,\n"); printf("not counting parity blocks.\n"); printf("\n");