I am reading "Linux Kernel Development" and I don't understand weight value of process. In linux kernel, each process has a nice value, and then mapping nice value to weight.
- I think weight is "the proportion of processor time". it mean process'runtime allocated is: its weight/(total weight of all process)* (processor time). if result of above formula is 10%, but actual the runtime of process lower than 10%, it is priority. Right?
- I'm confused about how cfs check it. Does cfs check periodly (e.g. 1 milisecond) and update runtime of process, compare the proportion of actual runtime/process'runtime allocated with the chosen minimum and run it ? By the way, can you list some function used?