Ubuntu cgroup architecture: cgroup-lite vs cgroup-bin and default config for lxc, libvirt-bin?
It seems that (at least in Ubuntu 12.04 Precise), the cgroup-lite package is used to provide some cgroup capabilities for packages like libvirt-bin and lxc. It sets up a number of cgroups in /sys/fs/cgroup for example.
I was reading the very nice documentation on cgroups for redhat and I wanted to use some of the other cgroup commands that are only in cgroup-bin. But when I installed that, /sys/fs/cgroup became empty, presumably because the cgroup-lite package was uninstalled since it conflicts with cgroup-bin.
What am I missing after having done this? Is there a way to get the same default set of cgroups that cgroup-lite sets up? Is there any documentation for the cgroup definition that cgroup-lite provides?
The lxc documentation in the server guide talks a bit about cgroup-lite, but seems to assume that cgroup-lite will be installed, which won't be true if either recommended packages are skipped, or the alt]ernative, cgroup-bin, is installed.
lxc cgroup
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
It seems that (at least in Ubuntu 12.04 Precise), the cgroup-lite package is used to provide some cgroup capabilities for packages like libvirt-bin and lxc. It sets up a number of cgroups in /sys/fs/cgroup for example.
I was reading the very nice documentation on cgroups for redhat and I wanted to use some of the other cgroup commands that are only in cgroup-bin. But when I installed that, /sys/fs/cgroup became empty, presumably because the cgroup-lite package was uninstalled since it conflicts with cgroup-bin.
What am I missing after having done this? Is there a way to get the same default set of cgroups that cgroup-lite sets up? Is there any documentation for the cgroup definition that cgroup-lite provides?
The lxc documentation in the server guide talks a bit about cgroup-lite, but seems to assume that cgroup-lite will be installed, which won't be true if either recommended packages are skipped, or the alt]ernative, cgroup-bin, is installed.
lxc cgroup
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
I've seen some bugs that may be related, such as lxc-start: failed to spawn
– nealmcb
Dec 28 '13 at 21:30
add a comment |
It seems that (at least in Ubuntu 12.04 Precise), the cgroup-lite package is used to provide some cgroup capabilities for packages like libvirt-bin and lxc. It sets up a number of cgroups in /sys/fs/cgroup for example.
I was reading the very nice documentation on cgroups for redhat and I wanted to use some of the other cgroup commands that are only in cgroup-bin. But when I installed that, /sys/fs/cgroup became empty, presumably because the cgroup-lite package was uninstalled since it conflicts with cgroup-bin.
What am I missing after having done this? Is there a way to get the same default set of cgroups that cgroup-lite sets up? Is there any documentation for the cgroup definition that cgroup-lite provides?
The lxc documentation in the server guide talks a bit about cgroup-lite, but seems to assume that cgroup-lite will be installed, which won't be true if either recommended packages are skipped, or the alt]ernative, cgroup-bin, is installed.
lxc cgroup
It seems that (at least in Ubuntu 12.04 Precise), the cgroup-lite package is used to provide some cgroup capabilities for packages like libvirt-bin and lxc. It sets up a number of cgroups in /sys/fs/cgroup for example.
I was reading the very nice documentation on cgroups for redhat and I wanted to use some of the other cgroup commands that are only in cgroup-bin. But when I installed that, /sys/fs/cgroup became empty, presumably because the cgroup-lite package was uninstalled since it conflicts with cgroup-bin.
What am I missing after having done this? Is there a way to get the same default set of cgroups that cgroup-lite sets up? Is there any documentation for the cgroup definition that cgroup-lite provides?
The lxc documentation in the server guide talks a bit about cgroup-lite, but seems to assume that cgroup-lite will be installed, which won't be true if either recommended packages are skipped, or the alt]ernative, cgroup-bin, is installed.
lxc cgroup
lxc cgroup
edited May 19 '14 at 0:58
nealmcb
asked Dec 28 '13 at 21:18
nealmcbnealmcb
2,0292444
2,0292444
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
I've seen some bugs that may be related, such as lxc-start: failed to spawn
– nealmcb
Dec 28 '13 at 21:30
add a comment |
I've seen some bugs that may be related, such as lxc-start: failed to spawn
– nealmcb
Dec 28 '13 at 21:30
I've seen some bugs that may be related, such as lxc-start: failed to spawn
– nealmcb
Dec 28 '13 at 21:30
I've seen some bugs that may be related, such as lxc-start: failed to spawn
– nealmcb
Dec 28 '13 at 21:30
add a comment |
1 Answer
1
active
oldest
votes
You can get the same cgroup management files just by adding the /cgroup
mount to your fstab:
cgroup /cgroup cgroup defaults 0 0
The files end up in a slightly different location. With cgroup-lite
, you will end up with paths like /sys/fs/cgroup/cpu/cpu.shares
, whereas with the fstab method you'll get /cgroup/cpu.shares
.
The cgroup-lite
package itself is just providing an init script to mount those control directories if they don't yet exist via fstab or some other means.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f396973%2fubuntu-cgroup-architecture-cgroup-lite-vs-cgroup-bin-and-default-config-for-lxc%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can get the same cgroup management files just by adding the /cgroup
mount to your fstab:
cgroup /cgroup cgroup defaults 0 0
The files end up in a slightly different location. With cgroup-lite
, you will end up with paths like /sys/fs/cgroup/cpu/cpu.shares
, whereas with the fstab method you'll get /cgroup/cpu.shares
.
The cgroup-lite
package itself is just providing an init script to mount those control directories if they don't yet exist via fstab or some other means.
add a comment |
You can get the same cgroup management files just by adding the /cgroup
mount to your fstab:
cgroup /cgroup cgroup defaults 0 0
The files end up in a slightly different location. With cgroup-lite
, you will end up with paths like /sys/fs/cgroup/cpu/cpu.shares
, whereas with the fstab method you'll get /cgroup/cpu.shares
.
The cgroup-lite
package itself is just providing an init script to mount those control directories if they don't yet exist via fstab or some other means.
add a comment |
You can get the same cgroup management files just by adding the /cgroup
mount to your fstab:
cgroup /cgroup cgroup defaults 0 0
The files end up in a slightly different location. With cgroup-lite
, you will end up with paths like /sys/fs/cgroup/cpu/cpu.shares
, whereas with the fstab method you'll get /cgroup/cpu.shares
.
The cgroup-lite
package itself is just providing an init script to mount those control directories if they don't yet exist via fstab or some other means.
You can get the same cgroup management files just by adding the /cgroup
mount to your fstab:
cgroup /cgroup cgroup defaults 0 0
The files end up in a slightly different location. With cgroup-lite
, you will end up with paths like /sys/fs/cgroup/cpu/cpu.shares
, whereas with the fstab method you'll get /cgroup/cpu.shares
.
The cgroup-lite
package itself is just providing an init script to mount those control directories if they don't yet exist via fstab or some other means.
answered May 16 '14 at 20:30
HorsePunchKidHorsePunchKid
1734
1734
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f396973%2fubuntu-cgroup-architecture-cgroup-lite-vs-cgroup-bin-and-default-config-for-lxc%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I've seen some bugs that may be related, such as lxc-start: failed to spawn
– nealmcb
Dec 28 '13 at 21:30