Hi, Mike!
The pro of multithreading or multiprocessing might be this, snmp client don't
have to wait while multiple snmp request packets are sent to the agent at the
same time. The model of single processing limits the number of simultaneous
requests, if a former request is a time-consuming one, subsequent requests will
have to wait untill the former one is done, and this may lead to a time out
error for client if many different requests are waiting in queue.
For example, I use net-snmp agent as a background server to collect host or
database performance information, and choose to extend the agent's abillity by
using host shell scripts as "extend .1.3.6.1.2.xxxx var_name shell_name.sh". If
the running of the shell script is a little time-consuming, it will block the
latter snmp request until it is finished. Multithreading is a more efficient
way to handle different requests at the same time, but since net-snmp FAQ
indicate that it is very difficult to upgrade the agent to support
multithreading, I guess there might be another way such as adding some
multi-processing code into the agent(fork another process when dealing with
incoming packet). Could anybody give any suggestion?
------------------
xiao ren
2008-10-30
-------------------------------------------------------------
发件人:Mike Ayers
发送日期:2008-10-30 03:16:18
收件人:xiao ren; [EMAIL PROTECTED]
抄送:
主题:RE: How about enhance snmpd to support multi-process background querying?
What do you hope to gain from multithreading? The general design
paradigm for SNMP as a whole is to make responsive objects, like the ones I
described in response to your last query. You can't just let the requests
clobber each other...
HTH,
Mike
> -----Original Message-----
> From: xiao ren [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2008 2:46 AM
> To: [EMAIL PROTECTED]
> Subject: How about enhance snmpd to support multi-process
> background querying?
>
> Hi, All
>
> I've checked the net-snmp FAQ and found that snmp agent don't
> support multithread background processing, at least for the
> time being. But how about modify it so that it can support
> multi-process background querying? I'm trying to do it now,
> I'd like to know if somebody already have done this kind of
> thing before, any suggestion is appreciated. Thanks!!
>
> --------------
> Ren
> 2008-10-29
>
> --------------------------------------------------------------
> -----------
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge
> Build the coolest Linux based applications with Moblin SDK &
> win great prizes
> Grand prize is a trip for two to an Open Source event
> anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users