Re: [RFC] /dev/ioasid uAPI proposal
From: Jason Wang
Date: Wed Jun 09 2021 - 22:16:35 EST
在 2021/6/8 下午6:45, Enrico Weigelt, metux IT consult 写道:
On 07.06.21 20:01, Jason Gunthorpe wrote:
<shrug> it is what it is, select has a fixed size bitmap of FD #s and
a hard upper bound on that size as part of the glibc ABI - can't be
fixed.
in glibc ABI ? Uuuuh!
Note that dealing with select() or try to overcome the limitation via
epoll() directly via the application is not a good practice (or it's not
portable).
It's suggested to use building blocks provided by glib, e.g the main
event loop[1]. That is how Qemu solve the issues of dealing with a lot
of file descriptors.
Thanks
[1] https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html
--mtx