From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: Adam Tla/lka <atlka@pg.gda.pl>
Cc: Alsa-devel@lists.sourceforge.net
Subject: Re: Re: The obsolence of OSS, Was: big smiley
Date: Wed, 25 Feb 2004 15:20:19 +0000 [thread overview]
Message-ID: <403CBD33.9060302@superbug.demon.co.uk> (raw)
In-Reply-To: <20040225145020.GI8820@sunrise.pg.gda.pl>
Adam Tla/lka wrote:
>
>>sigh. of course! because the kernel has no idea that your audio
>>application needs to run with real-time priority, and is instead
>>treating all apps as if they are normal interactive programs. if you
>>tell the kernel that your app needs to run with RT priority (there are
>
> So why I think about some api to tell the kernel that some app nedds CPU
> in more deterministic manner. Generally if we could do this by /proc too
> like tunnig ALSA for particular programs it would be good for old
> proprietary programs which we couldn't improve.
> It's not RT but some sheduler modification to treat some programs
> specially.
>
>
>
>>OSS cannot affect this in any way - its a function of the kernel
>>scheduler and not the audio device API.
>
> OK but we could have some kernel RT thread which is doing mixing
> or MIDI emulation.
>
> Regards
The ideal scheduler for realtime apps would be one that has an api that
allows for a call like "schedule me at exactly 10ms intervals+-1ms".
This would cause the scheduler to automatically juggle the other
processes around so that at the exact time of the 10ms interval, our
process gets CPU time. We would have to also configure +-ms so that the
scheduler has some leaway to allow for some optimisations.
This api should be flexible enough to allow us to do the same, but using
the sound card's hardware clock as the trigger.
The same again for the video card's clock/frame interrupt.
The current schedular gives every process X microseconds of CPU time or
less (process calls nano_sleep() )
We should be able to get the schedular to give a process less CPU time
if the next process to schedule is the realtime interval process.
Cheers
James
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
next prev parent reply other threads:[~2004-02-25 15:20 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-24 14:47 big smile Jaroslav Kysela
2004-02-24 15:19 ` Peter Antypas
2004-02-24 15:21 ` James Courtier-Dutton
2004-02-24 15:28 ` Jaroslav Kysela
2004-02-24 15:58 ` James Courtier-Dutton
2004-02-24 16:43 ` Giuliano Pochini
2004-02-24 16:08 ` Mihai T. Lazarescu
2004-02-24 21:54 ` The obsolence of OSS, Was: " Benno Senoner
2004-02-25 11:20 ` Adam Tla/lka
2004-02-25 11:40 ` Jan Depner
2004-02-25 11:53 ` Takashi Iwai
2004-02-25 13:20 ` Adam Tla/lka
2004-02-25 17:48 ` Jussi Laako
2004-02-25 18:41 ` Paul Davis
2004-02-25 12:27 ` Måns Rullgård
2004-02-25 18:58 ` Dan Hollis
2004-02-25 13:09 ` Jaroslav Kysela
2004-02-25 13:37 ` Adam Tla/lka
2004-02-25 14:17 ` Paul Davis
2004-02-25 14:50 ` Re: The obsolence of OSS, Was: big smiley Adam Tla/lka
2004-02-25 15:12 ` Takashi Iwai
2004-02-25 15:12 ` Paul Davis
2004-02-25 15:20 ` James Courtier-Dutton [this message]
2004-02-25 15:37 ` Paul Davis
2004-02-25 16:03 ` James Courtier-Dutton
2004-02-25 16:10 ` Paul Davis
2004-02-25 16:12 ` Paul Davis
2004-02-25 13:42 ` Re: The obsolence of OSS, Was: big smile James Courtier-Dutton
2004-02-25 14:03 ` Giuliano Pochini
2004-02-25 17:45 ` Jussi Laako
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=403CBD33.9060302@superbug.demon.co.uk \
--to=james@superbug.demon.co.uk \
--cc=Alsa-devel@lists.sourceforge.net \
--cc=atlka@pg.gda.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.