Hello, i am running CentOS 5.4. i have a requirement where i need to have 1 application have a single processor all to its self, and the rest of the system run on the other processors. "taskman" lets me bind the process to a processor(s), but it does not make it exclusive. Is this possible to do? i have even tried mucking around with the rc.sysinit, but to no avail. thank you very much, -=- adam grossman
On Wed, Feb 17, 2010 at 2:07 PM, Adam Grossman <adam.grossman at devitron.com>wrote:> Hello, > > i am running CentOS 5.4. i have a requirement where i need to have 1 > application have a single processor all to its self, and the rest of the > system run on the other processors. "taskman" lets me bind the process > to a processor(s), but it does not make it exclusive. Is this possible > to do? i have even tried mucking around with the rc.sysinit, but to no > avail. >I assume you taskset, isn't it? If affinity is inherited, does setting affinity for init process to a fixed set of processors make sense? -- Eduardo Grosclaude Universidad Nacional del Comahue Neuquen, Argentina -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100217/11add9cf/attachment.html>
Adam Grossman sent a missive on?2010-02-17:> Hello, > > i am running CentOS 5.4. i have a requirement where i need to have 1 > application have a single processor all to its self, and the rest of the > system run on the other processors. "taskman" lets me bind the process > to a processor(s), but it does not make it exclusive. Is this possible > to do? i have even tried mucking around with the rc.sysinit, but to no > avail. > > thank you very much,Have you considered running through the pids of the all tasks and then using taskset to change their affinities. You could also change all the init scripts to invoke the process using something like "taskset -p [mask] [pid]" and limit the mask to only the first few CPU's that you want them to have access to.
i tried using taskset to set pid 1 and the pid of $$ to the processors i wanted, but that did not work. On Wed, 2010-02-17 at 15:13 -0300, Eduardo Grosclaude wrote:> > > On Wed, Feb 17, 2010 at 2:07 PM, Adam Grossman > <adam.grossman at devitron.com> wrote: > Hello, > > i am running CentOS 5.4. i have a requirement where i need to > have 1 > application have a single processor all to its self, and the > rest of the > system run on the other processors. "taskman" lets me bind > the process > to a processor(s), but it does not make it exclusive. Is > this possible > to do? i have even tried mucking around with the rc.sysinit, > but to no > avail. > > I assume you taskset, isn't it? > If affinity is inherited, does setting affinity for init process to a > fixed set of processors make sense? > > -- > Eduardo Grosclaude > Universidad Nacional del Comahue > Neuquen, Argentina > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos