Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Raspberry pi 5.x kernel missing memory cgroups
@ 2020-09-04 10:24 adrian-bl
  2020-09-04 10:31 ` ericonr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: adrian-bl @ 2020-09-04 10:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 977 bytes --]

New issue by adrian-bl on void-packages repository

https://github.com/void-linux/void-packages/issues/24657

Description:
### System

* xuname:  
Void 5.4.59_1 armv7l Unknown uptodate rFFFF

* package:  
rpi-kernel-5.4.59_1

### Expected behavior

The 5.4 *rbpi* kernel seems to lack support for memory cgroups: this makes it impossible to run any software which requires `/sys/fs/cgroup/memory` to be present.

This breaks nomad for me, but i suppose that docker would also be affected.

Note that the old 4.19.x kernel supported memory cgroups.

I suppose that adding

```
CONFIG_MEMCG=y
CONFIG_MEMCG_SWAP=y
CONFIG_MEMCG_KMEM=y
```

to the kernel config would be sufficient (this is how the x86_64 kernel is configured).


### Steps to reproduce the behavior

```
$ grep cgroup/memory /proc/mounts | wc -l
0
```

### Expected behavior

```
grep cgroup/memory /proc/mounts
cgroup /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0
```

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Raspberry pi 5.x kernel missing memory cgroups
  2020-09-04 10:24 [ISSUE] Raspberry pi 5.x kernel missing memory cgroups adrian-bl
@ 2020-09-04 10:31 ` ericonr
  2020-09-04 10:38 ` ericonr
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ericonr @ 2020-09-04 10:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/24657#issuecomment-687064690

Comment:
Potentially relevant issue: https://github.com/raspberrypi/linux/issues/3644#issuecomment-664558850

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Raspberry pi 5.x kernel missing memory cgroups
  2020-09-04 10:24 [ISSUE] Raspberry pi 5.x kernel missing memory cgroups adrian-bl
  2020-09-04 10:31 ` ericonr
@ 2020-09-04 10:38 ` ericonr
  2020-09-04 18:58 ` adrian-bl
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ericonr @ 2020-09-04 10:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/24657#issuecomment-687064690

Comment:
Possibly relevant issue: https://github.com/raspberrypi/linux/issues/3644#issuecomment-664558850

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Raspberry pi 5.x kernel missing memory cgroups
  2020-09-04 10:24 [ISSUE] Raspberry pi 5.x kernel missing memory cgroups adrian-bl
  2020-09-04 10:31 ` ericonr
  2020-09-04 10:38 ` ericonr
@ 2020-09-04 18:58 ` adrian-bl
  2020-09-04 18:58 ` [ISSUE] [CLOSED] " adrian-bl
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: adrian-bl @ 2020-09-04 18:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

New comment by adrian-bl on void-packages repository

https://github.com/void-linux/void-packages/issues/24657#issuecomment-687324871

Comment:
Thanks ericonr!

Adding

```
cgroup_memory=1 cgroup_enable=memory
```

to cmdline.txt actually fixes the issue:

```
bash-5.0# uname -a
Linux pimpel 5.4.59_1 #1 SMP Wed Sep 2 20:17:25 UTC 2020 armv7l GNU/Linux
bash-5.0# mount|grep mem
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
```

So looks like void is not at fault here and that the kernel defaults just changed (for machines with 'low' amounts of RAM)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ISSUE] [CLOSED] Raspberry pi 5.x kernel missing memory cgroups
  2020-09-04 10:24 [ISSUE] Raspberry pi 5.x kernel missing memory cgroups adrian-bl
                   ` (2 preceding siblings ...)
  2020-09-04 18:58 ` adrian-bl
@ 2020-09-04 18:58 ` adrian-bl
  2020-09-04 19:01 ` ericonr
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: adrian-bl @ 2020-09-04 18:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 980 bytes --]

Closed issue by adrian-bl on void-packages repository

https://github.com/void-linux/void-packages/issues/24657

Description:
### System

* xuname:  
Void 5.4.59_1 armv7l Unknown uptodate rFFFF

* package:  
rpi-kernel-5.4.59_1

### Expected behavior

