[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CPU Control
- To: avi_kosk(at-nospam)netvision.net.il
- Subject: Re: CPU Control
- From: Shachar Shemesh <linuxil(at-nospam)consumer.org.il>
- Date: Thu, 29 Nov 2001 12:10:17 +0200
- CC: linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- References: <001d01c17886$1f2d5560$730a0a0a@koski>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.6) Gecko/20011120
avi_kosk@netvision.net.il wrote:
> Hi,
>
>
>
> In a box with 2 CPUs, I am using RedHat kernel 2.4.7.
>
>
>
> Qustions:
>
>
>
> 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 ?
>
>
>
> Thanks,
>
> Avi Koski
>
You can do it on sparc......
Sorry, couldn't resist.
Actually, what you can do on sparc is similar, but not exactly, what you
were asking. You can select on how many concurent CPUs a multi-threaded
program will run. I don't think you can ask it to return to the same CPU
each time.
Why do you want to do this anyway?
Shachar
=================================================================
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