diff options
author | Dragos Tatulea <[email protected]> | 2024-08-30 13:58:38 +0300 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2024-09-25 07:07:44 -0400 |
commit | 62111654481d5df4be3776a898cb88b5e4974103 (patch) | |
tree | ab387e87070c2de6718d5199c77773e4f935bc7b /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | f30a1232b6979c7fc14e821cb349c40073c6191d (diff) |
vdpa/mlx5: Postpone MR deletion
Currently, when a new MR is set up, the old MR is deleted. MR deletion
is about 30-40% the time of MR creation. As deleting the old MR is not
important for the process of setting up the new MR, this operation
can be postponed.
This series adds a workqueue that does MR garbage collection at a later
point. If the MR lock is taken, the handler will back off and
reschedule. The exception during shutdown: then the handler must
not postpone the work.
Note that this is only a speculative optimization: if there is some
mapping operation that is triggered while the garbage collector handler
has the lock taken, this operation it will have to wait for the handler
to finish.
Signed-off-by: Dragos Tatulea <[email protected]>
Reviewed-by: Cosmin Ratiu <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions