MCPcopy Create free account
hub / github.com/axboe/liburing / test_shared_exhaust

Function test_shared_exhaust

test/buf-ring-mshot.c:389–401  ·  view source on GitHub ↗

* Exhaustion test: 4 streams sharing only 8 buffers under heavy load */

Source from the content-addressed store, hash-verified

387 * Exhaustion test: 4 streams sharing only 8 buffers under heavy load
388 */
389static int test_shared_exhaust(void)
390{
391 int sends[NR_STREAMS];
392 int i;
393
394 if (no_buf_ring || no_mshot_recv)
395 return T_EXIT_SKIP;
396
397 for (i = 0; i < NR_STREAMS; i++)
398 sends[i] = NR_SENDS_EXHAUST;
399
400 return run_shared_test(NR_BUFS_SMALL, sends);
401}
402
403/*
404 * Uneven test: one heavy stream (128 sends), three light streams (8 sends)

Callers 1

mainFunction · 0.85

Calls 1

run_shared_testFunction · 0.85

Tested by

no test coverage detected