question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[rrd4j] Very poor performance on resource contrained systems

See original GitHub issue

(Already discussed in https://github.com/openhab/openhab-addons/pull/8866#issuecomment-719944078)

I have noticed a huge performance degradation on the retrieval of data persisted in rrd4j on a PINE A64 2GB in recent snapshots (#1998), when the same operation on the same data used to be fast on the M1 release.

I’m attaching an example of RRD file where this can be reproduced: ElectricityMeter_Current (Number:Current) FGDW002WindowSensor_Temperature (Number:Temperature) rrd-examples.zip

The performance is as follows - these are exactly the same requests except in the second case the rrd4j persistence addon was uninstalled and replaced with the .jar from the Milestone 1 release:

3.0.0-SNAPSHOT (distribution version)

time curl -o /dev/null http://openhab:8080/rest/persistence/items/ElectricityMeter_Current?starttime=2020-10-31T10%3A47%3A36.624Z
real    0m2.996s   < !!!
user    0m0.030s
sys     0m0.012s

time curl -o /dev/null http://openhab:8080/rest/persistence/items/FGDW002WindowSensor_Temperature?starttime=2020-10-31T10%3A47%3A36.624Z
real    0m0.618s   < !!
user    0m0.031s
sys     0m0.013s

3.0.0.M1

time curl -o /dev/null http://openhab:8080/rest/persistence/items/ElectricityMeter_Current?starttime=2020-10-31T10%3A47%3A36.624Z
real    0m0.071s
user    0m0.023s
sys     0m0.018s

time curl -o /dev/null http://openhab:8080/rest/persistence/items/FGDW002WindowSensor_Temperature?starttime=2020-10-31T10%3A47%3A36.624Z
real    0m0.067s
user    0m0.019s
sys     0m0.021s

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
wborncommented, Nov 1, 2020

The bad performance probably has more impact because it causes issues all the time whereas the restore on startup behavior only occurs on startup… which occurs less often. WDYT?

0reactions
kaikreuzercommented, Nov 1, 2020

it does not appear logical.

Ok, I think I found a logical explanation and fixed it with https://github.com/openhab/openhab-addons/pull/8938.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slow charting - Items & Sitemaps - openHAB Community
Hi ! I have a problem with slow charts. I am using both rrd (with everyminute strategy) and db4o + default chart provider...
Read more >
Design, Implementation and Practical Evaluation of an IoT ...
1) makes use of a publish/subscribe model that consumes very few resources, what is useful in situations where resources are restricted (i.e., when...
Read more >
EnginFrame Administrator's Guide - cloudfront.net
EnginFrame abstracts computing resources and data management ... RRD4J is a high performance data logging and graphing system for time ...
Read more >
NetIQ® Cloud Manager - Administrator Reference
For example, if you select a computing resource under physical in the Explorer ... of any system resource by managing an object's facts...
Read more >
Apache Solr Release Notes
Most people will find the solr-upgrade-notes.adoc file more approachable. ... Consult the lucene/CHANGES.txt file for additional, low level, changes in this ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found