Originally posted by: SystemAdmin
I am new to AIX. hopefully I am using the terminology correctly.
I have a question related to setting the CPU affinity of a process.
I am wondering (a) if it is possible, and (b) how to do it.
some details. A project of mine has an LPAR running AIX 5.3 with 4 CPUs assigned to it. ("lparstat" as well as "topas -C"). During performance testing, I would like to
limit the application server (WebSphere) to only 2 of the 4 CPUs on the LPAR.
I would like to do this "limiting" as part of the script that starts the app server. Yes, I believe that the admin for the box could reconfigure the LPAR to only have access to 2 CPUs, but I am trying to avoid the involvement of the admin.
Can something like this be done on AIX?
This concept is something that is possible in Linux; here is an article I found elsewhere on the IBM site:
Take charge of processor affinity: Knowing a little bit about how the Linux® 2.6 scheduler treats CPU affinity can help you design better userspace applications. Soft affinity means that processes do not frequently migrate between processors, whereas hard affinity means that processes run on processors you specify. This article describes current affinity mechanisms, explains why and how to use hard affinity, and provides sample code showing you how to use the available functionality.
http://www.ibm.com/developerworks/linux/library/l-affinity.html thanks for your time.
-markus