-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iommu: convert mutex to rwlock for @map->lock
The mapping table managed for IOMMU page table is a skiplist protected by mutex with @map->lock. This has led performance impact with multiple threads looking up the page table at the same time, especially when manipulating PRP or SGL data structures per I/O. Application might optimize their own IOMMU-related paths like they prepare the bulk of memory buffers at the beginning time and map them to IOMMU at that time. After that, they can do I/Os based on pre-mapped memory buffers without inserting or deleting entries from page tables. To improve performance scalability, convert existing mutex @map->lock to read-write lock which leads to great performance on read(look-up)-most scenarios. Signed-off-by: Minwoo Im <[email protected]>
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters