Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am just trying to understand the basics of Linux scheduler.

  • Is Linux scheduler a Cap based or weight based scheduler?

I was previously using Xen. Now I am moving from Xen to KVM. I read VMs are normal process and thus will follow the scheduling policies of the linux scheduler. I was previously using Xen's credit scheduler which had the capability to set cap/weight for vms. I am searching for equivalent capability and also basic understanding of the linux scheduler.

I am using Centos 5.6 . Which still uses 2.6.18. I dont think CFS is present in the kernel I am using.

share|improve this question

migrated from stackoverflow.com Jun 25 '11 at 17:03

This question came from our site for professional and enthusiast programmers.

@sethu: I'm interested in this question because I have an upcoming virtual server project that will likely benefit from a little more knowledge about scheduling possibilities and resource allowances; so I will be doing research on this and perhaps can answer at some point. In the mean time it sounds like some of your terminology is mixed up. Are you perhaps mixing up hypervisor settings with kernel scheduler terms? Are you talking about the scheduler in the host kernel, the hypervisor, or the guest kernels? – Caleb Jun 26 '11 at 20:48
up vote 1 down vote accepted

You can find a general description of CFS here. It is not weight/cap based in the sense that it is not based on distributing an execution time quantum among the most fit processes. You might want to read about how nice levels are implemented also, which will make the distinction clear.

share|improve this answer

Your Answer


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.