nova636
Posts: 2
Joined: Tue Sep 16, 2014 12:46 am

kernel lacks cgroups or memory controller not avaiable, not

Tue Sep 16, 2014 12:50 am

When I first time to initialize my OS, I got following warning:

kernel lacks cgroups or memory controller not avaiable, not starting cgroups......

What does this mean? and why this message comes out?

My:
Hardware: Raspberry Pi B(512M)
OS: RASPBIAN(2014-09-09)

fruitoftheloom
Posts: 21650
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: kernel lacks cgroups or memory controller not avaiable,

Tue Sep 16, 2014 11:08 am

nova636 wrote:When I first time to initialize my OS, I got following warning:

kernel lacks cgroups or memory controller not avaiable, not starting cgroups......

What does this mean? and why this message comes out?

My:
Hardware: Raspberry Pi B(512M)
OS: RASPBIAN(2014-09-09)
I jst ignore the message as it is not important for the average user:

http://www.raspberrypi.org/web-browser-beta

""If you are feeling particularly adventurous, our new kernel supports cgroups which the browser can use to receive notification of impending out of memory (OOM) events, allowing it to preemptively deallocate resources. To enable cgroups, add the following to your kernel command line""
Retired disgracefully.....
......to a more gentile life !

ashwinraj8
Posts: 2
Joined: Fri Sep 19, 2014 7:05 am

Re: kernel lacks cgroups or memory controller not avaiable,

Fri Sep 19, 2014 7:11 am

Try this solution
sudo nano /boot/cmdline.txt

add line : cgroup_enable=memory (before elevator=deadline)

netitux
Posts: 3
Joined: Sun Mar 08, 2015 5:15 pm

Re: kernel lacks cgroups or memory controller not avaiable,

Sun Mar 08, 2015 5:18 pm

That works flawless :D ashwinraj8
Thanks

odano
Posts: 2
Joined: Wed May 20, 2015 10:57 pm

Re: kernel lacks cgroups or memory controller not avaiable,

Wed May 20, 2015 10:59 pm

Indeed... works great... thanks

odano
Posts: 2
Joined: Wed May 20, 2015 10:57 pm

Re: kernel lacks cgroups or memory controller not avaiable,

Wed May 20, 2015 10:59 pm

indeed works great


DB3s
Posts: 5
Joined: Thu Dec 11, 2014 7:32 am

Re: kernel lacks cgroups or memory controller not avaiable,

Tue Jul 28, 2015 10:54 am

Still part of the OP was never answered. What does it mean?

User avatar
PeterO
Posts: 5456
Joined: Sun Jul 22, 2012 4:14 pm

Re: kernel lacks cgroups or memory controller not avaiable,

Tue Jul 28, 2015 11:05 am

Is google nopt working for you ?

http://lmgtfy.com/?q=cgroups

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

mmiller7
Posts: 1
Joined: Sat Aug 08, 2015 8:21 pm

Re: kernel lacks cgroups or memory controller not avaiable,

Sat Aug 08, 2015 8:23 pm

PeterO wrote:Is google nopt working for you ?

http://lmgtfy.com/?q=cgroups

PeterO
This is the most USELESS answer you can post.

I found this thread by googling "cgroups memory" and the answer to "what is it" is NOT to google it, which leads me back to here with the top result.

User avatar
DougieLawson
Posts: 37111
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: kernel lacks cgroups or memory controller not avaiable,

Sat Aug 08, 2015 10:21 pm

mmiller7 wrote:
PeterO wrote:Is google nopt working for you ?

http://lmgtfy.com/?q=cgroups

PeterO
This is the most USELESS answer you can post.
No it isn't. Because the second result on Google is a link to https://www.kernel.org/doc/Documentatio ... groups.txt which is the official documentation for "control groups".
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

TechnicalBoy
Posts: 2
Joined: Thu Nov 13, 2014 9:59 pm

Re: kernel lacks cgroups or memory controller not avaiable,

Mon Aug 24, 2015 9:34 pm

I had this error come up, but with (0,0) at the end after trying the fix here for the boot error:
kernel lacks cgroups or memory controller not available, not starting cgroups......
fix (non essential) was stated to be:
sudo nano /boot/cmdline.txt
add line: cgroup_enable=memory (before elevator=deadline)
info:
viewtopic.php?t=87080

