Originally posted by cl333r
View Post
Announcement
Collapse
No announcement yet.
Readfile System Call Patches Revisited For Efficiently Reading Small Files
Collapse
X
-
Originally posted by coder View PostUh, I'm a little triggered by seeing flags. I sure hope there's no need for O_CLOEXEC (i.e. that it's implied or unnecessary), because that'd make it not so atomic.
- Likes 4
Comment
-
I'm still thinking io_uring is closer. We essentially want batched syscall submission and possibly limited in-kernel code execution to cover such cases with a good degree of generality. It's a bit like BPF in those regards and could potentially improve a lot of workloads beyond this particular use case.
Comment
-
Originally posted by edgmnt View PostI'm still thinking io_uring is closer. We essentially want batched syscall submission and possibly limited in-kernel code execution to cover such cases with a good degree of generality. It's a bit like BPF in those regards and could potentially improve a lot of workloads beyond this particular use case.
The former will have new dir created every time a new process is created and that needs a readfile.
Some of the files might not support seek, which means you need to close and re-open it.
Using io-uring certainly can improve this, but you would still need multiple io_submit syscalls unless you created the uring with flag IORING_SETUP_SQPOLL.
- Likes 1
Comment
-
Originally posted by edgmnt View PostI'm still thinking io_uring is closer. We essentially want batched syscall submission and possibly limited in-kernel code execution to cover such cases with a good degree of generality.
Whether or not you're using io_uring, I think readfile() is worth having.
- Likes 2
Comment
Comment