forked from ofiwg/libfabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prov/shm: Refactor ze ipc path to use pidfd
Move away from using a socket to initialize level-zero ipc by path and start using pidfd instead. This new protocol will open the pidfd (process id's fd containing all open fd's for that process) for a peer and save it in their region. This is done to avoid multiple open/close calls on the same fd. We then use this pidfd to lookup each open fd from level-zero's open_handle and cache them for later re-use. These are stored as a new data type "ze_pid_handle" which contains a pid, the fd from handle_get, the fd from handle_open, and the pid_fd. When a cache entry is evicted then the handle's open fds will be closed. These changes re-enable the level-zero ipc protocol. Signed-off-by: Zach Dworkin <[email protected]>
- Loading branch information
1 parent
99fa453
commit bfbc5a7
Showing
16 changed files
with
210 additions
and
452 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
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
Oops, something went wrong.