Thanks Daniel, but it's not interrupt for that thread/process, the nice value just set higher priority, what I want to do is like stop the current running process in one VM, context swiching to another process in another VM, when this process finishes, switch back to the original VM, of course this preempting VM has higher nice value. Is it possible? <br>
<br>
<div class="gmail_quote">2011/5/3 Daniel Pittman <span dir="ltr"><<a href="mailto:daniel@rimspace.net">daniel@rimspace.net</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">On Tue, May 3, 2011 at 12:58, shule ney <<a href="mailto:neyshule@gmail.com">neyshule@gmail.com</a>> wrote:<br><br>> I was wondering how can I use one VM to interrupt another running VM, is<br>> there any schedular surpport this function, or any control I can use<br>
> to implement it. For OpenVZ, is it possible to achieve this?<br><br></div></div>Not as such, no, but: OpenVZ has a single scheduler across all threads<br>/ processes in all VEs. So, if you imagine the scheduler as working<br>
on a single system with all those tasks the normal rules of process<br>scheduling apply.<br><br>Which means that if you set your higher priority stuff to a high nice<br>level, or real-time priority, it will take precedence over another VE<br>
that runs lower priority stuff.<br><br>Finally, if you assign appropriate CPU shares to the VEs you can<br>ensure that they will get all the time divided appropriately at a high<br>level.<br><br>Regards,<br> Daniel<br><br>
PS: Native Linux doesn't support this either. :)<br><font color="#888888"><br>--<br>⎋ Puppet Labs Developer – <a href="http://puppetlabs.com/" target="_blank">http://puppetlabs.com</a><br>✉ Daniel Pittman <<a href="mailto:daniel@rimspace.net">daniel@rimspace.net</a>><br>
✆ Contact me via gtalk, email, or phone: +1 (503) 893-2285<br>♲ Made with 100 percent post-consumer electrons<br></font>
<div>
<div></div>
<div class="h5"><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openvz.org">Users@openvz.org</a><br><a href="https://openvz.org/mailman/listinfo/users" target="_blank">https://openvz.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>