On Thu, Nov 29, 2001 at 12:10:17PM +0200, Shachar Shemesh wrote: > [EMAIL PROTECTED] 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 [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]