Erlang Kernel Space Polling

Viewed 100

I just want to know if kqueue for FreeBSD and epoll for Linux and other kernel space polling functions are a default OS behaviour to handle sockets and connections ?

I asked that because I have read the source code of the Erlang Network Driver Section that handle tcp requests and there was any kqueue or epoll or something like that to poll events that came from sockets

1 Answers

According to the blog post I/O polling options in OTP 21, starting in Erlang/OTP 21.0 whether kernel poll will be used is decided at compile time (in earlier versions, you could explicitly activate it by passing the +K command line option). As I understand it, it will default to on as long as your system supports it.

You can check whether kernel poll is activated with system_info:

> erlang:system_info(kernel_poll).
true
Related