So booted, holding Shift (while using a USB Logitech k360 keyboard), and I could remove the offending line from the cmdline.txt file.
- I'll just live with the cgroups error!

serendipiddy
Posts: 1
Joined: Wed Sep 02, 2015 3:13 am

Re: kernel lacks cgroups or memory controller not avaiable,

Wed Sep 02, 2015 3:22 am

Thanks everyone, that helped..!
DougieLawson wrote:
mmiller7 wrote:
PeterO wrote:Is google nopt working for you ?

http://lmgtfy.com/?q=cgroups

PeterO
This is the most USELESS answer you can post.
No it isn't. Because the second result on Google is a link to https://www.kernel.org/doc/Documentatio ... groups.txt which is the official documentation for "control groups".
That made me smile :P

User avatar
AcornBBCnut
Posts: 14
Joined: Tue Oct 15, 2013 1:22 am

Re: kernel lacks cgroups or memory controller not avaiable,

Wed Sep 16, 2015 7:01 am

mmiller7 wrote:
PeterO wrote:Is google nopt working for you ?

http://lmgtfy.com/?q=cgroups

PeterO
This is the most USELESS answer you can post.

I found this thread by googling "cgroups memory" and the answer to "what is it" is NOT to google it, which leads me back to here with the top result.
Agreed - I know of several tech forums where he would've been banned for such behaviour. For pete's sake, the guy wanted an answer, not a smartass! :evil:

User avatar
AcornBBCnut
Posts: 14
Joined: Tue Oct 15, 2013 1:22 am

Re: kernel lacks cgroups or memory controller not avaiable,

Wed Sep 16, 2015 7:05 am

ashwinraj8 wrote:Try this solution
sudo nano /boot/cmdline.txt

add line : cgroup_enable=memory (before elevator=deadline)
Thank you - good to see there are people whose cranium contains more than the word "Google"!

PS: I use DuckDuckGo :mrgreen:

User avatar
PeterO
Posts: 5456
Joined: Sun Jul 22, 2012 4:14 pm

Re: kernel lacks cgroups or memory controller not avaiable,

Wed Sep 16, 2015 9:13 am

AcornBBCnut wrote: Agreed - I know of several tech forums where he would've been banned for such behaviour. For pete's sake, the guy wanted an answer, not a smartass! :evil:
I would say "Welcome to our forums" but I doubt you'll be here for very long with that attitude !

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
AcornBBCnut
Posts: 14
Joined: Tue Oct 15, 2013 1:22 am

Re: kernel lacks cgroups or memory controller not avaiable,

Sat Sep 19, 2015 2:22 am

Do you mean the attitude that causes me to thank people who have been helpful and call out those who haven't? If so, perhaps you can educate me as to how your attitude would better serve the members here.

User avatar
bobstro
Posts: 193
Joined: Wed Feb 05, 2014 6:48 am
Location: Central Massachusetts, US
Contact: Website

Re: kernel lacks cgroups or memory controller not avaiable,

Sat Sep 19, 2015 3:41 am

AcornBBCnut wrote:Do you mean the attitude that causes me to thank people who have been helpful and call out those who haven't? If so, perhaps you can educate me as to how your attitude would better serve the members here.
The StackExchange RPi group isn't perfect, but you'll get a lot less of the "club" attitude there. Not exactly welcoming (either) but unhelpful answers are down-voted and the emphasis is on helping people with questions, even if they're picky about how questions are asked.

User avatar
PeterO
Posts: 5456
Joined: Sun Jul 22, 2012 4:14 pm

Re: kernel lacks cgroups or memory controller not avaiable,

Sat Sep 19, 2015 6:55 am

AcornBBCnut wrote:Do you mean the attitude that causes me to thank people who have been helpful and call out those who haven't? If so, perhaps you can educate me as to how your attitude would better serve the members here.
Yes, that attitude ! :roll:
13 posts and you think you can dictate how the forum operates ?
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
DougieLawson
Posts: 37111
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: kernel lacks cgroups or memory controller not avaiable,

Sat Sep 19, 2015 7:26 am

PeterO wrote: Yes, that attitude ! :roll:
13 posts and you think you can dictate how the forum operates ?
PeterO
I've got 16,001 posts ahead of that and I'm quite happy to let the moderators dictate how the forum works. If you don't like a post you can always use the "report this post" link.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
PeterO
Posts: 5456
Joined: Sun Jul 22, 2012 4:14 pm

