[csw-users] OpenCSW question about package rrdtool
Dagobert Michelsen
dam at opencsw.org
Mon Oct 7 10:59:43 CEST 2013
Hi Brent,
Am 06.10.2013 um 00:54 schrieb Brent Cadd <brent.cadd at genband.com>:
> Some good thoughts... Let me do some more research on your links…
>
> Found on the main rrdtools web page a reference in that he had implemented a thread safe
> library called "librrd_th" and that the -lrrd_th option needs to be used when linking it (See
> second link below...).
>
> http://oss.oetiker.ch/rrdtool/index.en.html
>
> http://oss.oetiker.ch/rrdtool/prog/rrdthreads.en.html
>
> On the a solaris box where csw rrdtools package is installed, I'm able to see the *_r function objects
> using the "nm" command to list the contents of librrd_th.so library that he is talking about on his web
> site, but not sure about this (need your expert help and thoughts here…).
>
> solaris: cd /opt/csw/lib
> solaris: l *rrd*
> lrwxrwxrwx 1 root root 18 Oct 5 11:33 librrd_th.so.4 -> librrd_th.so.4.2.0
> -rwxr-xr-x 1 root bin 382400 Jan 24 2012 librrd_th.so.4.2.0
> lrwxrwxrwx 1 root root 15 Oct 5 11:33 librrd.so.4 -> librrd.so.4.2.0
> -rwxr-xr-x 1 root bin 384812 Jan 24 2012 librrd.so.4.2.0
> solaris: /usr/ccs/bin/nm librrd_th.so.4.2.0 | grep '_r'
> …
> [664] | 86232| 4448|FUNC |GLOB |0 |11 |rrd_create_r
> [515] | 107176| 7140|FUNC |GLOB |0 |11 |rrd_dump_cb_r
> [165] | 114360| 160|FUNC |LOCL |2 |11 |rrd_dump_opt_r
> [603] | 114520| 16|FUNC |GLOB |0 |11 |rrd_dump_r
> [631] | 116488| 80|FUNC |GLOB |0 |11 |rrd_fetch_r
> [718] | 96400| 384|FUNC |GLOB |0 |11 |rrd_first_r
> [552] | 38320| 3008|FUNC |GLOB |0 |11 |rrd_info_r
> [725] | 94688| 72|FUNC |GLOB |0 |11 |rrd_last_r
> [489] | 95392| 680|FUNC |GLOB |0 |11 |rrd_lastupdate_r
> [105] | 46028| 8|FUNC |LOCL |2 |11 |rrd_notify_row
> [481] | 70484| 96|FUNC |GLOB |0 |11 |rrd_random
> [490] | 45552| 144|FUNC |GLOB |0 |11 |rrd_read
> [579] | 118796| 2792|FUNC |GLOB |0 |11 |rrd_resize
> [346] | 0| 0|FILE |LOCL |0 |ABS |rrd_resize.c
> [620] | 106676| 416|FUNC |GLOB |0 |11 |rrd_restore
> [311] | 0| 0|FILE |LOCL |0 |ABS |rrd_restore.c
> [252] | 0| 0|FILE |LOCL |0 |ABS |rrd_rpncalc.c
> [175] | 46036| 64|FUNC |LOCL |2 |11 |rrd_select_initial_row
> [722] | 72756| 16|FUNC |GLOB |0 |11 |rrd_update_r
> …
>
> Tobias is talking about threading but for a limited of number of rrd commands which appear now to
> be thread safe, but again, need your thoughts here…
What I am saying is that the thread-safe function did not make it into the Perl bindings:
https://lists.oetiker.ch/pipermail/rrd-developers/2005-November/001636.html
I suggest asking on the devel list for clarification.
Best regards
-- Dago
>
> Thanks for the quick reply… awesome…
>
>
> Brent Cadd
> Senior Software Engineer
>
> 4001 E. Chapel Hill-Nelson Hwy
> RTP, NC 27709 USA
> www.genband.com
> office:+1.919.457.9552
> nsp hotline: +1.919.457.9800
> brent.cadd at genband.com
> <image001.jpg>
> Connect with us:<image002.gif><image003.gif><image002.gif><image004.gif><image002.gif><image005.gif><image002.gif><image006.gif><image002.gif><image007.gif>
> -----Original Message-----
> From: Dagobert Michelsen [mailto:dam at opencsw.org]
> Sent: Saturday, October 05, 2013 12:28 PM
> To: Brent Cadd
> Cc: Questions and discussions
> Subject: Re: OpenCSW question about package rrdtool
>
> Hi Brent,
>
> Am 05.10.2013 um 18:13 schrieb brent.cadd at genband.com:
> > I\'m attempting to use the rrdtool with perl based threads but the
> > CSWpm-rrdtool appears to be based on non-thread usage. I\'m seeing
> > the rrd thread library in place (/opt/csw/lib).
> >
> >> l /opt/csw/lib | grep rrd
> > lrwxrwxrwx 1 root root 18 Oct 5 11:33 librrd_th.so.4 -> librrd_th.so.4.2.0
> > -rwxr-xr-x 1 root bin 382400 Jan 24 2012 librrd_th.so.4.2.0
> > lrwxrwxrwx 1 root root 15 Oct 5 11:33 librrd.so.4 -> librrd.so.4.2.0
> > -rwxr-xr-x 1 root bin 384812 Jan 24 2012 librrd.so.4.2.0
> >
> > But, does csw allow a package (eg. CSWpm-rrdtool_r ) to exist which
> > has the perl environment enabled to use the thread rrd library? Or
> > do we have to point a configure parameter at the librrd_th.so.4 file
> > somewhere within the /opt/csw/lib/perl directory to be able to use
> > the RRDs::create_r routine, perhaps???
> >
> > Not sure how to get the csw environment setup correctly…
>
> Are you sure it is possible at all to use the thread-safe API in a Perl threads
> environment? Some years ago it was not:
> https://lists.oetiker.ch/pipermail/rrd-developers/2005-November/001635.html
> From what I see I doubt the threadsafe-functions were included by now:
> https://github.com/oetiker/rrdtool-1.x/blob/master/bindings/perl-shared/RRDs.xs#L168
>
> Please understand that adding this feature is would be upstream work for Tobi et al.
> and is beyond the scope of a packaging project. But as I may be mistaken you could
> ask on the rrdtool developts mailing list:
> http://oss.oetiker.ch/rrdtool/support.en.html
>
> It would be nice if you would drop me a note about your findings.
> If you have further suggestions on enhancing the packaging or adding compile
> flags just let me know.
>
>
> Best regards
>
> -- Dago
>
>
>
> --
> "You don't become great by trying to be great, you become great by wanting to do something,
> and then doing it so hard that you become great in the process." - xkcd #896
--
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/users/attachments/20131007/6bd6bbce/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2351 bytes
Desc: not available
URL: <http://lists.opencsw.org/pipermail/users/attachments/20131007/6bd6bbce/attachment-0001.p7s>
More information about the users
mailing list