GO DIRECTLY TO
My Oracle Support Community
Oracle Technology Network
Server & Storage Systems
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Aug 24, 2009 2:35 AM by 807567
How to set process affinity
Aug 24, 2009 2:35 AM
Currently Being Moderated
Is there a way to set CPU affinity of a newly created process in a way that will be respected by all the LWPs it creates?
Basically I want to able to say: all the LWPs this process creates should run only on this set of CPUs.
processor_bind() isn't flexible enough, it forces an LWP to run only on 1 CPU.
I thought lgrp_affinity_set() would do the trick, but it doesn't seem to be inherited. New LWPs created by the process don't respect the affinity I set.
Processor sets aren't the solution either, because I don't want to exclude other processes from using these CPUs.
Track in Communications