Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
Server & Storage Systems
This discussion is archived
on Aug 24, 2009 9:35 AM by 807567
How to set process affinity
Aug 24, 2009 9:35 AM
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.
This content has been marked as final.
Show 0 replies