Re: epoll scheduler

Vincent Bernat <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
 ❦ 18 août 2015 08:38 +0200, Vincent Bernat <[email protected]> :

>> This is mine: https://github.com/andriyanov/keepalived/commits/epoll
>>
>> NetSNMP support was a most painful part )
>
> I'll help if needed (I am offline, so I didn't have a look at your code
> yet).

You seem to have gotten it right. You must have noticed that NetSNMP is
only exporting a select() like function and therefore, things will not
work if the SNMP file descriptors are over 1024. I think this is a fine
limitation but with a recent version of NetSNMP, it is possible to
workaround it with snmp_select_info2() which uses some adhoc fdset like
structure without size limitation. Of course, this is "recent" (not
really, but Debian-based distributions got stuck in 5.4 for a long
time), so you have to support both.
-- 
Don't sacrifice clarity for small gains in "efficiency".
            - The Elements of Programming Style (Kernighan & Plauger)

------------------------------------------------------------------------------
_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.