4 ms·
The system calls are plenty fast. As I mentioned, we got Chrome's build of comparable size to around a second, and it still stats every file. (A batched stat
by evmar 12y ago
The system calls are plenty fast. As I mentioned, we got Chrome's build of comparable size to around a second, and it still stats every file.
(A batched stat would be nice too, but it's not the most critical thing to optimize.)
- mnw21cam 12y agoLinus says it is about 5% of the time taken in his run. Well, 5% of 30 seconds is not too far off a second. But yes, the kernel build is doing all sorts of stuff other than stat, like starting shells and sub instances of make.
- stas321 12y agoLinus says about page fault overhead, not system call. I understand this is a much different thing. On x86 page fault raises an interrupt. For a system call there is an instruction designed for fast control transfer to avoid costly interrupt
- vidarh 12y ago> The system calls are plenty fast No they are not. Cutting context switches in system calls is one of the easiest ways of boosting throughput in your average unoptimized Linux app, in my experience. Exactly because so many developers go around ignoring the cost of system calls.