With all the things that a multi-tasking operating system does, I wonder if the conversation has been beating (like a dead horse) or if there are some common sense things to turn off (and change/tweak) during Ardour+Jack usage?
What got me thinking about this was coming across the swappiness setting inside /proc [http://kerneltrap.org/node/3000] and further got to thinking. I think I tinkered around with disabling cron from running (don’t seem to make sense to possibly launch something that might increase disk usage unexpectedly).
The main thing is disk usage should be focused on reading/writing disk I/O first and foremost. Swap space on a decent machine is normally kept to a minimum, but it’s impact (if on same storage path) could be undesired. The two schools of thought would be have lots of RAM and disable swap partition -OR- you should always have a swap file. For disk based audio processing, and systems that have swap. It seems that setting the swappiness (/prov/sys/vm/swappiness) lower than default 60 (less aggressive at swapping out code space to disk) translates to less disk caching. Flip side, too high and you have code swapped out to disk more so.
I wish I could assume that ALL (important) loaded code that could escalate to blocking RT sensitive code would be locked [mlock()] and thus would only block under from something NOT related to being swapped back from disk. I am sure that code that is active and not locked is tracked via performance counters and passed over for swapping.
It’s a balancing game, disk caching can only help so far and can’t continuously make a particular drive behave faster (only in limited ways).
I figure that disabling cron and perhaps a few other things (I can’t think of any at the moment) and perhaps lowering swappiness to 1/2 (30 instead of 60) is probably a safe bet.
A good system would have a dedicated system+swap drive and separate storage path (drive is a must, cable, controller/interface if possible) for audio and plenty of RAM and have as many intermittent background tasks disabled.
Oh well, perhaps I am over thinking – several articles on swappiness got me thinking about it within Ardour+Jack context.
Any comments? Anyone? Anyone? Bueller… Bueller…