The 5.4 *rbpi* kernel seems to lack support for memory cgroups: this makes it impossible to run any software which requires `/sys/fs/cgroup/memory` to be present.

This breaks nomad for me, but i suppose that docker would also be affected.

Note that the old 4.19.x kernel supported memory cgroups.

I suppose that adding

```
CONFIG_MEMCG=y
CONFIG_MEMCG_SWAP=y
CONFIG_MEMCG_KMEM=y
```

to the kernel config would be sufficient (this is how the x86_64 kernel is configured).


### Steps to reproduce the behavior

```
$ grep cgroup/memory /proc/mounts | wc -l
0
```

### Expected behavior

```
grep cgroup/memory /proc/mounts
cgroup /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0
```

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Raspberry pi 5.x kernel missing memory cgroups
  2020-09-04 10:24 [ISSUE] Raspberry pi 5.x kernel missing memory cgroups adrian-bl
                   ` (3 preceding siblings ...)
  2020-09-04 18:58 ` [ISSUE] [CLOSED] " adrian-bl
@ 2020-09-04 19:01 ` ericonr
  2020-09-04 19:08 ` adrian-bl
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ericonr @ 2020-09-04 19:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/24657#issuecomment-687326070

Comment:
@adrian-bl this looks like a short enough instruction. Would you like to add it to void-docs?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Raspberry pi 5.x kernel missing memory cgroups
  2020-09-04 10:24 [ISSUE] Raspberry pi 5.x kernel missing memory cgroups adrian-bl
                   ` (4 preceding siblings ...)
  2020-09-04 19:01 ` ericonr
@ 2020-09-04 19:08 ` adrian-bl
  2020-09-04 19:41 ` ericonr
  2020-09-05  7:38 ` adrian-bl
  7 siblings, 0 replies; 9+ messages in thread
From: adrian-bl @ 2020-09-04 19:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

New comment by adrian-bl on void-packages repository

https://github.com/void-linux/void-packages/issues/24657#issuecomment-687329651

Comment:
Sounds good to me:

Would
https://docs.voidlinux.org/installation/guides/arm-devices/index.html

be the right page to add the instructions to?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Raspberry pi 5.x kernel missing memory cgroups
  2020-09-04 10:24 [ISSUE] Raspberry pi 5.x kernel missing memory cgroups adrian-bl
                   ` (5 preceding siblings ...)
  2020-09-04 19:08 ` adrian-bl
@ 2020-09-04 19:41 ` ericonr
  2020-09-05  7:38 ` adrian-bl
  7 siblings, 0 replies; 9+ messages in thread
From: ericonr @ 2020-09-04 19:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 187 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/24657#issuecomment-687344800

Comment:
Preferrably in the platforms page, actually!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Raspberry pi 5.x kernel missing memory cgroups
  2020-09-04 10:24 [ISSUE] Raspberry pi 5.x kernel missing memory cgroups adrian-bl
                   ` (6 preceding siblings ...)
  2020-09-04 19:41 ` ericonr
@ 2020-09-05  7:38 ` adrian-bl
  7 siblings, 0 replies; 9+ messages in thread
From: adrian-bl @ 2020-09-05  7:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 410 bytes --]

New comment by adrian-bl on void-packages repository

https://github.com/void-linux/void-packages/issues/24657#issuecomment-687566964

Comment:
I've created https://github.com/void-linux/void-docs/pull/504

Turns out that this is actually due to a custom change to the rbpi kernel:
https://github.com/raspberrypi/linux/commit/9b0efcc1ec497b2985c6aaa60cd97f0d2d96d203#diff-f1d702fa7c504a2b38b30ce6bb098744


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-09-05  7:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-04 10:24 [ISSUE] Raspberry pi 5.x kernel missing memory cgroups adrian-bl
2020-09-04 10:31 ` ericonr
2020-09-04 10:38 ` ericonr
2020-09-04 18:58 ` adrian-bl
2020-09-04 18:58 ` [ISSUE] [CLOSED] " adrian-bl
2020-09-04 19:01 ` ericonr
2020-09-04 19:08 ` adrian-bl
2020-09-04 19:41 ` ericonr
2020-09-05  7:38 ` adrian-bl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).