Hi Zynthianers and happy new year!
I was working on recording a sound to close my previous topic when I got into troubles. After 1 min of recording, the sound was becoming very bad like missing a lot of samples and also not all the record was taken in account. I have investigated a bit what was going on and found a solution that seems nice to integrate in the system.
To record, I saw that a shell script is the wrapper:
jack_capture.sh
So I launched it manually from the shell and discover that after som time I was having what is called overruns in the jack_capture binary project.
I did some speed test on my external USB drive with dd tool (which is USB 3, connected to a USB 3 port from the Raspberry 4). I was getting 400 kbps of write speed… After digging a bit on raspberry forums, I found this article that gave me the solution:
Basically I had to remove the sync option in /etc/usbmount/usbmount.conf. After this I got 24 MBps write speed and no more overrun problems with jack_capture tool.
@jofemodo, something already known / discussed? I use the latest stable build ISO with all zynthian soft up to date.
As I saw in the shell script there is a sync command at the end so no worry about data losses, I might think that reduced read write accesses and linux RAM buffering gave me a good result.