Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Our base system runs on Linux but unfortunately the UI has to be on Windows. Its a long story. But thats the requirement. So our idea was to run Windows in a virtual machine using VirtualBox or Xen. Because of our real-time performance constraints, we want to isolate the virtual machine to a single processor (in case of a multi-processor machine) or a processor core in case of a multi-core processor.

Is something like this possible? Can processor (core) affinity be set on the process running the virtual machine? Is one virtualization platform better than another for this requirement. I am confused with Xen, KVM, VirtualBox, OpenVZ, etc.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

If you run a virtualization system that uses a single process per machine, such as VirtualBox or VMWare Server, you can set the affinity of that process to a particular processor.

This guide shows you how:

http://www.cyberciti.biz/tips/setting-processor-affinity-certain-task-or-process.html

share|improve this answer
    
ah ha! moment here. I was just reading that post. And saw your reply posted at the same time. Thank you. I am about to try it out. –  Cocoro Cara Mar 1 '11 at 21:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.