epoll Questions
2
I am designing a new server which needs to support thousands of UDP connections (somewhere around 100,000 sessions). Can someone explain select vs poll vs epoll? It will help me know which one to u...
Modernism asked 28/10, 2010 at 4:42
1
Solved
following the discussion at How do you use AIO and epoll together in a single event loop?.
There are in fact 2 "aio" APIs in linux.
There's POSIX aio (the aio_* family of functions), included in g...
2
Solved
I'd like to develop a multithreaded UDP server in C/Linux. The service is running on a single port x, thus there's only the possibility to bind a single UDP socket to it. In order to work under hig...
1
I was under the impression that boost::asio would use an epoll setup by default instead of a select implementation, but after running some tests it looks like my setup is using select.
OS: RHEL 4
...
Squish asked 23/6, 2010 at 23:31
1
Solved
int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout);
I'm a little confused about the maxevents parameter. Let's say I want to write a server that can handle up to 10k...
2
Solved
Tornadoweb and Nginx are popular web servers for the moment and many benchmarkings show that they have a better performance than Apache under certain circumstances. So my question is:
Is 'epoll' t...
2
How to determine if I can write the given number of bytes to a filehandle (socket actually)? (Alternatively, how to "unread" the data I had read from other filehandle?)
I want something like:
n...
Acedia asked 20/4, 2010 at 9:37
2
Solved
The man page of epoll_ctl() says about EPOLLPRI:
There is urgent data available for
read(2) operations.
How exactly is "urgent data" defined and who decides which data has priority?
2
I have written a single-threaded asynchronous server in C running on Linux: The socket is non-blocking and as for polling, I am using epoll. Benchmarks show that the server performs fine and accord...
3
Solved
I'm looking at the poll() man page, and it tells me the behavior of poll() when positive and negative values are passed in for the timeout parameter. It doesn't doesn't tell me what happens if time...
© 2022 - 2024 — McMap. All rights reserved.