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

@ -171,7 +171,7 @@ void speed(int period, int nd, int size)
printf("\n");
printf("Speed test using %u data buffers of %u bytes, for a total of %u KiB.\n", nd, size, nd * size / KIBI);
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 MB/s,\n");
printf("not counting parity blocks.\n");
printf("\n");