Re: kernel lacks cgroups or memory controller not avaiable,

Sat Sep 19, 2015 4:01 pm

DougieLawson wrote:
PeterO wrote: Yes, that attitude ! :roll:
13 posts and you think you can dictate how the forum operates ?
PeterO
I've got 16,001 posts ahead of that and I'm quite happy to let the moderators dictate how the forum works. If you don't like a post you can always use the "report this post" link.
Congrats on another 1K-day :-) Indeed that is the way it works here, None of that foolish "down voting" :lol:
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

plugwash
Forum Moderator
Forum Moderator
Posts: 3524
Joined: Wed Dec 28, 2011 11:45 pm

Re: kernel lacks cgroups or memory controller not avaiable,

Mon Sep 21, 2015 6:50 pm

MOD HAT ON:

Remember, guys be nice to each other

MOD HAT OFF:

This is partly but not fully answered by https://www.raspberrypi.org/blog/web-browser-beta/ . The raspberry pi foundation's hacked up version of ephiphany can use cgroups. Because of this the raspberry pi foundation added an init script that can do the userland side of memory cgroups setup if it's enabled in the kernel. However they chose not to enable it in the kernel by default hence why you get that warning on bootup. I'm not exactly sure why they chose not to enable in in the kernel by default. The " If you are feeling particularly adventurous" in the post implies they didn't think the feature was ready for widespread use at that time. Also iirc enabling memory cgroups actually slightly reduces total usable memory (because there is a certain ammount reserved for the process managing the cgroups).

User avatar
bobstro
Posts: 193
Joined: Wed Feb 05, 2014 6:48 am
Location: Central Massachusetts, US
Contact: Website

Re: kernel lacks cgroups or memory controller not avaiable,

Mon Sep 21, 2015 7:04 pm

Thanks for the mention of the init script. I thought the message was due to the kernel configuration. If cgroups is not being used, is there any downside to disabling the init script that issues the warning message on boot?

Code: Select all

sudo update-rc.d -f  cgroup-bin remove
The message doesn't cause a problem, but it doesn't add anything and launching an unused init script takes a small but non-zero amount of time. I've done this on a raspbian wheezy install on a RPi B, and it removes the warning message. Looking through the /etc/init.d/cgroup-bin script, disabling it look harmless enough, but I can't claim to have done extensive testing.

User avatar
AcornBBCnut
Posts: 14
Joined: Tue Oct 15, 2013 1:22 am

Re: kernel lacks cgroups or memory controller not avaiable,

Mon Sep 28, 2015 4:16 am

bobstro wrote:
AcornBBCnut wrote:Do you mean the attitude that causes me to thank people who have been helpful and call out those who haven't? If so, perhaps you can educate me as to how your attitude would better serve the members here.
The StackExchange RPi group isn't perfect, but you'll get a lot less of the "club" attitude there. Not exactly welcoming (either) but unhelpful answers are down-voted and the emphasis is on helping people with questions, even if they're picky about how questions are asked.
Thanks for that, Bob.

Originally I joined this board in order to be closer to the people who actually designed the Pi, however, as this board seems to attract more of the bullying type and StackExchange actually seems to be doing something about unhelpful answers, then I guess that's where I'm going.

A little sad to go as I had high hopes for this board, however, if this thread is indicative of the general climate of the board towards those seeking help, then I prefer not to be a part of it. You are right, Bob. I've seen this sort of "club" mentality before and it usually ends up with a very bitter board which turns inward and eventually destroys itself.

Management, if you want to save your board, I suggest you do something to fix it - as for me, I'm outta here.

Please cancel my membership forthwith.

Nemo1966
Posts: 62
Joined: Fri Jan 01, 2016 8:02 pm

Re: kernel lacks cgroups or memory controller not avaiable,

Sun Jan 24, 2016 4:54 pm

I was looking into the cgroup memory line and came across this post. I tried looking at the documention link posted
However that resultsin a http 404 code (page not found)

So:
I also saw a post on tinterweb saying to add line:
cgroup_enable=memory 3
Does anyone know what the 3 does?

thanks

Return to “Raspbian”