On Mon, March 25, 2013 1:39 pm, Jostein Chr. Andersen wrote:
That should be all you need with two cores, turn off cpu 0 and 2, though
most people turn off 1 and 3 :)
Which is why the cpu 7 here.
Linux sees the each core as two cpus, one for each thread. Not only might
a thread be using too much time but there is also the overhead of context
switching (invisible to the kernel) from one thread to the other. With
hyper threading on, I can run jack at 64 frames with few xruns. With
hyperthreading off, I can get down to 16 frames with guitarix running and
no xruns. (10 year old single core p4 at 2.4G) Read up on some of the cnc
projects where they require lower latency than audio. Lots of good info.
Hyperthreading improves "performance" over all, but raises the latency
audio can run at without dropouts. Once you hit 4 cores though,
hyperthreading is more of a gimmick than a help.
Every second thread/cpu can also be disabled on the kernel command line in
isolcpus= cpu_number[, cpu_number,...]
The cnc people also use this to hide a cpu away from the OS so they can
have full access to that cpu for just their application without the OS
using it too.
Linux-audio-user mailing list