<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>RE: [WBEL-users] Process CPU Binding</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I don't believe it's possible to bind a process or thread to a specific physical processor (at least an experimental kernel patch).<BR>
Even if you could, I'd be skeptical of any performance benefit.<BR>
<BR>
Is it possible to accomplish what you need by binding an irq to a specific CPU?<BR>
<BR>
I work with many high volume multicast feeds which require me to set the processor affinity of the eth irq to seperate processors.&nbsp;<BR>
The reason for this is that if multiple processors are servicing the interrupts for a device, the packets (udp) could get out of sequence under high loads.<BR>
<BR>
One solution is to disable APIC by booting with the 'noapic' option, but that has negative effects for other aspects of the system.<BR>
I choose to bind the ethernet irqs to physical processors instead.<BR>
<BR>
If that would work for you, I have a script to do this.&nbsp; I'm sure you could modify it to meet your needs:<BR>
<A HREF="ftp://dvdrchive.dtniq.com/scripts/eth_affinity">ftp://dvdrchive.dtniq.com/scripts/eth_affinity</A><BR>
<BR>
<BR>
-----Original Message-----<BR>
From: whitebox-users-bounces@beau.org on behalf of Adam Dixon<BR>
Sent: Thu 8/4/2005 8:15 PM<BR>
To: Whitebox-users@beau.org<BR>
Subject: [WBEL-users] Process CPU Binding<BR>
<BR>
This is probably not a WBEL question, however I am running WBEL on a<BR>
number of servers that run a process of heavy cpu use, where I am told<BR>
that binding it to a particular cpu may provide a performance increase<BR>
due to being no delay in deciding which cpu to process on during it<BR>
running.<BR>
<BR>
So is it possible to bind a process to a particular CPU on an SMP dual<BR>
cpu system (x86). Say lock the process id to cpu0 and then another<BR>
process id to cpu1.<BR>
<BR>
Anyone who can provide information on if this is possible.<BR>
<BR>
Adam<BR>
_______________________________________________<BR>
Whitebox-users mailing list<BR>
Whitebox-users@beau.org<BR>
<A HREF="http://beau.org/mailman/listinfo/whitebox-users">http://beau.org/mailman/listinfo/whitebox-users</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>