Cpusets-scripts is a project mainly written in C and SHELL, it's free.
Helper scripts to setup isolation through cpusets