Daniel Fallmann wrote:
Hy!

We would like to invest some time to make the net-snmp lib threadsafe
and furthermore we would like to make the snmpd process requests
mutithreaded.
Although I'm working with your great lib for some months now, it would
nevertheless be a really good and helpfull thing to get a hint from you
where you would to start with this work.

Can you give me a list of interesting files (within the net-snmp tree)
that come to your mind and that should be at leased processed for this
task. As a startingpoint or something,...

Thank you very much!

Greetings to all,
Daniel


Hi, Daniel. Thank you for expressing an interest. I'm personally very glad that you've offered to help, and I want you to know that the Net-SNMP developers are more than happy to help you succeed. Start with README.thread, then browse the bug reports. I'll explain below.

Please know that it is particularly a sticky problem, as the
language and its support libraries make the project "interesting".
However, as I've discovered, it is well worth making the attempt.
If you have a "C" source code browser, or if you are handy making
and using "ctags" [I've used "cscope" with good results],
you will understand the scope of the problem in less time.


There is an old file README.thread which can give you background on an early attempt to use UCD-SNMP in multi-threaded applications.

The issues described there are also raised in several bug reports.
Start with http://www.net-snmp.org/bugs/  Use the search window;
Here are a few of the bug reports which give good information
on thread-safe uses of net-snmp :
226228
839675
845846  s/b condensed into recommendation added to README.thread
811968  careful when you close an SNMP session


I recommend that you focus first on making the session and transport functions thread-safe. In particular, snmp_sess_open has proven to require external mutex before and after in order that the net-snmp library works in multi-threaded applications. An example application is "cactid" from the Cacti project.

The successful multi-threaded applications read all of their configuration
and all of their MIB files parsed BEFORE opening the first
SNMP session to an SNMP-capable device.

Once you have a handle on the problem set, review the source code.
There are some global objects marked with MTCRITICAL_RESOURCE comments.

Please keep all responses to [EMAIL PROTECTED]
for the benefit of everyone.

Thank you, and looking forward to working with you!

Sincerely,
-Mike Slifcak




------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to