I want to share with you an expereince which I made and how I solved it.
I am using openhab since some years now. With openhab 2.0 and 2.5 on raspberry pi 3 and 4 I noticed very often a delay of several second (4-6s) whan I call a rule. I searched since a long time for a solution. Actually I swithed to Pi4 to solve it. But problem remains.
Than I stumbled by accident over the log2ram project https://github.com/azlux/log2ram. I thought its a good idea to install it, to make my SD card longer lasting. With this project comes also the recommedation to install https://github.com/StuartIanNaylor/zram-swap-config and disable raspbian file swap services.
I did this and beleive me or not. Since than the delays in the reaction time on rules are gone and I am happy!! It works perfect since a few weeks now.
Did anybody else face similar problems? Make it sense to introduce this in openhabian in the future?
What does the community think about this?