l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:10

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] real time in linux
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] real time in linux

On Sat, Sep 29, 2001 at 11:38:59AM -0700, Peter Jay Salzman wrote:
> i came across an article 'low latency in the linux kernel' written for
> o'reilly's website.  here's a quote i find curious:
>   under certain circumstance, it may be possible to run an application
>   in a condition known as setuid root.  as the name implies, this
>   condition sets the user's ID to root status, raising the application's
>   execution to real-time scheduling.
> this is NOT my understanding of setuid root executables.  if this were the
> case, nice-ing a setuid executable would be meaningless since the application
> would get the attention of the kernel whenever it wants attention.

There is a POSIX realtime API that is usable by processes running as root but
it is not realtime in the rigourous, CS sense, which is called hard realtime
to distimguish it from low latency. Lots of people don't get the distinction
between realtime and low-latency (or choose not to in the case of some
marketing depts). Joel explained this better than I can. 

POSIX realtime scheduling allows an app to run at a higher priority than
kernel threads. Nothing more. CDrecord uses this; maybe LAME too. A
preemptable kernel is needed to make this really useful; Linux 2.4 is heading
that direction but is not quite there yet. And no, you don't get POSIX
``realtime'' scheduling merely by setting the suit bit.

Henry House
OpenPGP key available from http://romana.hajhouse.org/hajhouse.asc

Attachment: pgp00022.pgp
Description: PGP signature

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.