Physical RAM Usage Indicator
I've built a device that will indicate through 10 LEDS the amount of RAM remaining on a system via the USB port(think, an external desktop applet). They illuminate corresponding to a number that is a percentage from a shell script that loops cat /proc/meminfo, does the math, and spits it out via > /dev/ttyUSB0. The problem that I've run into is, when testing, I open tons of apps to eat away the RAM and change the indicators, but there are severe delays or even complete pauses until the system finishes opening the programs before changing the indicators. Is there a better or more efficient way to send the data to USB? The batch file is just being run via terminal in Gnome right now and I had planned on running it in the background on login, but until I get the delays worked out, I don't see much use.