Fwd: Setting CPU affinity for binaries in given directory
- To: firstname.lastname@example.org
- Subject: Fwd: Setting CPU affinity for binaries in given directory
- From: darkestkhan <email@example.com>
- Date: Mon, 6 Jun 2011 22:14:59 +0000
- Message-id: <BANLkTi==i4ZFaPXisaw9hOnLCa-LnejP9g@mail.gmail.com>
- In-reply-to: <BANLkTi=GA+m59SaU7jtn6T7dCRRw4gsPyg@mail.gmail.com>
- References: <BANLkTi=AkMMgMwbsafRuWvtk6YrcsY99KQ@mail.gmail.com> <20110606181522.GC2973@slimer> <BANLkTi=GA+m59SaU7jtn6T7dCRRw4gsPyg@mail.gmail.com>
2011/6/6 William Hopkins <firstname.lastname@example.org>:
> On 06/06/11 at 02:50pm, darkestkhan wrote:
>> Is there any way to specify CPU affinity for binaries
>> launched from given directory (and it's subdirectories) ?
> AFAIK, no. You can set up a process watcher to scan for processes with a certain name and set their affinity, or you can call the processes with a set affinity at start. If you're calling an executable, call it with a processor affinity (which should be inherited by child processes). If it's a script, modify it to call with affinity.
> The command to set affinity on a running process, or launch a new process with given CPU affinity is 'taskset'.
If I set CPU affinity of BOINC manager will also programs launched by
BOINC manager have set CPU affinity?
Feel free to CC me.
May The Source be with You.