Morning coffee for my workstation
Posted on Tue 15 December 2009 by alex in geek
My work machine has always been slow in the mornings. I may have moaned about this before but it's mainly due to the rather excessive overnight processing it does (convert a 3.8G CVS repo into a 714M GIT repo). This tends to leave all the active applications somewhere in swap. With 3G of RAM in my machine this shouldn't really be a problem. Last night I enabled a very short script to run at 6.00 every morning:
#!/bin/bash swapoff -a sleep 10s swapon -a
The machine certainly seemed a lot snappier this morning when I sat down in front of it.