Thanks for becoming a user and welcome to the Rockstor community! There’s a service called data collector that collects various metrics like share/pool/cpu/mem usage etc… and writes to it’s database which is on the root disk. For your usecase, you may not want that information being collected all the time. On my home NAS, I always keep it on mostly because I try to stress test every feature.
You can turn off the metric collection as follows
1. On the dashboard, there’s a on/off switch under “Metric Collection”. It’s on the left in the side navbar. You can turn it off there.
2. You can also turn it off from the System -> Services screen. The service name is “Data Collector”.
This should help. Let me know how it goes.
Was there a noticeable difference between with/without data collector?
There are other db reads and writes going on, but not that much. You can turn off replication and task scheduler if you are not using them. You could also turn off the service monitor entirely with the command /opt/rockstor/bin/supervisorctl stop service-monitor (turning it off is not supported from the web-ui, but you can turn it back on from the web-ui)
I am curious to find out how much you save, if any with various things turned off. Please share your observations if you can.
Thanks. I’ll keep an eye on this and get back to you.
No, not a massive difference with the data collector off.
This is great information for us as we optimize Rockstor. We can perhaps give options for service monitor and data collector so the user can set amount and frequency of data collection. Here’s the issue to track this:
https://github.com/rockstor/rockstor-core/issues/585 Feel free to participate on github.
Regarding btrfs-transaction threads, I am not sure exactly what’s causing it, but perhaps the root btrfs filesystem is fragmented? I checked my systems and don’t notice this. But, to check if it’s triggered by postgres, you could turn off rockstor (systemctl stop rockstor) and see if it disappears after some(could be long) time and see if it repeats once rockstor is started (systemctl start rockstor) If I can reproduce on one of my systems, I’ll throw more ideas.
Thanks for reporting the numbers. Yes, smartdb which is the database for smart manager that collects metrics, is write intensive. We’ll optimize it but in the meanwhile, if you turn off data collector, it will save many writes.
/opt/rockstor/bin/supervisorctl stop service-monitor