| 7 May 2023 |
@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 | 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 | Oh well, I'll do without it | 10:35:25 |
@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 | It kind of feels like this is a bit off-topic for a room about an initrd | 10:53:43 |
@mberndt:matrix.org | Well it's a test for stratis support in the initrd. So there is a connection there | 10:56:47 |
@mberndt:matrix.org | But I guess you're right, I'm going to ask in the other channel | 10:57:08 |
@mberndt:matrix.org | I got that test working now.
https://github.com/NixOS/nixpkgs/pull/229767
Yay! | 17:28:06 |
| 8 May 2023 |
@mberndt:matrix.org | Thanks for the review ElvishJerricco | 15:38:46 |
@mberndt:matrix.org | I'm going to address these points in the near future | 15:43:01 |
@janne.hess:helsinki-systems.de | ElvishJerricco: oh boy: https://zh.fail/failed/by-maintainer/dasJ.html | 15:58:38 |
Arian | Systemd initrd is 800ms slower than the scripted initrd :( | 15:59:52 |
Arian | On my machine | 15:59:55 |
@elvishjerricco:matrix.org | Janne Heß: https://github.com/NixOS/nixpkgs/pull/230366 | 16:00:57 |
@elvishjerricco:matrix.org | Arian: Yea, I think it's slower on my machines as well | 16:01:36 |
@elvishjerricco:matrix.org | I've always wanted to try to figure out why it's so much slower, but never bothered yet | 16:01:58 |
@elvishjerricco:matrix.org | part of it for sure is that "activation" occurs during initrd instead of stage 2 | 16:02:30 |
@gdamjan:spodeli.org | maybe it's in total just bigger? | 16:02:33 |
@elvishjerricco:matrix.org | so that amount of time is misattributed | 16:02:42 |
@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 |
Arian | im talking about the total time unfortunately | 16:04:29 |
Arian | stage1+stage2 is 800ms slower | 16:04:34 |
@elvishjerricco:matrix.org | ah | 16:04:38 |
@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 | yeah i see :/ | 16:06:03 |
Arian | 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 |
Arian | also interesting. stage 2 is slowertoo | 16:07:40 |
Arian | (I think the stage-1 metric gets folded into kernel) | 16:07:54 |
@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 | * 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 |