| 14 Mar 2026 |
lassulus | but we could raise a better error message | 18:30:45 |
matthewcroughan | At the great cost of build time | 18:31:34 |
matthewcroughan | You're going to 2x the build time if you do that | 18:31:43 |
matthewcroughan | just for a check | 18:31:47 |
matthewcroughan | The image builder as-is is pretty snappy, but copying the large toplevel twice is going to make that experience worse | 18:32:31 |
matthewcroughan | lassulus: Even after increasing the imageSize I continue to run into this issue:
ed-disko-images> cp: cannot access '/nix/store/70yigs2nzcjv8iwqf5xmlhqcyp9fyy8s-qemu-10.2.1-ga': Cannot allocate memory
ed-disko-images> [ 15.769579] virtio-fs: virtio_fs_enqueue_req() failed -12
ed-disko-images> cp: cannot access '/nix/store/7w2ymzbr4xqvf7527l9halmqf0hq5xy0-intel-compute-runtime-26.05.37020.3': Cannot allocate memory
ed-disko-images> [ 17.223740] virtio-fs: virtio_fs_enqueue_req() failed -12
ed-disko-images> cp: cannot access '/nix/store/8wz0w5c36wb30wx08grryjzzvjw07rbv-graphics-drivers/lib/gbm': Cannot allocate memory
| 18:32:56 |
lassulus | ah yeah, the memory thingie | 18:33:11 |
lassulus | not sure what triggers it, if you have a small nix expression reproducer I can debug it | 18:33:27 |
matthewcroughan | VMs just are not the way to go for image building | 18:33:32 |
matthewcroughan | FS as lib is, like repart | 18:33:42 |
lassulus | but there are soo many different FS | 18:33:52 |
lassulus | don't want to reimplement all of them :D | 18:34:04 |
matthewcroughan | True, I suppose VMs allow disko to support BSD and other FS types | 18:34:21 |
matthewcroughan | even macos or windows FS if you really wanted to | 18:34:41 |
matthewcroughan | with nixbsd, actually supporting that with disko isn't out of the question today | 18:35:02 |
lassulus | also something like ZFS is not supported as lib I think | 18:35:05 |
matthewcroughan | I don't run into the "Cannot allocate memory" issue if I increase the memSize to 16384 | 18:37:09 |
matthewcroughan | though I of course see my memory usage go up massively on my host | 18:37:22 |
matthewcroughan | So it really does use that memory | 18:37:42 |
lassulus | yes, but copying files should not use soo much memory :D | 18:37:55 |
lassulus | so I want to optimize that | 18:38:02 |
lassulus | but everytime I want to, I can never reproduce it | 18:38:10 |
matthewcroughan | Okay I'll make a thing | 18:38:32 |
matthewcroughan | Maybe it's only on ZFS because of ARC | 18:42:47 |
lassulus | hmm, maybe? | 18:43:05 |
lassulus | but we could disable that for the image builder maybe? | 18:43:19 |
matthewcroughan | possibly as a kernel param.. yeah | 18:43:28 |
lassulus | but not sure it's ARC, why would it be? you can copy more files than you have memory on ZFS usually? | 18:44:36 |
matthewcroughan | VMs | 18:44:48 |
matthewcroughan | weird stuff | 18:44:52 |