git: 569f2292cae3 - main - test: iterate both reader and writer threads starting at the actual pagesize
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Oct 2023 21:13:56 UTC
The branch main has been updated by rscheff: URL: https://cgit.FreeBSD.org/src/commit/?id=569f2292cae399cb216b850295036a8ae2fc66c1 commit 569f2292cae399cb216b850295036a8ae2fc66c1 Author: Richard Scheffenegger <rscheff@FreeBSD.org> AuthorDate: 2023-10-11 21:11:37 +0000 Commit: Richard Scheffenegger <rscheff@FreeBSD.org> CommitDate: 2023-10-11 21:11:57 +0000 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 --- tools/test/stress2/misc/jumbo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test/stress2/misc/jumbo.sh b/tools/test/stress2/misc/jumbo.sh index 8dcc5aa7aca3..a2d09bafaa82 100755 --- a/tools/test/stress2/misc/jumbo.sh +++ b/tools/test/stress2/misc/jumbo.sh @@ -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) {