diff options
author | farah kassabri <fkassabri@habana.ai> | 2023-03-02 12:09:24 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2023-10-09 12:37:22 +0300 |
commit | 1157b5d6b3b069394e37cd3b1d32c39eb833e546 (patch) | |
tree | 1fa540789d48866c998c46ffe4b433c478628bdb /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0165994c215f321e2d055368f89b424756e340eb (diff) | |
download | linux-1157b5d6b3b069394e37cd3b1d32c39eb833e546.tar.xz |
accel/habanalabs: optimize timestamp registration handler
Currently we use dynamic allocation inside the irq handler
in order to allocate free node to be used for the free jobs.
This operation is expensive, especially when we deal with large
burst of events records that get released at the same time.
The alternative is to have pre allocated pool of free nodes
and just fetch nodes from this pool at irq handling time instead
of allocating them.
In case the pool becomes full, then the driver will fallback to
dynamic allocations.
As part of the optimization also update the unregister flow
upon re-using a timestamp record, by making the operation much
simpler and quicker. We already have the record in the registration
flow and now we just seek to re-use with different interrupt.
Therefore, no need to look for buffer according to the user handle.
Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions