/srv/irclogs.ubuntu.com/2023/04/11/#ubuntu-kernel.txt

=== chris14_ is now known as chris14
alkisgBoot 16.04 64bit with init=/bin/bash, then `free` => 49M used. For 22.04 => 86M. For 23.04 => 300M.09:45
alkisgHow can I find out what in the kernel configuration takes 200+ more MB RAM in 23.04? I don't see anything weird in ps or in lsmod...09:45
arighialkisg, `slabtop -s c` maybe can tell if the kernel itself is using too much memory in some slab caches, moreover `free -m` would help to understand if most of the memory is page cache or actually allocated memory (I guess you already measured these values after dropping page cache, e.g., `echo 3 > /proc/sys/vm/drop_caches`?)09:51
alkisgOutput of `uname -a; free; lsmod; ps faux` for 22.10, i.e. 89M used: https://termbin.com/r5q809:54
alkisgOutput for 23.04, i.e. 344M used: https://termbin.com/ox2b09:54
alkisgI'm looking at the "used" column, so caches are excluded; will check slabtop now09:54
alkisgOutput of slabtop -s c -o for 23.04: https://termbin.com/uwj8v10:03
alkisg(dropping the caches makes no difference, it's too early in the boot process, no significant cache usage yet)10:04
alkisgOutput of slabtop -s c -o for 22.10: https://termbin.com/5v3s10:05
LocutusOfBorgHello, I tried to run dkms autopkgtests on official autopkgtest machines14:28
LocutusOfBorg+EFI variables are not supported on this system14:28
LocutusOfBorg+/sys/firmware/efi/efivars not found, aborting.14:28
LocutusOfBorgI don't think "modprobe efivars" is sufficient to fix this, right?14:29
LocutusOfBorgsee https://autopkgtest.ubuntu.com/results/autopkgtest-lunar/lunar/amd64/d/dkms/20230403_183258_890fd@/log.gz14:29
LocutusOfBorgon armhf I get a "better error" "Secure Boot not enabled on this system."14:30
LocutusOfBorg^^ this is on arm64, while on armhf I get "Binary update-secureboot-policy not found, modules won't be signed"14:30
=== cpaelzer_ is now known as cpaelzer
LocutusOfBorg(same armhf on ppc64el and s390x)14:31
LocutusOfBorgand I don't think adding shim-signed will fix, right?14:31
arighiLocutusOfBorg, from a kernel perspective /sys/firmware/evi/efivars should be populated when the efivars fs is mounted, like `mount -t efivarfs none /sys/firmware/efi/efivars`, not sure why it doesn't show up on this test system...14:46
arighiI'm wondering what would happen if you try to mount that manually (not sure if it's possible)14:47
LocutusOfBorgarighi, thanks15:12
LocutusOfBorgthe test has "needs-root"15:12
LocutusOfBorgsoooooo maaaaaaaaaybe :D15:12
LocutusOfBorgtesting on https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/locutusofborg-ppa/+packages?field.name_filter=&field.status_filter=published&field.series_filter=lunar15:13
LocutusOfBorgwell, at least on arm64 it says "Secure Boot not enabled on this system"15:19
LocutusOfBorghttps://autopkgtest.ubuntu.com/results/autopkgtest-lunar-costamagnagianfranco-locutusofborg-ppa/lunar/arm64/d/dkms/20230411_151723_f2fca@/log.gz15:19
LocutusOfBorgmount: /sys/firmware/efi/efivars: mount point does not exist.16:21
LocutusOfBorgdamn16:21
alkisgAnything else I could try to see why the kernel needs 300+ MB RAM in 23.04, compared to 90- MB in 22.10? (see above for details and pastebins)17:34
sarnoldalkisg: it's a wild-guess shot in the dark, but check dmesg | grep -i crash  on both? I have a very vague memory of the crashdump default being raised, or discussed to be raised?, or something similar anyway :)18:25
alkisgsarnold: thanks; unfortunately there's nothing in `dmesg | grep -i crash` in 23.0419:46
alkisg(nor in 22.10)19:53
sarnoldalkisg: dang. well, not all my wild ass guesses work out :(20:12
sarnoldalkisg: how about /proc/meminfo on both?20:12
alkisgMeh, it looks like it's an initramfs issue, not a kernel issue. I installed the 23.04 kernel in 22.04 and it doesn't have increased memory usage20:12
alkisgI wonder if it's not freeing up the initrd memory. Looking more into it...20:13
alkisgHeh. I put `break=bottom` and ran `mount --bind /proc /root/proc; chroot /root free`. 22.10 says 75M used, 23.04 says 730M used.20:47
alkisgI think many 1GB cloud servers/VMs won't be able to boot at all anymore...20:47
arighiLocutusOfBorg, hm.. don't you have /sys/firmware/efi and /sys/firmware/efivars?21:15
arighialkisg, I'm wondering if the initramfs is bigger because mkinitramfs started to put linux-modules-extra modules to the initramfs in 23.04...21:16

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!