Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: making something happen in real time

by Zaxo (Archbishop)
on Nov 06, 2005 at 19:03 UTC ( [id://506137]=note: print w/replies, xml ) Need Help??


in reply to making something happen in real time

It's obviously crazy to have xscreensaver walking on any unattended processes. Not a kluge (it's what nice is for), modify the xscreensaver startup command to run niced +19.

A few years ago there was a lot of work on improving linux scheduling for real-time applications (google real time linux), but I don't know the state of those projects these days. They were also motivated by music and video applications for the most part.

After Compline,
Zaxo

  • Comment on Re: making something happen in real time

Replies are listed 'Best First'.
Re^2: making something happen in real time
by bcrowell2 (Friar) on Nov 06, 2005 at 19:11 UTC
    Hmm, good point, but xscreensaver runs at nice +10 by default. I think it's more of a problem with latency. My script spends 99% of its time asleep, so while it's sleeping the scheduler says, "OK, nobody's using any cpu. Even though xscreensaver is running at nice +10, we'll give it a chunk of cpu, because nobody else wants any." Then when my higher-priority process pops back up and demands some cpu time, there's a few hundred milliseconds of latency before its request is granted.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://506137]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found