!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

614 Members
NixOS ❤️ systemd173 Servers

Load older messages


SenderMessageTime
11 Mar 2025
@aloisw:julia0815.dealoiswWell 350M not fitting into memory after decompression sounds plausible.18:00:44
@elvishjerricco:matrix.orgElvishJerriccoplausible for the 4G boundary, yes18:01:06
@elvishjerricco:matrix.orgElvishJerriccoI wouldn't say likely18:01:11
@elvishjerricco:matrix.orgElvishJerriccoit's like right on the edge18:01:14
@elvishjerricco:matrix.orgElvishJerriccowhen do you get a more than 10x compression ratio?18:01:50
@aloisw:julia0815.dealoisw It has to be contiguous memory below 4G. 18:01:59
@elvishjerricco:matrix.orgElvishJerriccooh so it might be putting the uncompressed initrd near-to-but-not-right-at the boundary?18:02:30
@elvishjerricco:matrix.orgElvishJerriccoclose enough that it pretty much always fits, unless you have a massive initrd?18:02:47
@aloisw:julia0815.dealoisw
In reply to @elvishjerricco:matrix.org
when do you get a more than 10x compression ratio?
I have no idea what got put in their initrd, it's so out of the normal that it's plausible that it either compresses very well or not at all. (Really it should be figured out what got into there and the bug fixed.)
18:03:36
@elvishjerricco:matrix.orgElvishJerriccowell yea, like I said, there's two bugs here. An initrd like that should obviously not happen, but also systemd-boot shouldn't die over it18:04:26
@elvishjerricco:matrix.orgElvishJerriccooh I have a suspicion18:04:35
@elvishjerricco:matrix.orgElvishJerricco they used scripted initrd and added a *Commands fragment that pulled in some super massive package because scripted initrd pulls in whole closures 18:05:10
@elvishjerricco:matrix.orgElvishJerricco"super massive" that's not even that massive18:05:35
@aloisw:julia0815.dealoisw
In reply to @elvishjerricco:matrix.org
close enough that it pretty much always fits, unless you have a massive initrd?
I have no idea where it puts the stuff (probably it just uses the UEFI allocator), but most machines don't have contiguous physical memory and who knows where the compressed initrd fragmented it more.
18:05:44
@aloisw:julia0815.dealoisw
In reply to @elvishjerricco:matrix.org
they used scripted initrd and added a *Commands fragment that pulled in some super massive package because scripted initrd pulls in whole closures
Why did it only blow up on 25.05 then?
18:06:07
@elvishjerricco:matrix.orgElvishJerriccoit's weird18:06:07
@elvishjerricco:matrix.orgElvishJerriccosystemd-boot or systemd-stub will pass the initrd via a custom uefi protocl18:06:22
@elvishjerricco:matrix.orgElvishJerricco... yea good point nevermind18:06:37
@aloisw:julia0815.dealoisw
In reply to @elvishjerricco:matrix.org
systemd-boot or systemd-stub will pass the initrd via a custom uefi protocl
Oh wait, it's only the kernel that decompresses it. Ignore what I said then.
18:07:10
@elvishjerricco:matrix.orgElvishJerriccoyea....18:07:27
@elvishjerricco:matrix.orgElvishJerriccocertainly the issue must have to do with the massive initrd; that's such a strange and blatant variable18:08:22
@elvishjerricco:matrix.orgElvishJerriccobut I have no idea why18:08:26
@aloisw:julia0815.dealoisw (Unless for some reason it fails to do a contiguous allocation of the 358.5 megabytes, but that's not that much from remote speculation.) 18:08:27
@elvishjerricco:matrix.orgElvishJerriccounless it wants to allocate that close to the 4G boundary I guess?18:08:54
@elvishjerricco:matrix.orgElvishJerriccono idea why it would18:09:01
@elvishjerricco:matrix.orgElvishJerriccoi mean that might actually just be randomness or board specificness18:10:46
@elvishjerricco:matrix.orgElvishJerricco"EFI says to allocate here" and systemd-boot says "but I WANTED it behind there!"18:11:28
@elvishjerricco:matrix.orgElvishJerricco sidenote, I'm extremely annoyed by andre4ik3's comment claiming to show the answer clearly when it's anything but clear 18:13:13
@aloisw:julia0815.dealoisw If xmalloc_initrd_pages is the correct function, then it asks the firmware to allocate anywhere below 4G: https://github.com/systemd/systemd/blob/7fa3b5018bfffa176c77a2a5794dce792eebadcb/src/boot/util.h#L111-L115 18:15:59
@elvishjerricco:matrix.orgElvishJerriccoyes18:16:15

Show newer messages


Back to Room ListRoom Version: 6