I want to run ejabberd with the kernel poll (epoll on linux 2.6) functionality enabled. Obviously I found the following post: http://www.ejabberd.im/kernel-poll, but I don't quite understand what its saying. It explains how to start an erlang session with kernel poll enabled, which I can do and works fine, but I don't see how this relates to starting ejabberd with kernel poll support (I normally use ejabberdctl to start and stop the server). That is:
1. Am I supposed to start an erlang session first with kernel poll enabled, then start ejabberd from the erlang shell (and if so, how would I do this?)
2. Is there a configuration option somewhere to have ejabberd use kernel poll when I run ejabberdctl start?
3. Is kernel poll being used by default?
4. Does starting it in an erlang VM, then exiting somehow enable it for ejabberd (I doubt this is the case, but though I'd ask).
5. Something else going on...?
Thanks!
Tronman wrote: I want to run
I want to run ejabberd with the kernel poll (epoll on linux 2.6) functionality enabled.
Good news: probably it already has it enabled.
Obviously I found the following post: http://www.ejabberd.im/kernel-poll, but I don't quite understand what its saying.
It explains how to start an erlang session with kernel poll enabled, which I can do and works fine, but I don't see how this relates to starting ejabberd with kernel poll support (I normally use ejabberdctl to start and stop the server).
The Erlang section is there for you to verify your Erlang and kernel support the feature.
I've added a section specific about ejabberd. In summary: in ejabberd, Kernel Poll is enabled by default.
Now the answers here are easy to say:
1. Am I supposed to start an erlang session first with kernel poll enabled, then start ejabberd from the erlang shell (and if so, how would I do this?)
No.
2. Is there a configuration option somewhere to have ejabberd use kernel poll when I run ejabberdctl start?
Yes, POLL in ejabberdctl.cfg
3. Is kernel poll being used by default?
Yes in ejabberd thanks to ejabberdctl. Not in the plain Erlang.
4. Does starting it in an erlang VM, then exiting somehow enable it for ejabberd (I doubt this is the case, but though I'd ask).
No.
Thanks!
Cool, thanks again bud!
I probably would have figured that out had I realized ejabberdctl was a shell script. I never even though of trying to open it in a text editor, but sure enough there was the POLL option! I was looking in ejabberd.cfg originally which is why I couldn't find it.
Thanks again.