test: iterate both reader and writer threads starting at the actual pagesize

Reviewed By: pho
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D42160
This commit is contained in:
Richard Scheffenegger 2023-10-11 23:11:37 +02:00
parent 91ee2d8d9a
commit 569f2292ca

View file

@ -131,7 +131,7 @@ reader(void) {
if ((buf = malloc(MX)) == NULL)
err(1, "malloc(%d), %s:%d", MX, __FILE__, __LINE__);
setproctitle("reader");
for (i = 4096; i < MX; i += 1024) {
for (i = sysconf(_SC_PAGESIZE); i < MX; i += 1024) {
alarm(TIMEOUT);
if ((n = recvfrom(msgsock, buf, i, MSG_WAITALL, NULL,
NULL)) < 0) {