[linux-rpi] OOM killer issues (armv7h)

Discussion about U-Boot and the kernel.

Re: [linux-rpi] OOM killer issues (armv7h)

Postby graysky » Wed Mar 22, 2023 8:45 pm

I commented in the issue, thanks for pointing me to it.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [linux-rpi] OOM killer issues (armv7h)

Postby graysky » Sat Mar 25, 2023 11:15 am

Does 6.1.21-2 fix the issue?
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [linux-rpi] OOM killer issues (armv7h)

Postby gavinbeatty » Sat Mar 25, 2023 11:07 pm

Yes, seems to work just as well as the tmpfiles.d change I made. Thanks!
gavinbeatty
 
Posts: 9
Joined: Fri Mar 17, 2023 9:54 pm

Re: [linux-rpi] OOM killer issues (armv7h)

Postby graysky » Sun Mar 26, 2023 10:15 am

Good to hear. The change I made is in the kernel config so no need for tmpfiles fix. I'll keep it disabled for armv7h until upstream sorts out why it is not working on armv7h.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [linux-rpi] OOM killer issues (armv7h)

Postby josepmaria79 » Wed Mar 29, 2023 6:32 am

I upgraded to latest linux-rpi-6.1.21-2-armv7h.pkg.tar.xz and oom kills triggered aggressively the same way as previous 6.1 kernels.
Instead, I tried with linux-rpi-5.15.84-1-armv7h.pkg.tar.xz from 2022 and oom kills triggered anyway, but not so often.
Finally, I tried with linux-rpi-5.10.83-1-armv7h.pkg.tar.xz from 2021 and oom kills disappeared completely!
josepmaria79
 
Posts: 3
Joined: Wed Mar 29, 2023 6:13 am

Re: [linux-rpi] OOM killer issues (armv7h)

Postby rsekman » Thu May 11, 2023 12:31 pm

i am still having issues on 6.1.25. Upstream claims that disabling MGLRU in 6.1.21 should have solved the issue. It made things better: where before the system could barely stay stable for minutes after booting, it now only rips its guts out occasionally during load spikes such as "downloading a torrent". I am considering just switching the whole system to aarm64 instead of waiting for an upstream fix. Seems easier.
rsekman
 
Posts: 1
Joined: Thu May 11, 2023 12:23 pm

Re: [linux-rpi] OOM killer issues (armv7h)

Postby CopperHare » Tue May 16, 2023 7:29 am

UPDATE 3: now it works on my headless raspi 4B

So I made the switch to 64bit. The aarch64 installation mentioned on https://archlinuxarm.org/platforms/armv ... berry-pi-4 did not work in my headless scenario, so after digging around in the forums I made it work like this:

  • - Preprared an aarch64 based SD card as in https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4
  • - Following https://archlinuxarm.org/forum/viewtopic.php?f=65&t=16212&start=30#p70257, I installed
    • . arch-install-scripts (for arch-chroot)
    • . qemu-user-static (for qemu-aarch64-static)
    • . qemu-user-static-binfmt (bin format rules)
    on my arch linux based laptop
  • - arch-chrooted into the sd card with / and /boot mounted to /mnt/sd and /mnt/sd/boot
  • - updated the system with
    $this->bbcode_second_pass_code('', '
    pacman-key --init
    pacman-key --populate archlinuxarm
    pacman -Syuuv
    ')
  • - enabled some additional mirrors in /etc/pacman.d/mirrorlist
  • - following https://archlinuxarm.org/forum/viewtopic.php?f=65&t=16243#p70273, I switched the kernel and got rid of the uboot booloader with $this->bbcode_second_pass_code('', 'pacman -S --needed linux-rpi raspberrypi-bootloader raspberrypi-firmware')
  • - then I did some adaptions in /etc (setting hostname, edited locale.gen and alike)
  • - synced and unmounted the sd card
  • - after that I could properly boot my raspi and finish the setup there.

UPDATE 2: after a retry, the raspi crashed completely and was unreachable
UPDATE: after choking on a 15G file, the oom-killer went nuts again:(

I had the same problem with the 6.1.27 kernel, but the latest update to 6.1.28-3-rpi-ARCH does not (yet) have the same problem on my pi.

$this->bbcode_second_pass_code('', '
$ grep Model /proc/cpuinfo
Model : Raspberry Pi 4 Model B Rev 1.5
$ vcgencmd version
Apr 25 2023 18:26:03
Copyright (c) 2012 Broadcom
version d7f9c2b4ef7e4a8c0b04374a879ce89d7a948453 (clean) (release) (start)
$ rpi-eeprom-update
BOOTLOADER: up to date
CURRENT: Wed Jan 11 05:40:52 PM UTC 2023 (1673458852)
LATEST: Wed Jan 11 05:40:52 PM UTC 2023 (1673458852)
RELEASE: critical (/lib/firmware/raspberrypi/bootloader/critical)

VL805_FW: Using bootloader EEPROM
VL805: up to date
CURRENT: 000138c0
LATEST: 000138c0
$ cat /sys/kernel/mm/lru_gen/enabled
0x0000
')

I also did a rpi-eeprom-update.

For me it occured whenever I tried to rsync a file > 2GB to my raspi.
CopperHare
 
Posts: 1
Joined: Tue May 16, 2023 6:06 am

Previous

Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 9 guests