4 ms·
This is a cool idea, I like this. Forgive my lack of knowledge, but wouldn’t something like io_uring satisfy the need of an async API, and also obviates the ne
by FridgeSeal 4y ago
This is a cool idea, I like this.
Forgive my lack of knowledge, but wouldn’t something like io_uring satisfy the need of an async API, and also obviates the need for the first callback? You write into the ring (which the kernel does not have to do a secondary copy from) and it writes that onto your disk and tells you when it’s done? In fact, IIUC, direct IO goes a step further and let’s you write directly to the storage-and in return you give up some niceties like OS-managed caching and prefetching because you have to do them yourself.
In which case, a step towards this better FS API you’ve proposed would be some higher-level API’s around io_uring/directIO to make it better to use?