Generic answer... until you provide more information.
You may want to use the CPU isolation tool of choice for your distribution. Also, cgroups may be relevant, depending on what you specifically trying to accomplish.
difference between taskset and cpuset
Edit:
You're looking for a CPU shield. On EL6, you may want to read up on cgroups and the cgred
daemon and cgconfig
package.
For instance:
/etc/cgconfig.conf:
mount {
cpuset = /cgroup/cpuset;
cpu = /cgroup/cpu;
cpuacct = /cgroup/cpuacct;
memory = /cgroup/memory;
devices = /cgroup/devices;
freezer = /cgroup/freezer;
net_cls = /cgroup/net_cls;
blkio = /cgroup/blkio;
}
group ppro-users {
cpuset {
cpuset.mems="0-1";
cpuset.cpus="2-7,14-19";
}
cpu {
cpu.shares = 1000;
}
memory {
memory.limit_in_bytes = 40960m;
}
}
The snippet above limits processes in the "ppro-users" cgroup to certain CPUs. I augment that by using the cgred package to identify and manage processes that should belong to that cgroup.
/etc/cgrules.conf
# Example:
#<user> <controllers> <destination>
#@student cpu,memory usergroup/student/
#peter cpu test1/
#% memory test2/
admin cpu,cpuset,memory ppro-users/
@ppro:dbc cpu,cpuset,memory ppro-users/
isolcpus
boot parameter works fine.