1 (edited by robpap 2022-10-04 16:11:28)

Topic: Feature request: memory-aligned buffers for ASIO driver (hdsp32.exe)

The support staff told me to post my message here for the RME developers:

When my C++ ASIO host is calling ASIOCreateBuffers(), I noticed that the Hammerfall DSP ASIO driver (for my HDPSe AES PCIe card) allocates buffers whose starting memory address is aligned to 16 bytes (the default).

It would be great to have them *aligned to 64 bytes* (the cacheline size) for the following reasons.

  • First, it is backward compatible, as 64-alignment is also a 16-alignment, so ASIO hosts using the16-aligned buffers still work.

  • Second, cache performance improves on small buffers. For example, using 32 samples in the Hammerfall DSP ASIO driver, each channel has a buffer size of 128 bytes. Due to the fact the buffers are 16-aligned, these 128 bytes are hosted in *three* consecutive cachelines, whereas 64-aligned buffers require *two* cachelines. In other words, one third of cacheline loads is automatically saved by ASIO hosts in this way (no change is needed in their code).

  • Third, some specialized AVX2 instructions that require 32-byte alignment could be used, whereas this is not possible now.

In summary, it would be very helpful if you could make this simple change in the next release of the Hammerfall DSP ASIO driver. Performance would have a benefit with no drawbacks (at least I could not see any of them so far).

Thank you
-R

Re: Feature request: memory-aligned buffers for ASIO driver (hdsp32.exe)

+1 if it will increase performance

Re: Feature request: memory-aligned buffers for ASIO driver (hdsp32.exe)

I have been contacted, thanks smile

Re: Feature request: memory-aligned buffers for ASIO driver (hdsp32.exe)

Any details?

Re: Feature request: memory-aligned buffers for ASIO driver (hdsp32.exe)

Yes curious too

Vincent, Amsterdam
https://soundcloud.com/thesecretworld
Babyface pro fs, HDSP9652+ADI-8AE, HDSP9632