Re: [LAD] jackd buffersize

From: Jussi Laako <jussi@email-addr-hidden>
Date: Mon May 11 2009 - 20:49:10 EEST

Jens M Andreasen wrote:
> What is the rationale for jackd requiring buffers to have number of
> frames set to a power of 2? Could this be relaxed to perhaps a multiple
> of 16, 32 or somesuch?

SSE optimizations require, for performance reasons, that buffers are
128-bit aligned. SSE is really slow on non-aligned access and due to
rather small buffers cannot catch up in the performance after getting up
to aligned address. Size itself doesn't have to be anything specific,
but anything which is not multiple of 4 would also cause slow down.
Having some pad bytes (if possible) thus makes it possible to work
around this limitation.

By disabling SIMD optimizations this restriction goes away with some
performance penalty.

        - Jussi
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Tue May 12 00:15:01 2009

This archive was generated by hypermail 2.1.8 : Tue May 12 2009 - 00:15:01 EEST