[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: CPU Control FYI
- To: <linux-il(at-nospam)linux.org.il>
- Subject: RE: CPU Control FYI
- From: "Meir Michanie" <meirmichanie(at-nospam)hotmail.com>
- Date: Thu, 20 Dec 2001 22:49:09 +0200
- Delivered-To: linux.org.il-linux-il@linux.org.il
- Importance: Normal
- In-Reply-To: <Pine.GSO.4.33.0111290927550.10668-100000@techunix.technion.ac.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
I founded this, may be could help
/proc/irq
This directory is used to set IRQ to CPU affinity, which allows you to
connect a particular IRQ to only one CPU. Alternatively, you can exclude
a CPU from handling any IRQs.
Each IRQ has its own directory, allowing for each IRQ to be configured
different from any other. The /proc/irq/prof_cpu_mask file is a bitmask
that contains the default values for the smp_affinity file in the IRQ
directory. The values in smp_affinity specify which CPUs handle that
particular IRQ.
More information is available in the
/usr/src/linux-2.4/Documentation/filesystems/proc.txt file.
-----Original Message-----
From: linux-il-bounce@cs.huji.ac.il
[mailto:linux-il-bounce@cs.huji.ac.il] On Behalf Of Orna Agmon
Sent: Thursday, November 29, 2001 9:29 AM
To: avi_kosk@netvision.net.il
Cc: linux-il@linux.org.il
Subject: Re: CPU Control
i know you have the option of choosing to activate just one CPU. it is
inserted as a way out, incase you have problems with activating both.
i dont know if you can pick a specific one, and i never tried it.
Orna.
On Thu, 29 Nov 2001 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
>
=================================================================
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
=================================================================
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