Use the optimal displacement depending on the number of disks

This commit is contained in:
Andrea Mazzoleni 2026-05-30 19:59:29 +02:00
parent 8f45779253
commit f181eb96e7
4 changed files with 56 additions and 33 deletions

View file

@ -100,7 +100,7 @@ void speed(void)
}
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("Memory blocks have a displacement of %u bytes to improve cache performance.\n", raid_optimal_displacement(nv));
printf("The reported values are the aggregate bandwidth of all data blocks in MiB/s,\n");
printf("not counting parity blocks.\n");
printf("\n");