Nagios 2.0 performance
Ben
bench at silentmedia.com
Thu Sep 9 21:14:42 CEST 2004
uh, I arrived at that by going over the chained hash patch, which I
thought was in the cvs branch. But now that I look...... I see no such
code in cvs. Bleh. I guess I will have to re-analyze this stuff.
On Thu, 9 Sep 2004, Jason Martin wrote:
> 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.
>
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list