Welcome! Log In Create A New Profile

Advanced

Re: Does compiling nginx with “--with-debug” option reduce performance even when not enabling debug level?

Francis Daly
August 01, 2019 01:14PM
On Thu, Aug 01, 2019 at 09:44:20AM -0400, abkulkar wrote:

Hi there,

> I want to build nginx with the debug options and use it in production.
> But the instructions provided here:
> https://nginx.org/en/docs/debugging_log.html do not say if it will have
> performance issues even when I DON'T enable debug level logging.

I think that the answer to every performance / optimisation question is
the same:

if you have not measured a problem, then there is not a problem that
you care about.

The page you link to does not appear to say anything about performance
issues, apart from the line

"""
Logging to the memory buffer on the debug level does not have significant
impact on performance even under high load.
"""

I suspect that the only way for you to know is for you to test. On
your hardware, with your configuration, maybe the theoretical maximum
throughput from nginx will change with debugging compiled in; but if
it still exceeds the practical maximum that you observe, then the change
is probably not important to you.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Does compiling nginx with “--with-debug” option reduce performance even when not enabling debug level?

abkulkar August 01, 2019 09:44AM

Re: Does compiling nginx with “--with-debug” option reduce performance even when not enabling debug level?

Francis Daly August 01, 2019 01:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 173
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready