Open
Description
Background:
- https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.9-Close-Range
- https://lwn.net/Articles/789023/
As written in
process/System/Process/Common.hs
Line 91 in cb1d1a6
This implementation will call
close()
an every fd from 3 to the maximum of open files, which can be slow for high maximum of open files.
The new close_range()
syscall solves this, closing them all in 1 go. According to the LWN link, it is very fast, and you can give it MAXINT
.
The code that needs to be augmented (with CPP):
process/cbits/posix/runProcess.c
Lines 255 to 273 in cb1d1a6
Metadata
Assignees
Labels
No labels