[Twisted-Python] reactor for Linux io_uring
Barry Scott
barry.scott at forcepoint.com
Tue Jan 5 06:57:42 MST 2021
On Tuesday, 5 January 2021 13:38:11 GMT Hynek Schlawack wrote:
> >> What's more interesting is that io_uring accepts files as
> >> well as network/pipe handles: avoiding the need for threads.
> >
> > What threads? Why do you call out file FDs different from socket FDs?
> >
> > The point of io_uring is to avoid transitions between user and kernel right?
> > Nothing to do with thread.
> >
> > In current twisted you can run complex network code without threads
> > already.
>
> Because before io_uring there was no reliable way on Linux to do async file I/O and everybody is forced to use thread pools for it.
You mean like the way that opening a file can block as the kernel walks the directories?
Barry
More information about the Twisted-Python
mailing list