[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CPU affinity patch for 'nice'

From: Philip Rowlands
Subject: Re: CPU affinity patch for 'nice'
Date: Wed, 22 Sep 2004 14:05:08 +0100 (BST)

On Tue, 21 Sep 2004, Paul Eggert wrote:


>Last but not least, is there prior art for this sort of thing?

Recent RedHats come with the taskset(1) utility in the schedutils
package. Its usage:

taskset version 1.3.0
usage: taskset [options] [mask] [pid | cmd [args...]]
set or get the affinity of a process

  -p, --pid              operate on existing given pid
  -h, --help             display this help
  -v, --version          output version information

$ taskset 03 nice -20 nohup doexec arg0 timeout 30 chroot /var/empty env -i 
(I made up "timeout", although I still plan to write it...)

Sure, an uber-launcher could know about multiple different modifications
to a process's world-view, but I don't think CPU affinity and scheduler
priority fit quite well enough together to share in a common app.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]