diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-08-09 15:04:01 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-23 22:07:56 +0300 |
commit | 042b0d85eabb79909ef29063fb45d363cbc0a85d (patch) | |
tree | 4645d36bd68c9ca14fe2ce33863b96e880f62983 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5fd4617840596884334332f36cabfe0deabe85c8 (diff) | |
download | linux-042b0d85eabb79909ef29063fb45d363cbc0a85d.tar.xz |
io_uring: use kvmalloc for fixed files
Instead of hand-coded two-level tables for registered files, allocate
them with kvmalloc(). In many cases small enough tables are enough, and
so can be kmalloc()'ed removing an extra memory load and a bunch of bit
logic instructions from the hot path. If the table is larger, we trade
off all the pros with a TLB-assisted memory lookup.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/280421d3b48775dabab773006bb5588c7b2dabc0.1628471125.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions