Good idea
+1.
I found your script to be a real help, Raboof, thanks, I learnt a couple of tweaks I didn't know before.
Example: my /dev/rtc was not a member of the audio group.
Picking up on the thread on linux.audio.users on the hpet timer, I discovered that my mobo doesn't support this ( it's not that old though!).
Another tweak I (re)discovered recently: I found I was getting xruns when the system paged to the swap partition. so I put this in my /etc/rc.local:
the default was 60 and the OS would page to swap long before all the free RAM was used. Set to 10 this does not happen. Given that most of us have a lot of RAM this only gives a performance improvement if you are doing a lot of memory intensive stuff at the same time: big hydrogen drumkits, and huge soundfonts and Ardour sessions etc.
What do you think about this? Has anyone else had this problem?