epoll Questions
3
I'm trying to determine how to correctly use cProfile and pstats with asyncio code. I am profiling my script by running cProfile.run('loop.run_until_complete(main())', 'profile.stats').
After usi...
Nealson asked 15/2, 2019 at 23:15
3
Solved
I'm doing some event handling with C++ and pthreads. I have a main thread that reads from event queue I defined, and a worker thread that fills the event queue. The queue is of course thread safe.
...
2
Solved
when using epoll_ctl(), I found that the third parameter "fd" is another file descriptor besides the epoll file descriptor "epfd". And I saw an example like this:
event.data.fd = sfd; //sfd is a f...
2
Solved
We all know that using asyncio substantially improves the performance of a socket server, and obviously things get even more awesome if we could take advantage of all cores in our cpu (maybe via mu...
Tyndall asked 1/6, 2019 at 18:49
6
Solved
I am creating a multithreaded server using epoll (edge-triggered) and non-blocking sockets. Currently I'm creating an event loop on the main thread and waiting for notifications and it works correc...
Macula asked 29/1, 2013 at 14:7
5
Solved
I try to rebuild an electron app but I got this error regarding the epoll installation.
Building module: epoll, Completed: 0gyp: name 'openssl_fips' is not defined while evaluating condition 'opens...
Dancer asked 8/11, 2021 at 11:26
2
Solved
Registering a level triggered eventfd on epoll_ctl only fires once, when not decrementing the eventfd counter. To summarize the problem, I have observed that the epoll flags (EPOLLET, EPOLLONESHOT ...
Schoolmarm asked 6/6, 2020 at 12:3
2
Solved
Wikipedia says
unlike the older system calls, which
operate at O(n), epoll operates in
O(1) [2]).
http://en.wikipedia.org/wiki/Epoll
However, the source code at fs/eventpoll.c on Linux-2.6...
Mesognathous asked 24/6, 2011 at 23:5
2
I'm trying to learn how to use epoll() for TCP server application, because I'm expecting many connections.
I tried checking samples and tutorials, they always recommend using/setting sockets ...
3
Solved
From epoll's man page:
epoll is a variant of poll(2) that can be used either as an edge-triggered
or a level-triggered interface
When would one use the edge triggered option? The man page gives ...
1
I'm migrating my project to io_uring for better performance. However, some part of the system depends on epoll being event system and not movable to io_uring (ex: database drivers, they write to so...
Tati asked 27/11, 2021 at 7:22
2
Solved
3
I'm writing my own echo server using sockets and syscalls. I am using epoll to work with many different clients at the same time and all the operations done with clients are nonblocking. When the s...
2
I am trying to understand how to use the epoll library (Linux) in combination with socket file descriptors. There is limited information about epoll available online as far as I can tell. So far th...
Poppas asked 2/4, 2021 at 8:54
1
According to the linux man page,
EPOLLHUP
When reading from a channel such as a pipe or a stream socket,
this event merely indicates that the peer closed its end of the channel.
E...
Kei asked 14/8, 2018 at 3:14
3
Solved
I am trying to figure out what is more performant, edge triggered or level triggered epoll.
Mainly I am considering "performant" as:
Ability to handle multiple connections without degred...
1
My application is a web version of the board game Settlers of Catan.
I'm using node --prof app.js to profile the app and node --prof-process ISOLATE_LOG_FILE > processed.txt to turn them into a...
0
I am developing a node-js application that expects midi input and sends midi output.
In order to measure and improve the performance of the application, following this guide, I have extracted the C...
Chadbourne asked 31/1, 2021 at 15:7
2
Solved
There are two functions in epoll:
epoll_ctl
epoll_wait
Are they thread-safe when I use the same epoll_fd?
What will happen if one thread calls epoll_wait and others call epoll_ctl at the same t...
Pires asked 14/8, 2011 at 18:17
4
Solved
I'm developing a server in C with the epoll library and I have a question as to how memory is handled for struct epoll_event. I've noticed in some online examples that, when making epoll_ctl calls,...
3
Solved
I want to create a non-blocking connect.
Like this:
socket.connect(); // returns immediately
For this, I use another thread, an infinite loop and Linux epoll. Like this(pseudocode):
// in anoth...
Renowned asked 21/7, 2013 at 7:14
1
Solved
I'm currently writing a multi-threaded server where each thread has an io_context and a list of task objects to execute, with each task object having an associated ip::tcp::socket object.
For load...
Moyer asked 5/10, 2018 at 19:0
4
Solved
Event-driven and asynchronous are often used as synonyms. Are there any differences between the two?
Also, what is the difference between epoll and aio? How do they fit together?
Lastly, I've rea...
Swope asked 30/4, 2011 at 22:12
0
Thaks for guys in previous answer, now I can build a multi process TCP server with each process running a asynchronous server respectively but all binding to one port.
(Could not use os.fork() bind...
Wedged asked 3/6, 2019 at 9:45
1
Solved
According to the poll man page, the poll function can return POLLHUP and POLLRDHUP events.
From what I understand, only POLLHUP is POSIX compliant, and POLLRDHUP is a Linux non-standard extension. ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.