Hi guys and gals
I know next to nought about genie programming but using Nicolas' template for tray icons I came up with something useful.. mainly coded in bash
, depending on 2 tray icons compiled in genie.
It's a little daemon to monitor RAM usage and it actually works! It gives warnings when RAM usage is high and critical and offers to start pprocess (if installed) or top.
I just tried it out on my XO-1 and it worked a charm, with mavrothal's xopup based on lupu-510. Xo's only have 256M of RAM and I have no swap file. Once Puppy is loaded there is about 40M free, then you load Chromium and there is less than 5M left.. enter my program.
I called it
freeramdaemon and it has a simple config gui too.
There is a menu entry under 'system'
Maybe the technosaur might want to expand on this..
Sources are included and I commented here and there.
Enjoy
Cheers
Edit1: just removed some useless code so now it's 0.1.1 (not changed in script tho
)
Edit2: updated to 0.2. It seemed more logical to give warnings when the actual amount of RAM becomes critical, not the percentage.
. I found this out on my fast box when I was getting the warning when I still had 200M of free RAM!
Now the 'warning' kicks in at 32M and the critical warning kicks in at 8M, giving the user enough chance to do something about the situation without losing their work.