Started: 23 March 2005, 3:49 UTC
Finished: 23 March 2005, 5:26 UTC

Real-time priority

Yesterday was the first time I've ever used real-time priority for real...

Our old computer died a couple of days previously, and one of the things hanging off it was a scanner. So I moved it to the main server, but encountered the problem that it really doesn't like being slowed down. That didn't matter much on the old computer, because that's the only thing it was doing, but on the server there's all kinds of background (and foreground) things going on; it didn't have a chance.

With (soft) real-time priority, it works.

chrt -r 1 timeout 600 scanimage -d canon_pp ...

By the way, chrt is a Czech word (pronounced [xr̩t]) meaning greyhound, but I assume that's just a coincidence.

The downside is that it's largely CPU-bound; it lets up a bit every second or so, but the computer is largely stopped while a scan is going on. I have no idea how it manages to be CPU-bound, but it is - probably a busy-wait somewhere there shouldn't be one.

Korner group blog abandoned
   
Why Linux?

comment by:
email: (will not be displayed)
6 times 5:


Home
Blog
Random
E-mail
IM


[æ]