|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Setting CPU Affinity in MQSeries v7 for Licensing reasons |
« View previous topic :: View next topic » |
Author |
Message
|
jameshartell |
Posted: Thu Aug 25, 2011 2:20 am Post subject: Setting CPU Affinity in MQSeries v7 for Licensing reasons |
|
|
Newbie
Joined: 25 Aug 2011 Posts: 2
|
I have a 4 core CPU on a VMS running Windows Server 2008 and have an MQSeries license to run on just 2 cores so I am looking for the best way to restrict MQSeries.
MQSeries installs a service to run it so I have searched high and low on how to change the CPU affinity of a Windows Service before it starts and have delved through the registry trying all sorts but after my failings and reading of tens of forums I have come to the conclusion that you can only change the CPU affinity of a service after it has started. This can be done through the likes of TaskManager or custom bought software but I don't want to do this.
I have also found and am currently using a bat file in which I can call:
start /affinity 3 C:\..\bin\amqsvc.exe
in which the passed argument 3 means use CPU 1 and 2 (Other options are; 0:Use all, 1:Use 1, 2:Use 2, 3:Use 1&2, 4:Use 3 ...) I can check if the affinity has been set by viewing the process in the task manager and so I can see that this works as well as the application itself so I have put this in the startup folder and disabled the IBM MQSeries Service but I just don't like it.
So the bottom line question is; Is there a way in MQSeries to set the CPU affinity so I can run the IBM MQSeries service as normal with the permanently changed affinity setting? |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Aug 25, 2011 4:26 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The correct thing to do is size the VM to only have two CPUs.
MQ generally doesn't, afaik, deal well with CPU restrictions within the OS.
You also have to be careful that you have managed your license correctly such that it allows you to run a two core OS image on a physical machine that has 4 cores. I think this is improved with the change to Processor Value Units from the old license measure, but you should discuss this with your IBM sales rep. |
|
Back to top |
|
 |
jameshartell |
Posted: Wed Aug 31, 2011 4:20 am Post subject: |
|
|
Newbie
Joined: 25 Aug 2011 Posts: 2
|
Thanks for your comments. We have not found a suitable way to restrict the CPU usage so we have downsized the VM to two cores to fit our licence requirements. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|