* Timing 250 versus 1000
@ 2012-04-08 9:52 Alex Stone
2012-04-08 13:08 ` Clemens Ladisch
0 siblings, 1 reply; 4+ messages in thread
From: Alex Stone @ 2012-04-08 9:52 UTC (permalink / raw)
To: linux-kernel
No doubt i'm likely to get hammered for asking this on a technical ML,
but i'm brave enough and interested enough to risk it.
Is there an important reason why timing in the kernel is set to 250 by
default?
I'm using linux to write music with. With the addition of many of the RT
patches in the standard kernel, recording audio at low latencies with a
standard kernel is no longer a problem, but for those of us who write a
lot of midi driven work, we're still more or less required to use some
sort of RT kernel to get any degree of playback timing accuracy.
I appreciate my use case is just one among many, but i've done a lot of
research on the interlink, and unless i'm missing something really
simple here, i can't find a reason why the default timer can't be set at
1000, and be done with it.
I appreciate you chaps are busy, and elbow deep in code, just a "yes it
could" or "no we won't" would suffice.
Thanks,
Alex.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Timing 250 versus 1000
2012-04-08 9:52 Timing 250 versus 1000 Alex Stone
@ 2012-04-08 13:08 ` Clemens Ladisch
[not found] ` <4F81CE0A.6080207@yandex.ru>
0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2012-04-08 13:08 UTC (permalink / raw)
To: Alex Stone; +Cc: linux-kernel
Alex Stone wrote:
> Is there an important reason why timing in the kernel is set to 250 by default?
It's a compromise. Read kernel/Kconfig.hz.
> those of us who write a lot of midi driven work, we're still more or
> less required to use some sort of RT kernel to get any degree of
> playback timing accuracy.
The ALSA sequencer timer stopped using the system timer years ago.
And the difference between RT and 'normal' kernels is not the timer
frequency.
Regards,
Clemens
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Timing 250 versus 1000
[not found] ` <4F81CE0A.6080207@yandex.ru>
@ 2012-04-10 10:04 ` Clemens Ladisch
2012-04-10 15:39 ` Alex Stone
0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2012-04-10 10:04 UTC (permalink / raw)
To: Alex Stone; +Cc: linux-kernel
Alex Stone wrote:
> On 04/08/2012 05:08 PM, Clemens Ladisch wrote:
>> Alex Stone wrote:
>>> those of us who write a lot of midi driven work, we're still more or
>>> less required to use some sort of RT kernel to get any degree of
>>> playback timing accuracy.
>>
>> The ALSA sequencer timer stopped using the system timer years ago.
>> And the difference between RT and 'normal' kernels is not the timer
>> frequency.
>
> I'm using jack with seq, so are you saying the ALSA sequencer timer is
> using a higher timer rate than than is set in the kernel,
It's using different timers (RTC or hrtimer), which support higher
precision.
> and there's no need for me to bother with this,
Yes. If you want to be sure, check that G3 appears in /proc/asound/timers
when you're using the sequencer.
Regards,
Clemens
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Timing 250 versus 1000
2012-04-10 10:04 ` Clemens Ladisch
@ 2012-04-10 15:39 ` Alex Stone
0 siblings, 0 replies; 4+ messages in thread
From: Alex Stone @ 2012-04-10 15:39 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: linux-kernel
On 04/10/2012 02:04 PM, Clemens Ladisch wrote:
> Alex Stone wrote:
>> On 04/08/2012 05:08 PM, Clemens Ladisch wrote:
>>> Alex Stone wrote:
>>>> those of us who write a lot of midi driven work, we're still more or
>>>> less required to use some sort of RT kernel to get any degree of
>>>> playback timing accuracy.
>>> The ALSA sequencer timer stopped using the system timer years ago.
>>> And the difference between RT and 'normal' kernels is not the timer
>>> frequency.
>> I'm using jack with seq, so are you saying the ALSA sequencer timer is
>> using a higher timer rate than than is set in the kernel,
> It's using different timers (RTC or hrtimer), which support higher
> precision.
>
>> and there's no need for me to bother with this,
> Yes. If you want to be sure, check that G3 appears in /proc/asound/timers
> when you're using the sequencer.
>
>
> Regards,
> Clemens
It does.
Thanks for the info.
Regards,
Alex.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-10 15:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-08 9:52 Timing 250 versus 1000 Alex Stone
2012-04-08 13:08 ` Clemens Ladisch
[not found] ` <4F81CE0A.6080207@yandex.ru>
2012-04-10 10:04 ` Clemens Ladisch
2012-04-10 15:39 ` Alex Stone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox