Re: add new event handler

From: Aleksandar Lazic <al-haproxy#none.at>
Date: Wed, 11 Jun 2008 10:10:46 +0200


Hi Willy,

On Mit 11.06.2008 08:00, Willy Tarreau wrote:
>
>On Tue, Jun 10, 2008 at 11:25:34PM +0200, Aleksandar Lazic wrote:
>>
>> when I want to add a new event handler what are the steps.
>>
>> I figured out the following:

[snipp]

>> anything else?
>
>nothing I can think of. Do not forget to copy the constructor function
>from another handler, it is the one which registers it.

Yes, thanks.

>> As I have understand right the 'pref' in 'struct poller' defines the
>> default handler on the platform right?
>
>that's right. I have arbitrarily assigned the following values :
>
> select = 150
> poll = 200
> epoll = 300
> kqueue = 300
> sepoll = 400
>
>The highest supported on your platform wins. The idea is to classify
>them by performance order. If you have an O(1) event handler (say,
>/dev/poll on Solaris), you might want to set it to 300. That way we
>have all platform specific optimizations at 300, and their optimized
>derivatives (speculative ones) can be set to 400.

Ah you remember what we talked about the past ;-)

Cheers

Aleks Received on 2008/06/11 10:10

This archive was generated by hypermail 2.2.0 : 2008/06/11 10:15 CEST