mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 11:16:33 +00:00
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:
parent
91ee2d8d9a
commit
569f2292ca
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue