1 Jun 2025 |
emily | USB-C UART is nice... but the 2.5G LAN isn't super relevant to me. admittedly including the 2.5G WAN alongside the 10G would solve my WAN SFP+ woes | 19:38:53 |
matthewcroughan | emily: did you get the fan working? | 20:44:15 |
emily | haven't really tried, only booted it into NixOS yesterday. does yours not work? | 20:44:31 |
matthewcroughan | Never did, there's an overlay in openwrt that I was gonna play around with maybe | 20:44:46 |
matthewcroughan | Are you using binfmt? | 20:45:36 |
emily | yes but I specifically made sure that systemd-repart is not | 20:45:49 |
emily | so no | 20:45:52 |
matthewcroughan | Yeah weird, definitely isn't like that for me | 20:46:04 |
matthewcroughan | is your storage slow maybe? | 20:46:09 |
emily | it's in the macOS builder VM. IO is slow but not that slow. it's probably fakeroot . | 20:57:36 |
matthewcroughan | macOS stuff is always buggy and slow | 21:06:16 |
matthewcroughan | At so many levels | 21:06:28 |
matthewcroughan | I mean Linux stuff is just buggy, but not slow :P | 21:06:59 |
matthewcroughan | fakeroot as invoked by systemd-repart? | 21:07:43 |
emily | pretty sure if any component is to blame it's QEMU. | 21:08:05 |
matthewcroughan | Yeah, especially qemu on xnu | 21:08:17 |
matthewcroughan | if you used docker it might yield better perf | 21:08:45 |
matthewcroughan | * if you used docker on the mac, it might yield better perf | 21:08:51 |
matthewcroughan | If it does, maybe you can take a look at what the difference is and contribute a fix to the darwin.linux-builder qemu stuff, if it's just a qemu flag or feature that's needed to improve performance | 21:09:27 |
matthewcroughan | What does docker use to virtualize Linux on macOS? | 21:10:09 |
emily | …why Docker? | 21:10:24 |
matthewcroughan | Because it runs a Linux VM, on macOS, performantly | 21:10:40 |
matthewcroughan | whereas darwin.linux-builder runs a Linux VM, on macOS, unperformantly (probably) | 21:10:53 |
matthewcroughan | Not that you can't reconcile that | 21:11:05 |
matthewcroughan | https://www.docker.com/blog/docker-desktop-for-mac-qemu-virtualization-option-to-be-deprecated-in-90-days/ | 21:11:30 |
matthewcroughan | so they formerly used qemu, and now they don't | 21:11:43 |
emily | the IO is slow but not so slow that it should be taking > 1 h instead of < 10 m | 21:11:52 |
matthewcroughan | Okay, but you can just use Docker to get Nix under a Linux kernel, and test if there is a performance difference between the different virt stack | 21:12:24 |
matthewcroughan | and if there is, then you know that the issue might just be qemu | 21:12:42 |
matthewcroughan | you intuitively thought QEMU was to blame, this would prove/disprove that | 21:13:00 |