--0016e6d77eac1705e10479aef8a1
Content-Type: text/plain; charset=ISO-8859-1
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
--0016e6d77eac1705e10479aef8a1
Content-Type: application/octet-stream; name="events.c.patch"
Content-Disposition: attachment; filename="events.c.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g2p06kl00
LS0tIGJhc2UvZXZlbnRzLmMub3JpZwkyMDA5LTA2LTE2IDIzOjIzOjM4LjAwMDAwMDAwMCAtMDQw
MAorKysgYmFzZS9ldmVudHMuYwkyMDA5LTExLTEwIDEyOjI1OjU3LjAwMDAwMDAwMCAtMDUwMApA
QCAtMTE0MiwyMCArMTE0Miw3IEBACiAKIAkJCS8qIHdhaXQgYSB3aGlsZSBzbyB3ZSBkb24ndCBo
b2cgdGhlIENQVS4uLiAqLwogCQkJZWxzZXsKLQotCQkJCWxvZ19kZWJ1Z19pbmZvKERFQlVHTF9F
VkVOVFMsMiwiRGlkIG5vdCBleGVjdXRlIHNjaGVkdWxlZCBldmVudC4gIElkbGluZyBmb3IgYSBi
aXQuLi5cbiIpOwotCi0jaWZkZWYgVVNFX05BTk9TTEVFUAotCQkJCWRlbGF5LnR2X3NlYz0odGlt
ZV90KXNsZWVwX3RpbWU7Ci0JCQkJZGVsYXkudHZfbnNlYz0obG9uZykoKHNsZWVwX3RpbWUtKGRv
dWJsZSlkZWxheS50dl9zZWMpKjEwMDAwMDAwMDApOwotCQkJCW5hbm9zbGVlcCgmZGVsYXksTlVM
TCk7Ci0jZWxzZQotCQkJCWRlbGF5LnR2X3NlYz0odGltZV90KXNsZWVwX3RpbWU7Ci0JCQkJaWYo
ZGVsYXkudHZfc2VjPT0wTCkKLQkJCQkJZGVsYXkudHZfc2VjPTE7Ci0JCQkJZGVsYXkudHZfbnNl
Yz0wTDsKLQkJCQlzbGVlcCgodW5zaWduZWQgaW50KWRlbGF5LnR2X3NlYyk7Ci0jZW5kaWYKKwkJ
CQlsb2dfZGVidWdfaW5mbyhERUJVR0xfRVZFTlRTLDIsInJ1bl9ldmVudCA9PSBGQUxTRTogbm90
IGV4ZWN1dGluZyBzY2hlZHVsZWQgZXZlbnQuXG4iKTsKIAkJCSAgICAgICAgfQogCQkgICAgICAg
IH0KIAo=
--0016e6d77eac1705e10479aef8a1--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]