<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 21, 2015 at 1:13 AM, Nobin Mathew <span dir="ltr">&lt;<a href="mailto:nobin.mathew@gmail.com" target="_blank">nobin.mathew@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><pre>Hi,<br><br></pre><pre>Apologises if I am asking a dump question.<br></pre><pre><br>Is there any support for container(lxc/cgroups) scheduling in linux
scheduler(3.18+). I want to use only unprivileged containers.

Basically I want to give more priority to processes in a
container(basically to app in the container). Can we use RT scheduling?.

one more question is how process scheduling happens inside the
container(lxc/cgroups), is it like for some time(till the next container is
selected), only processes inside container(lxc/cgroups) is scheduled?

Thanks</pre></div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br><br></div><div class="gmail_extra">Hello Robin<br><br></div><div class="gmail_extra">If I understand LXC correctly (and container in broad term), then there is no difference in scheduling context between process started from LXC and process started by exec().<br><br></div><div class="gmail_extra">This is because LXC does OS level virtualization, thus the result is similar like running normal application. The only difference is that LXC is doing name space, PID space etc so they have their own universe.<br><br></div><div class="gmail_extra">A very different experience happen if let&#39;s say you use KVM or Xen. There, hypervisor is the only thing visible in the host user space. Process etc completely live inside the hypervisor.<br><br></div><div class="gmail_extra">Hopefully someone more knowledgeable steps in and give better enlightenment<br></div><div class="gmail_extra"><br clear="all"><br>-- <br><div class="gmail_signature">regards,<br><br>Mulyadi Santosa<br>Freelance Linux trainer and consultant<br><br>blog: <a href="http://the-hydra.blogspot.com">the-hydra.blogspot.com</a><br>training: <a href="http://mulyaditraining.blogspot.com">mulyaditraining.blogspot.com</a></div>
</div></div>