1024 sessions problem

Alex Bligh alex at alex.org.uk
Tue Nov 3 08:06:50 CET 2015


On 3 Nov 2015, at 00:19, Alexander V. Chernikov <melifaro at yandex-team.ru> wrote:

> Not sure if bird needs os-dependent stuff like eventports/epoll/kqueue variant and own libev[ent], but having poll() as compile-time option might also be an option.
> (Not insisting on anything, select() is fine for our workload, just discussing).

I'm not sure you need to go as far as libevent. poll / ppoll are widely supported and avoid a linear scan of an array of 1024+ items. It's also relatively easy to put in a wrapper to make select() work like *poll() on systems that don't support it.

-- 
Alex Bligh







More information about the Bird-users mailing list