You are not logged in.

#1 2017-10-01 03:58:33

cauna
Member
Registered: 2016-01-25
Posts: 3

cgroup2 crashes

Hi there, my kernel is 4.13.3-1. After the update, I've experienced random crashes after running my laptop for about 20 minuets. Before it shuts down itself, this message "cgroup2 unknown option" will show up. I'm a newbie and have no idea how to solve it. Seeking out for help. Much thanks!

p.s. I've posted under Kernel & Hardware but I'm not sure whether it is the right place or not...

Offline

#2 2017-10-01 08:23:03

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: cgroup2 crashes

Check the journal for the last boot:

journalctl -b-1

Offline

#3 2017-10-01 16:36:01

cauna
Member
Registered: 2016-01-25
Posts: 3

Re: cgroup2 crashes

I've printed the result out. It's long. What should I looking for? Much thanks!

Offline

#4 2017-10-01 16:50:33

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: cgroup2 crashes

If you boot with the Kernel_parameter systemd.legacy_systemd_cgroup_controller and shutdown does the cgroup2 message still appear?
Edit:
https://github.com/torvalds/linux/blame … up.c#L1704

Last edited by loqs (2017-10-01 17:02:50)

Offline

#5 2017-10-01 17:09:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: cgroup2 crashes

I doubt that that's the cause of the crashes, look for messages similar to these: https://bbs.archlinux.org/viewtopic.php?id=230362 and try the proposed solution if you see stuff like that. Alternatively post the output here, in [ code ] tags.

Offline

#6 2017-10-01 17:13:28

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: cgroup2 crashes

@V1del agreed I suspect the cgroup2 message is just 4.13's version of https://bbs.archlinux.org/viewtopic.php?id=227974 just wanted to eliminate it as a possibility.

Offline

#7 2017-10-03 15:53:24

armansansd
Member
Registered: 2017-10-03
Posts: 6

Re: cgroup2 crashes

Hello !
I'm havingthe same message, but only when I shutdown my computer then it freeze and never shutdown.
I'd would like to apply Loqs solution,
also found here :
https://bbs.archlinux.org/viewtopic.php?id=227953

but I don't know if I'm doing it right.

I edited : 

/boot/loader/entries/arch.conf 

and added

systemd.legacy_systemd_cgroup_controller=true 

, at the end of the file.

But I feel like I'm doing something wrong...

Offline

#8 2017-10-03 16:09:10

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: cgroup2 crashes

Welcome to the arch linux forums armansansd.  As per Kernel_parameters#systemd-boot

options foo bar

becomes

options foo bar systemd.legacy_systemd_cgroup_controller

To check

$ cat /proc/cmdline
.....foo bar systemd.legacy_systemd_cgroup_controller
$ mount | grep cgroup2

There should be no output from the second command and the cgroup2 unknown option should not appear on shutdown.

Offline

#9 2017-10-04 11:49:05

armansansd
Member
Registered: 2017-10-03
Posts: 6

Re: cgroup2 crashes

Thanks a lot Loqs !
Actually it seems that my trouble come from the kernel since my last update, I'm going to look on the forum for clues, otherwise I will creat a post about it/

Offline

#10 2017-10-07 13:09:00

Jormsen
Member
Registered: 2015-02-05
Posts: 4

Re: cgroup2 crashes

armansansd wrote:

I'm havingthe same message, but only when I shutdown my computer then it freeze and never shutdown.

I had the same problem, the testing kernel works fine again, so just wait for the next kernel update or switch to testing.
just be careful to add testing after the stable repos an update by pacman -Syy and then pacman -Su testing/linux
This way you wont switch other packages to testing

Last edited by Jormsen (2017-10-07 13:16:35)

Offline

#11 2017-10-07 16:01:11

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: cgroup2 crashes

@armansansd see https://bbs.archlinux.org/viewtopic.php?id=230362 as noted by V1del in post #5 as noted by Jormsen just waiting for linux 4.13.5-1 should also resolve the issue as intel_iommu has been set to off by default again in that version.
The topic title is unrelated to the cause of the issue see post #6 and https://bugs.archlinux.org/task/55826#comment161757

Offline

#12 2017-10-08 18:22:25

armansansd
Member
Registered: 2017-10-03
Posts: 6

Re: cgroup2 crashes

@loqs once again thank you !
It was indeed the intel_iommu setting.

I learn a lot about my system thanks to all this trouble / topics.

cheers !

Offline

Board footer

Powered by FluxBB