Fixes build due missing PAGE_SIZE.

This commit is contained in:
Andrea Mazzoleni 2014-01-01 22:26:56 +01:00
parent 3be88162b9
commit 29b411e3fe
2 changed files with 3 additions and 1 deletions

View file

@ -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.

View file

@ -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");