Welcome! Log In Create A New Profile

Advanced

Support for 3rd party zlib libraries

Richard Stanway
July 29, 2014 04:48PM
Hello,
I recently came across a modified version of zlib with code contributed by
Intel [1] that makes use of modern CPU instructions to increase
performance. In testing, the performance gains seemed substantial, however
when I tried to use this version with nginx, the following alert types
appeared in the error_log on gzip requests:

2014/07/30 05:20:29 [alert] 22285#0: *739837 gzip filter failed to use
preallocated memory: 65536 of 65520 while sending to client
2014/07/30 05:40:42 [alert] 29462#0: *230460 gzip filter failed to use
preallocated memory: 1040 of 4112

It appears nginx is pre-allocating a buffer based on the original zlib
memory usage patterns, however the Intel optimized version has slightly
higher memory requirements due to padding for SSE functions etc.

Is there a chance this version could be supported by nginx, or a
configuration option made available to control the allocation size?

Thanks.

[1] https://github.com/jtkukunas/zlib
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Support for 3rd party zlib libraries

Richard Stanway July 29, 2014 04:48PM

Re: Support for 3rd party zlib libraries

Yichun Zhang (agentzh) July 29, 2014 05:24PM

Re: Support for 3rd party zlib libraries

Richard Stanway July 29, 2014 06:48PM

Re: Support for 3rd party zlib libraries

Yichun Zhang (agentzh) July 29, 2014 07:08PM

Re: Support for 3rd party zlib libraries

Piotr Sikora July 29, 2014 07:10PM

Re: Support for 3rd party zlib libraries

Yichun Zhang (agentzh) July 29, 2014 07:16PM

Re: Support for 3rd party zlib libraries

Maxim Dounin July 29, 2014 08:06PM

Re: Support for 3rd party zlib libraries

Maxim Dounin July 29, 2014 10:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 125
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready