Hardware accelerator + Nginx

Igor Sysoev igor at sysoev.ru
Fri Sep 30 07:28:32 UTC 2011


On Wed, Sep 28, 2011 at 10:32:28AM +0100, Brendan Kennedy wrote:
> Hi All,
> 
> I'm working with a hardware crypto accelerator at the moment and have some
> basic questions.
> 
> The accelerator gives best performance when operations can be done
> asynchronously (a thread doesn't wait for a request to the engine to
> complete before submitting the next request, results are returned using a
> callback mechanism). It also preserves the request order in it's responses.
> 
> Can nginx be used in this manner without having to force synchronous
> operation at an application level?
> 
> For a given connection, does nginx spawn a new thread per packet or does
> each packet have to be processed sequentially?

In theory nginx may work with accelerator asynchronously, but in practice
work with OpenSSL which is (as I understand) synchronous only.


-- 
Igor Sysoev



More information about the nginx-devel mailing list