[SLL] increasing thread priority

Mathew D. Watson watson at visiongate3d.com
Mon Sep 29 17:17:49 PDT 2008


Thanks!

Starting with nice only lets me reduce the priority, but running renice 
as root lets me increase the priority. It's kind of clunky having to run 
ps to find the process id and then runding renice as root using sudo 
(I'm running ubuntu), but it avoids having to run the process as root.

The frame loss is now at 1% (nice=-20), which is good enough for my 
current application.

Mat

Steve McCarthy wrote:
> See the man page for nice and renice.  Typically you use nice if you are
> starting the app, and renice to adjust the priority of a process that is
> already running.
> 
> 
> On Mon, Sep 29, 2008 at 4:42 PM, Mathew D. Watson
> <watson at visiongate3d.com>wrote:
> 
>> I have a machine vision camera (prosilica ge1650) that drops about 10% of
>> the image frames when the acquisition software is run by me and drops 0%
>> when run as root. Prosilica says this happens because threads in their
>> software compete with other applications when run by a regular user.
>>
>> What is the best way to increase the priority of this application? One way
>> I can think of is set uid root,  but running as root makes me nervous.
>>
>> Mat
>>
>>
> 
> 


More information about the linux-list mailing list