3 ms·
These things should strive for accuracy and this article is not accurate. The cgroups facility does not control "the number of CPU shares per process." Although
by jeffbee 6y ago
These things should strive for accuracy and this article is not accurate. The cgroups facility does not control "the number of CPU shares per process." Although you can put such a thing into effect with control groups, it's more accurate to say that a control group limits the resources of a set of tasks. Those tasks may be from one or several processes, and it's also the case that a single process can divide its own tasks into several cgroups.
- waynesonfire 6y agoHey webster, whats a task?
- stuff4ben 6y agoWhile I agree that we should strive for accuracy, you're really splitting hairs there. Plus the author puts a disclaimer in there "NOTE: This is a gross simplification and is NOT technically accurate should you be looking to get involved with the underlying cgroup code. The above explanation is meant for clarity of understanding."
- jeffbee 6y agoBut the explanation does not contribute to clarity of understanding. This has nothing to do with hacking on cgroups itself. As a user of cgroups you should know that one group may control multiple processes, and one process may be controlled by multiple groups! There certainly is not a 1:1 correspondence.
- kortilla 6y agoIt’s not an internal detail, it’s fundamental to understanding it from a user perspective.