[SLL] Sufficiently Solved - 1 in 100,000 - realtime linux

Mathew D. Watson watson at visiongate3d.com
Mon Dec 29 20:33:37 PST 2008


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.

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

Mat


More information about the linux-list mailing list