# CPU Affinity / pinning

**URL:** <https://forums.suse.com/t/cpu-affinity-pinning/23416>\
**Category:** SLES Virtualization\
**Created:** [December 17, 2012, 6:51pm UTC](https://forums.suse.com/t/cpu-affinity-pinning/23416 "2012-12-17T18:51:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amginenigma](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@amginenigma](https://forums.suse.com/u/amginenigma)\
**Post date:** [December 17, 2012, 6:51pm UTC](https://forums.suse.com/t/cpu-affinity-pinning/23416/1 "2012-12-17T18:51:03Z")

</div>

I’m wondering if it is possible to set affinity (Pin) a specific CPU (s) within the configuration files of guest (DomU’s) machines. I specifically am looking to prevent junior admins from increasing the number of CPU’s available to guests based upon the ‘they were complaining of slowness’ method vs. actually verifying the load demanded the additional resources (which so far it never has).

I’ve done a bit of research and it appeared that adding 'cpus=“16-31” ’ would ‘pin’ that guest to only those CPU(s) however that argument in the domain file doesn’t appear to be enforced in a SLES 11 SP2 server.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![KEVIN1](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KEVIN1](https://forums.suse.com/u/KEVIN1)\
**Post date:** [December 18, 2012, 6:28pm UTC](https://forums.suse.com/t/cpu-affinity-pinning/23416/2 "2012-12-18T18:28:07Z")

</div>

amginenigma wrote:  
[color=blue]

> am looking to prevent junior admins from increasing the  
> number of CPU’s available to guests[/color]

Here’s a similar post. Have you seen it?  
[http://forums.suse.com/showthread.php?t=2155](http://forums.suse.com/showthread.php?t=2155)

What’s to stop your junior admins from changing whatever you configure?  
Perhaps some education and administrative procedures would be a better  
solution…

–  
Kevin Boyle - Knowledge Partner  
If you find this post helpful and are using the web interface,  
show your appreciation and click on the star below…
