Page 1 of 1

How to disable cgroups

Posted: 27 May 2013, 22:04
by dedanna1029
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.

Re: How to disable cgroups

Posted: 27 May 2013, 22:13
by viking60
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.

Re: How to disable cgroups

Posted: 27 May 2013, 23:34
by dedanna1029
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?

Re: How to disable cgroups

Posted: 28 May 2013, 06:27
by viking60
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.....