!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

73 Members
systemd in NixOs's stage 1, replacing the current bash tooling https://github.com/NixOS/nixpkgs/projects/5123 Servers

Load older messages


SenderMessageTime
7 May 2023
@mberndt:matrix.org@mberndt:matrix.org OK, now I wanted to debug my test interactively, so I put machine.shell_interact() in the script. But it just seems to ignore that command… 10:28:11
@mberndt:matrix.org@mberndt:matrix.org

It prints this:

machine: Terminal is ready (there is no initial prompt):
2023/05/07 10:24:47 socat[35] E tcgetattr(0, 0x5555555f9ac0): Inappropriate ioctl for device
(finished: subtest: Create the NixOS configuration, in 1.14 seconds)
10:29:39
@mberndt:matrix.org@mberndt:matrix.orgOh well, I'll do without it10:35:25
@mberndt:matrix.org@mberndt:matrix.org

Now I'm getting an error during nixos-install:

machine # copying path '/nix/store/bhhb91angi23wsr42apz1in1n9b9ilg3-glibc-2.37-8-dev' to 'local'...
machine # warning: error: unable to download 'https://ftpmirror.gnu.org/bash/bash-5.2-patches/bash52-002': Couldn't resolve host name (6); retrying in 2149 ms
machine # error: unable to download 'https://ftpmirror.gnu.org/autoconf/autoconf-2.71.tar.xz': Couldn't resolve host name (6)
machine # error: filesystem error: cannot rename: Invalid cross-device link [/mnt/nix/store/c99ihlhb2lh875spzsl6rnc4058grxvn-autoconf-2.71.tar.xz.drv.chroot/nix/store/g3pzpdicszf700d5xffyk939jzxa4r2k-autoconf-2.71.tar.xz] [/nix/store/g3pzpdicszf700d5xffyk939jzxa4r2k-autoconf-2.71.tar.xz]
machine: output: 
Test "Perform the installation" failed with error: "command `nixos-install < /dev/null >&2` failed (exit code 1)"
cleanup
kill machine (pid 5)
machine # qemu-kvm: terminating on signal 15 from pid 4 (/nix/store/6jx4nc20v3cfphlbypqid30q41i5vh5x-python3-3.10.11/bin/python3.10)
(finished: cleanup, in 0.12 seconds)

It appears completely unrelated to what I'm doing 🤷‍♂️

10:48:14
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deIt kind of feels like this is a bit off-topic for a room about an initrd10:53:43
@mberndt:matrix.org@mberndt:matrix.orgWell it's a test for stratis support in the initrd. So there is a connection there10:56:47
@mberndt:matrix.org@mberndt:matrix.orgBut I guess you're right, I'm going to ask in the other channel10:57:08
@mberndt:matrix.org@mberndt:matrix.orgI got that test working now. https://github.com/NixOS/nixpkgs/pull/229767 Yay!17:28:06
8 May 2023
@mberndt:matrix.org@mberndt:matrix.org Thanks for the review ElvishJerricco 15:38:46
@mberndt:matrix.org@mberndt:matrix.orgI'm going to address these points in the near future15:43:01
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de ElvishJerricco: oh boy: https://zh.fail/failed/by-maintainer/dasJ.html 15:58:38
@arianvp:matrix.orgArianSystemd initrd is 800ms slower than the scripted initrd :(15:59:52
@arianvp:matrix.orgArianOn my machine 15:59:55
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Janne Heß: https://github.com/NixOS/nixpkgs/pull/230366 16:00:57
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Arian: Yea, I think it's slower on my machines as well 16:01:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI've always wanted to try to figure out why it's so much slower, but never bothered yet16:01:58
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgpart of it for sure is that "activation" occurs during initrd instead of stage 216:02:30
@gdamjan:spodeli.org@gdamjan:spodeli.orgmaybe it's in total just bigger?16:02:33
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgso that amount of time is misattributed16:02:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.org gdamjan: I think loading the initrd could only realistically account for like a tenth of a second or something, considering how fast modern CPUs are to decompress ~15MB 16:04:25
@arianvp:matrix.orgArianim talking about the total time unfortunately16:04:29
@arianvp:matrix.orgArianstage1+stage2 is 800ms slower16:04:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgah16:04:38
@elvishjerricco:matrix.org@elvishjerricco:matrix.org
In reply to @elvishjerricco:matrix.org
Janne Heß: https://github.com/NixOS/nixpkgs/pull/230366
That PR is definitely not finished though; see the comments. Would appreciate any ideas
16:05:52
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deyeah i see :/16:06:03
@arianvp:matrix.orgArian

systemd:

Startup finished in 751ms (firmware) + 182ms (loader) + 301ms (kernel) + 1.431s (initrd) + 2.077s (userspace) = 4.744s
Startup finished in 757ms (firmware) + 173ms (loader) + 1.577s (kernel) + 1.465s (userspace) = 3.973s 
multi-user.target reached after 1.465s in userspace.
16:06:52
@arianvp:matrix.orgArianalso interesting. stage 2 is slowertoo16:07:40
@arianvp:matrix.orgArian (I think the stage-1 metric gets folded into kernel) 16:07:54
@nikstur:matrix.org@nikstur:matrix.org ElvishJerricco: Arian https://github.com/NixOS/nixpkgs/pull/230777 In this PR, the definition files for systemd-repart are now stored in the initrd directly. However, sysroot still needs to be mounted. However, I don't really see a way around it. 22:39:26
@nikstur:matrix.org@nikstur:matrix.org * ElvishJerricco: Arian https://github.com/NixOS/nixpkgs/pull/230777 In this PR, the definition files for systemd-repart are now stored in the initrd directly. However, sysroot still needs to be mounted and I don't really see a way around it. 22:46:11

Show newer messages


Back to Room ListRoom Version: 6