Welcome! Log In Create A New Profile

Advanced

Re: Overhead when enabling debug?

Maxim Dounin
September 27, 2013 10:20AM
Hello!

On Fri, Sep 27, 2013 at 09:16:39AM -0400, mex wrote:

> i have a question regarding the --with-debug - option; do i have to expect
> much overhead,
> when compiling nginx with that option, but have it disabled per default?
>
> i'd like to have it at hand for debugging certain issues every then and
> there.

While there is some overhead, it's actually nontrivial to show it.
E.g. here are http_load results of a "return 204" test on my
laptop (5 tests for each --with-debug and without debug, 10
seconds each test), analyzed by ministat(1):

x bench.debug
+ bench.nodebug
+------------------------------------------------------------------------------+
|x xx + + + + x x +|
| |__________|___M___A____M_______A____|_______________| |
+------------------------------------------------------------------------------+
N Min Max Median Avg Stddev
x 5 7159.63 7754.85 7454.49 7503.202 240.43415
+ 5 7503.91 8148.11 7566.35 7671.328 269.26662
No difference proven at 95.0% confidence


That is, tests done aren't enough to show the difference, if any.

Overall, I would recommend to don't bother and to compile --with-debug
if there are chances you'll need it.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Overhead when enabling debug?

mex September 27, 2013 09:16AM

Re: Overhead when enabling debug?

itpp2012 September 27, 2013 09:42AM

Re: Overhead when enabling debug?

Maxim Dounin September 27, 2013 10:20AM

Re: Overhead when enabling debug?

mex October 05, 2013 05:16AM

Re: Overhead when enabling debug?

Yichun Zhang (agentzh) September 27, 2013 03:32PM

Re: Overhead when enabling debug?

splitice September 29, 2013 08:00AM

Re: Overhead when enabling debug?

mex October 05, 2013 05:31AM

Re: Overhead when enabling debug?

Yichun Zhang (agentzh) October 05, 2013 02:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
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