ejabberd - Comments for "Using epoll and ejabberdctl" https://www.ejabberd.im/node/3915 en Thanks! https://www.ejabberd.im/node/3915#comment-55411 <p>Cool, thanks again bud!</p> <p>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.</p> <p>Thanks again.</p> Tue, 16 Mar 2010 12:41:35 +0000 Tronman comment 55411 at https://www.ejabberd.im Tronman wrote: I want to run https://www.ejabberd.im/node/3915#comment-55410 <div class="quote-msg"> <div class="quote-author"><em>Tronman</em> wrote:</div> <p>I want to run ejabberd with the kernel poll (epoll on linux 2.6) functionality enabled. </p></div> <p>Good news: probably it already has it enabled.</p> <div class="quote-msg"> <div class="quote-author"><em>Tronman</em> wrote:</div> <p>Obviously I found the following post: <a href="http://www.ejabberd.im/kernel-poll" title="http://www.ejabberd.im/kernel-poll">http://www.ejabberd.im/kernel-poll</a>, but I don't quite understand what its saying.<br /> 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). </p></div> <p>The Erlang section is there for you to verify your Erlang and kernel support the feature.</p> <p>I've added a section specific about ejabberd. In summary: in ejabberd, Kernel Poll is enabled by default.</p> <p>Now the answers here are easy to say:</p> <div class="quote-msg"> <div class="quote-author"><em>Tronman</em> wrote:</div> <p>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?) </p></div> <p>No.</p> <div class="quote-msg"> <div class="quote-author"><em>Tronman</em> wrote:</div> <p>2. Is there a configuration option somewhere to have ejabberd use kernel poll when I run ejabberdctl start? </p></div> <p>Yes, POLL in ejabberdctl.cfg</p> <div class="quote-msg"> <div class="quote-author"><em>Tronman</em> wrote:</div> <p>3. Is kernel poll being used by default? </p></div> <p>Yes in ejabberd thanks to ejabberdctl. Not in the plain Erlang.</p> <div class="quote-msg"> <div class="quote-author"><em>Tronman</em> wrote:</div> <p>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). </p></div> <p>No.</p> Mon, 15 Mar 2010 19:54:06 +0000 mfoss comment 55410 at https://www.ejabberd.im