Nagios 2.0 performance

Jason Martin jhmartin at toger.us
Thu Sep 9 18:52:36 CEST 2004


On Thu, Sep 09, 2004 at 07:44:13AM -0700, Ben wrote:
> Now that Nagios 2 uses a GTree instead of a linked list, the lookup 
I don't see how you are arriving at that; although some support
for the chained hash has has been implemented, if you look at
statusdata.c in the add_service_status function (one of the two
slowest functions used by the status.cgi) you'll see a for loop
in the form of
for(temp_svcstatus=servicestatus_list;temp_svcstatus!=NULL;temp_svcstatus=temp_svcstatus->next){
which is a linear linked list traversal.

-Jason Martin
-- 
I'm not loafing. I work so fast I'm always finished
This message is PGP/MIME signed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 211 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040909/cb8b0dd4/attachment.sig>


More information about the Users mailing list