[AGENT++] SNMP Walk creates 66% CPU load

Frank Fock fock at agentpp.com
Fri Apr 26 21:06:48 CEST 2013


Hi Gangadhar,

OK, then it can be difficult to sort it out.
First, please answer the following questions:

1. SNMP++ and AGENT++ version? Which encryption lib/version (openssl)?
2. What kind of request are you sending (GETBULK whit what parameters)? 
Which SNMP version? Security level?
3. How did you instrument the agent? MibTable vs. MibLeaf? Virtual 
tables? What update strategy?
4. Does the benchmark agent implements lexicographic ordering correctly?

Best regards,
Frank

Am 24.04.2013 14:21, schrieb Gangadhar Sandrani:
> Hi Frank,
>
> Thanks for the info.
>
> The compiler switch  “_NO_LOGGING”  is already defined in
> snmp++/include/snmp_pp/config_snmp_pp.h file. Please find the below code
> snippet.
>
>   // define _NO_LOGGING if you do not want any logging output
> // (increases performance drastically and minimizes memory consumption)
> //#ifdef __vxworks__
> #define _NO_LOGGING
> //#endif
>
>   Thanks in Advance.
>
>   Best Regards,
>
> Gangadhar S
>
>
>
>
> On Wed, Apr 24, 2013 at 3:30 PM, <agentpp-request at agentpp.org> wrote:
>
>> Send AGENTPP mailing list submissions to
>>          agentpp at agentpp.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>          http://lists.agentpp.org/mailman/listinfo/agentpp
>> or, via email, send a message with subject or body 'help' to
>>          agentpp-request at agentpp.org
>>
>> You can reach the person managing the list at
>>          agentpp-owner at agentpp.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of AGENTPP digest..."
>>
>>
>> Today's Topics:
>>
>>     1. Re: SNMP Walk creates 66% CPU load (Frank Fock)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Wed, 24 Apr 2013 00:53:40 +0200
>> From: Frank Fock <fock at agentpp.com>
>> To: agentpp at agentpp.org
>> Subject: Re: [AGENT++] SNMP Walk creates 66% CPU load
>> Message-ID: <517710F4.2080109 at agentpp.com>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> Hi,
>>
>> Before doing any benchmarking, you should remove any logging
>> output by compiling SNMP++ and  AGENT++ with the _NO_LOGGING compiler
>> switch.
>>
>> Best regards,
>> Frank
>>
>> Am 23.04.2013 10:36, schrieb Gangadhar Sandrani:
>>> Hi  All,
>>>
>>> In addition to my previous post i am adding few more information.
>>>
>>> I am using Agent++ 3.5.29 version working on a powerpc target with linux
>>> kernel version 3.0.4. I use net-snmp to do a SNMP walk and i see an
>> average
>>> of 45 requests get processed and it consumes CPU load of around 58.5% .
>>> Below is the summary of CPU usage by different tasks, created by agent++.
>>>
>>>            Process Name
>>>
>>> % CPU Load
>>>
>>>            snmpAgent
>>>
>>>       40.8
>>>
>>>            agentpp-1
>>>
>>>       3.4
>>>
>>>            agentpp-3
>>>
>>>       7.3
>>>
>>>            agentpp-7
>>>
>>>       1.1
>>>
>>>            agentpp-9
>>>
>>>       5.9
>>>
>>> I used another third party snmp agent on the same powerpc target and I
>> see
>>> 422 snmp requests per second on an average getting processed and it
>>> consumes CPU load of around 40%.
>>>
>>> Regards,
>>>
>>> Gangadhar S
>>>
>>>
>>> On Tue, Apr 16, 2013 at 12:44 PM, Gangadhar Sandrani <
>>> gangadhar.sandrani at gmail.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I am using Agent++ 3.5.29 version. when i do a simple SNMP walk, it
>>>> creates a CPU load of 66% on the system.
>>>>
>>>> Please help me whether this is the standard behavior seen in this
>> Agent++
>>>> version or something different.
>>>>
>>>> Thanks in advance
>>>> Best Regards
>>>> Gangadhar S
>>>>
>>>>
>>> _______________________________________________
>>> AGENTPP mailing list
>>> AGENTPP at agentpp.org
>>> http://lists.agentpp.org/mailman/listinfo/agentpp
>> --
>> ---
>> AGENT++
>> Maximilian-Kolbe-Str. 10
>> 73257 Koengen, Germany
>> https://agentpp.com
>> Phone: +49 7024 8688230
>> Fax:   +49 7024 8688231
>>
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> AGENTPP mailing list
>> AGENTPP at agentpp.org
>> http://lists.agentpp.org/mailman/listinfo/agentpp
>>
>>
>> End of AGENTPP Digest, Vol 106, Issue 4
>> ***************************************
>>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231



More information about the AGENTPP mailing list