I'm coding up a quick change to rrd_daemon.c to make it cache the results of rrd_info calls for a predetermined period. This means that any calls to rrdc_info (IE, rrdtool info over rrdcached) would be cached, speeding up retrieval at the cost of items such as 'last_update' and '*.value', '*.cur_row' etc being out of date. Probably there would need to be an option to info to allow bypassing of the cache?
The motivation for this is that MRTG makes a substantial number of these calls (as does Routers2 and others) but are only interested in the structure of the RRD, not the current values. By caching it would speed up access and minimise disk IO. Thoughts, anyone? I have yet to see how much actual difference it would make... Steve ________________________________ Steve Shipway ITS Unix Services Design Lead University of Auckland, New Zealand Floor 1, 58 Symonds Street, Auckland Phone: +64 (0)9 3737599 ext 86487 DDI: +64 (0)9 924 6487 Mobile: +64 (0)21 753 189 Email: [email protected]<mailto:[email protected]> P Please consider the environment before printing this e-mail
_______________________________________________ rrd-developers mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
