[SLL] Sufficiently Solved - 1 in 100,000 - realtime linux
Glenn Stone
technoshaman at liawol.org
Mon Dec 29 20:53:13 PST 2008
On Mon, Dec 29, 2008 at 08:33:37PM -0800, Mathew D. Watson wrote:
> Just thought I'd report that my bad frame rate is down to 1 in 100,000.
> That's running a s a regular user.
>
> With the linux-rt package in ubuntu installed, I wrote a C program to
> set the scheduling policy of my camera program started by a regular
> user. The C program that set the scheduling policy had to be run as
> root, but that is an appropriate use of root privileges. The camera app
> runs with user permissions. Notably, the camera app uses an API from a
> vendor that is unwilling to engineer their API to work well in a
> standard Linux environment.
It's also an appropriate use of the setuid bit, if you've had a security
type eyeball your code... or perhaps better, the sudo command (better
because it gives better accountability as to who's running stuff as
root)...
(Comments here welcome...)
> This is a success due to the efforts of people who made Linux better.
>
> Recipe for success (on desktop ubuntu):
> * install the linx-rt package (google CONFIG_RT_PREMEPT)
> * install manpages-posix-dev
> * Use the scheduling routines: man sched.h
And here you've contributed back to the community a recipe for success, and
thus made Linux better in your own inimitable way.
Very cool.
-- Glenn
More information about the linux-list
mailing list