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

Re: AMD64 X2 questions



* Lennart Sorensen <lsorense@csclub.uwaterloo.ca> [2007-08-23 11:45:11 -0400]:

> On Thu, Aug 23, 2007 at 05:08:49PM +0200, Hans-J. Ullrich wrote:
> > I have an AMD64 dual-core cpu running debian-amd64. Now I have heard, that it 
> > might be possible, to run applications on different cpus. One app is running 
> > on cpu1 , the other on cpu2 at the same time. Or just using only one of the 
> > two cpu-cores. Is that right ???
> > 
> > (I know, that in M$-Windows this is possible.)
> > 
> > I always thought, the kernel is scheduling the processes without the 
> > possibility to change this by users. If I am wrong, how can I manage it ?
> 
> I imagine it is possible to lock a task to a specific CPU although
> unless you are running some server with a very specialized task, you
> probably don't have any good reason to.  The scheduler does a great job
> in general at trying to run all your programs as quickly as possible.

"man -k affinity" shows a list of related options and commands.

It looks like taskset is what you want.

Haven't tried it myself.

Chris

-- 
Tux rox!



Reply to: