diff options
| author | Chris Mason <mason@kernel.org> | 2026-10-19 16:57:44 +0000 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-10-28 10:49:56 -0600 |
| commit | 0b34e7b20a48710b6f53716bf7030920b69fdbdd (patch) | |
| tree | 8c2853d10b5d3d5743b7364e8c9b2016ec8d1401 /tools/lib/python/kdoc | |
| parent | 075d5837bafc317e796548f721b8fbf7add6821d (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 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
