Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allocate unique fd for each parallel to avoid unexpected syscall test…
… result If all the parallels dup the same fd 0 and share the same file reference count, then the f_count will meet with heavy lock contention. The syscall cost of dup/close will occupy only a few in the test result. Allocating one unique fd for each parallel will reduce lots of the unexpected lock contention cost. And it will fully perform the syscall cost of dup/close. If the parallel number is 1, the testing result with this patch is the same with the original one on ICX server, which is expected. If the parallel number is large, the testing result will accurately show the syscall cost of dup/close without the impact of data sharing. Signed-off-by: Jiebin Sun <[email protected]>
- Loading branch information