How to disable cgroups

Need help with your Linux distro? All questions are good - not all answers are -but we try

Moderator: jkerr82508

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

How to disable cgroups

Postby dedanna1029 » 27 May 2013, 22:04

I want to completely disable cgroups, tmpfs, and new devices mounting anywhere but /media. I also wouldn't mind getting rid of systemd.

What do I need to do?

Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: How to disable cgroups

Postby viking60 » 27 May 2013, 22:13

Oh boy I would not even dream of going there.
Systemd is getting deeper and deeper integrated into Linux; removing it sounds pretty much like masochism. So the easiest thing would be to go for a distro that does not have it - yet.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: How to disable cgroups

Postby dedanna1029 » 27 May 2013, 23:34

Well, there has to be a way to disable cgroups/tmpfs then. Social crapola we don't need or want. Even if at kernel compile time, for Mageia, I need rid of of it. Look at all this allocation for things I don't need (and it's all very confusing as to why it's happening):

Code: Select all

.:[ [email protected] : 16:33:07 : ~ ]:.
:) df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs           39G   11G   29G  27% /
--->devtmpfs        492M     0  492M   0% /dev
--->tmpfs           499M  604K  498M   1% /dev/shm
--->tmpfs           499M  780K  498M   1% /run
/dev/sda1        39G   11G   29G  27% /
--->tmpfs           499M     0  499M   0% /sys/fs/cgroup
none            499M  442M   57M  89% /tmp
/dev/sda6       193G  118G   75G  62% /home
/dev/sdb1       3.7G  757M  3.0G  21% /run/media/dedanna/3337-3339
.:[ [email protected] : 16:33:10 : ~ ]:.
:)


Whatever happened to simple file systems, with just what we needed? / (root), /swap, a decent-sized /tmp, and then /home, without all this stupid stuff? Is this all the same "thing", or what? It seems to be, anything labelled with "tmpfs" seems to be the exact same allocation? Or am I misunderstanding this? And why isn't / (root) just /? What's this rootfs crap? And what the hell is shm? Do I care? No? Then why's it there? Also, why can't things just auto-mount to /media any more?
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: How to disable cgroups

Postby viking60 » 28 May 2013, 06:27

cgroups is the wizard that optimizes your CPU use. If you want to spend more money on the electricity, you can probably remove it.
You can control both the memory use and the CPU use with cgroups (and that is probably what Mageia is doing).

You need to remove libcgroup to achieve that - but there will probably be a load of dependencies.
And as a result you could end up with a slower less efficient -more energy-demanding system.....
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"


Return to “Help”