[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CPU Control
- To: Shachar Shemesh <linuxil(at-nospam)consumer.org.il>
- Subject: Re: CPU Control
- From: Official Flamer/Cabal NON-Leader <marc(at-nospam)bard.org.il>
- Date: Thu, 29 Nov 2001 21:27:45 +0200
- Cc: avi_kosk(at-nospam)netvision.net.il, linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <3C060989.5020400@consumer.org.il>
- References: <001d01c17886$1f2d5560$730a0a0a@koski> <3C060989.5020400@consumer.org.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Mutt/1.3.23i
On Thu, Nov 29, 2001 at 12:10:17PM +0200, Shachar Shemesh wrote:
> avi_kosk@netvision.net.il wrote:
>
> >In a box with 2 CPUs, I am using RedHat kernel 2.4.7.
> >1) Is it possible to enable/disable, by software means, a specific CPU
> >(cpu 0 | cpu 1) ?
> >
> >2) While both CPUs are enabled, can we enforce a program to run ONLY
> >on a specific CPU ?
As far as I know, 1 is NO.
The short answer to 2 is also no. The slighty longer one is that, to the
best of my knowledge, CPU affinity is not in the kernel but I remember
Jseeing references to building it, somewhere.
It should be possible to bolt something very crude onto the current
scheduler, but it is not a trivial effort to do it properly...
> You can do it on sparc......
A. Not under Linux
B. Not under Solaris, either, does this _disable_ the other CPU's
C. Still no processor affinity
> Why do you want to do this anyway?
2 somewhat improves performance.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il