You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Existing slow path takes ~725ms of CPU time on my laptopto count
1 million open files. Compare this to just 0.25ms for the baseline,
when no extra files are open by a Go program:
```
Open files reported: 7
Gathered metrics in 0.26ms
Open files reported: 1000007
Gathered metrics in 724.50ms
```
Adding fastpath from Linux v6.2 makes it fast:
```
Open files reported: 6
Gathered metrics in 0.29ms
Open files reported: 1000006
Gathered metrics in 0.31ms
```
This is before taking in account any lock contention effects in the kernel
if you try to count files from multiple threads concurrently, which makes
the slow path even slower, burning a lot more CPU in the process. See:
* torvalds/linux@f1f1f2569901
Signed-off-by: Ivan Babrou <[email protected]>
0 commit comments