Basic patch to remove 'sleep on non-runnable events' code from events.c

Max perldork at webwizarddesign.com
Tue Dec 1 19:31:20 CET 2009


Hi,

I am not going to have time to wrap this in a conditional that will
allow it to only be activated when 'large_installation_tweaks' is set
to 1, so at least wanted to send out the patch I mentioned a month or
more ago that removes the additional sleep call Nagios will do when it
encounters a non-runnable event.

We currently have 3 Nagios pollers - 2 are dual quad-core Intel boxes,
one is a dual dual-core AMD box.  On the dual quad core hosts this
patch made a noticable difference in polling performance.  It made a
noticable but lesser difference on the AMD host.

On the dual core boxes, which are heavily loaded (9000+ active service
checks and 2000+ host checks) this patch reduced the polling cycle by
30-45 seconds on a 4 minute polling cycle, so pretty significant.

Obviously on lesser hardware having that sleep in place could be a
good thing, so would only recommend this for users with higher
performance hardware and large installations.

Patched against 3.0.3 but using the patch on both 3.0.3 and 3.2
without any modifications.

- Max
-------------- next part --------------
A non-text attachment was scrubbed...
Name: events.c.patch
Type: application/octet-stream
Size: 746 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20091201/a0fbf10f/attachment.obj>
-------------- next part --------------
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list