mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Fixes build due missing PAGE_SIZE.
This commit is contained in:
parent
3be88162b9
commit
29b411e3fe
2 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
2
speed.c
2
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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue