Files
byte-unixbench/UnixBench/src
Jiebin Sun fb4521ca2d 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 <jiebin.sun@intel.com>
2023-01-19 13:25:51 -05:00
..
2009-10-28 01:52:39 +00:00
2009-10-28 01:52:39 +00:00
2009-10-28 01:52:39 +00:00
2009-10-28 01:52:39 +00:00
2009-10-28 01:52:39 +00:00
2009-10-28 01:52:39 +00:00
2009-10-28 01:52:39 +00:00
2009-10-28 01:52:39 +00:00
2009-10-28 01:52:39 +00:00
2009-10-28 01:52:39 +00:00
2023-01-19 03:22:41 -05:00