Welcome! Log In Create A New Profile

Advanced

Re: Overhead when enabling debug?

September 29, 2013 08:00AM
Thank you agentz, that looks amazing. I will be including that in the next
server software push.

And also Maxim, thank you for you for taking the time to prepare those
figures. I am going to my own testing and presuming that holds with our
usecase / modules I will be deploying --with-debug myself. Its definitely
worth it for <5% any day.

Regards,
Mathew


On Sat, Sep 28, 2013 at 5:01 AM, Yichun Zhang (agentzh)
<agentzh@gmail.com>wrote:

> Hello!
>
> On Fri, Sep 27, 2013 at 6:16 AM, 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?
> >
>
> We avoid enabling debug logs in production because when we really need
> to debug online issues, debug logs are just too expensive to emit and
> analyze (consider the box is currently experiencing an L7 attack).
>
> Also, --with-debug compiles in extra code paths which *could* have
> bugs and consume some extra CPU cycles even when you're not further
> enabling it in nginx.conf.
>
> Also, you'll never never have enough debug logs for answer those
> really hard questions in production.
>
> We only enable it for every day Nginx related development. For online
> trouble shooting, we're relying on systemtap to do low overhead
> dynamic tracing on various software stack levels, as demonstrated by
> my Nginx Systemtap Toolkit:
>
> https://github.com/agentzh/nginx-systemtap-toolkit
>
> and also all those samples in my stap++ project:
>
> https://github.com/agentzh/stapxx#samples
>
> Hope these help.
>
> Best regards,
> -agentzh
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
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: 192
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready