docker stats returns info that varies, of course, between calm moments and more intense ones (it looks like a cycle of about 10 seconds) :
or
or
and htop:
or
docker stats returns info that varies, of course, between calm moments and more intense ones (it looks like a cycle of about 10 seconds) :
and htop:
I understand better now: with 1.8 GB of RAM on your Pi, if 600 MB are always used in normal operation, and if in the current state you need more than 1 GB for aggregation (youâve probably fallen behind), itâs going to choke.
Aggregation works sensor by sensor; you probably have a single sensor thatâs responsible for the high RAM usage we see. An analysis of the SQLite database could determine which sensor it is. It may turn out you donât even use its data and you could delete it ^^ (imagine itâs like the battery history for the last 2 years â we can do without that). If you know how to extract your database, I could run the queries and tell you which sensor is causing the problem. Otherwise you can run the queries yourself if you know how to do it too ![]()
If that seems complicated, you can already go through each device in the Gladys-Zigbee2mqtt integration and check that you only keep the states you need. If you uncheck a feature, Gladys will automatically purge the historical states.
Ok, thanks for the analysis. And it forces me to do what Iâve been putting off for a while: review the configuration of each Zigbee device and each MQTT device to remove as much history as possible. Iâll do that calmly first.
And also look into switching to the mini-PC whose merits you regularly praise ![]()
The mini PC, honestly itâs worth it⊠after you can find good second-hand deals on Le Bon Coin and a Raspberry Pi 4 still resells pretty well.
@pierre-gilles The error « SyntaxError: Value expected (char 1) » occurs because of a scene that contained this block « Continue only if »:
Thanks for the feedback, validation is missing on this scene action! Can you create a GitHub issue on the Gladys repo so we have a record?
VoilĂ , câest fait : Some validation is missing in the scene action "Continuer seulement si" · Issue #2106 · GladysAssistant/Gladys · GitHub
Quick update on my cleanup:
So I switched from the rPi to a mini-PC (with 8GB of RAM). And no more aggregation issues ![]()
Weâll see, once weâve moved to DuckDB, we wonât have the same storage issues anymore, so the current
Hi,
Personal feedback regarding my PIR sensors, which by default had retained the history of all motion for the past 6 months⊠(I currently have 6 PIRs in the main rooms, potentially generating motion every 10 secondsâŠ).
Perhaps sensors should only be logged by default for certain types (temperature, humidityâŠ)?
Have a nice day,
Jean
That could be an option â after that I think weâll see what it looks like with DuckDB because this kind of data really wonât take up much space anymore (the 0/1s will be highly compressed by DuckDB).
Especially since weâll also soon have historical motion sensor visualization on the dashboard, itâll be handy to have that data ![]()