Re: [LAD] discussing HZ (kernel timer frequency) and midi timing

From: Mulyadi Santosa <a_mulyadi@email-addr-hidden>
Date: Sat May 05 2007 - 13:05:49 EEST

Hi Florian....

> seq24 does _not_ use RTC for timing. It uses an approach based on sleep() (in
> some way or the other), so setting the rtc-max-frequency does nothing for
> seq24 performance.

Seems correct. I tried to grab latest seq24 and compiled it. While
testing to find out how it works, I grep-ed the source code and none
indicate it has something to do with RTC programming. However, I will
keep looking and studying the code.

FYI, I tested seq24 using this simple setup:
seq24--> ALSA port --> timidity (as ALSA sequencer client)
> To improve seq24 performance over the vanilla kernel you
> need a kernel with the system timer frequency set back to something like
> 1000Hz (vanilla has 200Hz, which is too unprecise for MIDI timing based on
> sleeping short amounts of time)..
>
That's what I got too. A loop (?) take data array and using *sleep(), it
waits until the right time to deliver the midi messages to related
driver (in this case ALSA).

I found an interesting parameter, that is --stats. Seems like it counts
how long it takes to work on a single MIDI message. Anybody knows more
about this parameter?

NB: Once again, thank you Florian..

regards,

Mulyadi
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev
Received on Sat May 5 16:15:02 2007

This archive was generated by hypermail 2.1.8 : Sat May 05 2007 - 16:15:02 EEST