lkml.org 
[lkml]   [2021]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC] /dev/ioasid uAPI proposal
From
Date

在 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
>

\
 
 \ /
  Last update: 2021-06-10 04:17    [W:0.137 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site