diff options
| author | 2026-10-19 16:57:44 +0000 | |
|---|---|---|
| committer | 2026-10-28 10:49:56 -0600 | |
| commit | 0b34e7b20a48710b6f53716bf7030920b69fdbdd (patch) | |
| tree | 8c2853d10b5d3d5743b7364e8c9b2016ec8d1401 /scripts/Makefile.thinlto | |
| parent | io_uring/rsrc: charge buffer arrays and nodes to memcg (diff) | |
io_uring: charge tctx nodes and personalities
The io_tctx_node allocated the first time a task touches a ring, and
the XArray nodes behind tctx->xa and ctx->personalities, are plain
GFP_KERNEL. tctx->xa is indexed by the ring pointer, so nearly every
entry needs nodes of its own, and a task gets one entry per ring it has
used. 642 threads on 4000 rings held 2.3GB with 59MB charged against a
64MB memory.max.
Allocate the node with GFP_KERNEL_ACCOUNT and set XA_FLAGS_ACCOUNT on
both XArrays.
Fixes: 0f2122045b94 ("io_uring: don't rely on weak ->files references")
Signed-off-by: Chris Mason <mason@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
