Skip to content

Commit

Permalink
test/recvsend_bundle: use page size for buffer ring
Browse files Browse the repository at this point in the history
#1207
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Nov 3, 2024
1 parent 0733494 commit 37a3880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/recvsend_bundle.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static void *recv_fn(void *data)
goto err;
}

if (posix_memalign(&buf, 4096, MSG_SIZE * RECV_BIDS))
if (posix_memalign(&buf, sysconf(_SC_PAGESIZE), MSG_SIZE * RECV_BIDS))
goto err;

if (!classic_buffers) {
Expand Down Expand Up @@ -453,7 +453,7 @@ static int do_send(struct recv_data *rd)
return 0;
}

if (posix_memalign(&buf, 4096, MSG_SIZE * nr_msgs))
if (posix_memalign(&buf, sysconf(_SC_PAGESIZE), MSG_SIZE * nr_msgs))
return 1;

if (!classic_buffers) {
Expand Down

0 comments on commit 37a3880

Please sign in to comment.