-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LibOS] Allocate temporary CPU mask on stack in
sched_setaffinity
Previously, temporary CPU mask was always allocated on heap. However, the current LibOS memory allocator exhibits bad performance in multi-threaded environments as it has a single global lock. This becomes a performace bottleneck on some heavily multi-threaded workloads like OpenVINO. This commit introduces a fast path for the common case of platforms with less than 1024 CPUs, where temporary CPU mask is allocated on the stack and thus avoids lock contention. Signed-off-by: Dmitrii Kuvaiskii <[email protected]>
- Loading branch information
Showing
1 changed file
with
25 additions
and
8 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