> Hi,
>
>       My application uses EPOLL. I have integrated openSSL in my
> application. While running the application with 2000 client application
> takes 100% CPU usage. If change my application to use "select" it works
> fine.
>
>       Please suggest regarding this.
>
> Thanks in advance for your help.

What's your basic architecture? Are you multi-threaded? Do you call
epoll_wait with a timeout? Do you use one-shot events or edge-triggering? If
neither edge-triggered nor level-triggered, you cannot call EPOLL until you
have finished handling all the events you got on the previous pass.

EPOLL should be a drop-in replacement for 'select' with no issues. It's only
when you try to use its special features that you can get into trouble.

I'd go over the possible mistakes for when you want to wait for read or
write events, but it the same as when you want a socket in the read or write
set for 'select'. So if it works with 'select', that probably isn't your
problem.

Are you sure it's an OpenSSL-related issue at all? Can you use EPOLL without
OpenSSL without problems? (Do you know what you're doing? Do you just not
know how to use EPOLL?)

DS


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to