| 7 Jun 2026 |
dramforever | full explanation https://github.com/NixOS/nixpkgs/pull/514892#issuecomment-4349540892 | 04:53:52 |
matthewcroughan - nix.zone | fun | 04:54:18 |
matthewcroughan - nix.zone | should hardware repos set this value for users? :P | 04:54:24 |
matthewcroughan - nix.zone | mkDefault maybe | 04:54:27 |
dramforever | idk how to fix this | 04:54:53 |
dramforever | because 65536 is the default on like ubuntu | 04:55:07 |
matthewcroughan - nix.zone | the sysctl options on nixos seem like a good idea as a stopgp | 04:55:15 |
matthewcroughan - nix.zone | * the sysctl options on nixos seem like a good idea as a stopgap | 04:55:18 |
dramforever | * | 04:55:23 |
matthewcroughan - nix.zone | at leas this way it's still pure in a sense | 04:55:24 |
matthewcroughan - nix.zone | * at least this way it's still pure in a sense | 04:55:30 |
dramforever | probably | 04:55:49 |
matthewcroughan - nix.zone | better to actually fix it somehow, but setting this as a default on riscv64 until it's fixed would make sense | 04:55:59 |
dramforever | but like | 04:56:02 |
dramforever | this is a kernel config option | 04:56:08 |
dramforever | * | 04:56:16 |
dramforever | so you don't need this stopgap generally if you're using the nixos kernel config | 04:57:00 |
dramforever | so please for the love of whatever don't go about adding this to every riscv64 nixos config you see | 04:57:20 |
matthewcroughan - nix.zone | Ah so it's only a problem because of the vendor kernel I'm using probably? | 04:57:40 |
dramforever | CONFIG_DEFAULT_MMAP_MIN_ADDR | 04:57:58 |
matthewcroughan - nix.zone | https://github.com/sifiveinc/riscv-linux/blob/dev/pritesh/upstream-6.18/arch/riscv/configs/hifive-premier-p550_defconfig#L123 | 04:59:14 |
matthewcroughan - nix.zone | yeah they hardcode it to 65536 here | 04:59:38 |
dramforever | weirdly, i've never seen anyone else complain about this | 05:00:44 |
dramforever | even though there's definitely non-nix users of patchelf | 05:00:53 |
matthewcroughan - nix.zone | total riscv users on planet right now: 1 | 05:01:07 |
dramforever | maybe they only do shared libraries which by definition cannot be PDEs | 05:01:10 |
dramforever | depends on your definition of "user" i guess | 05:01:37 |
matthewcroughan - nix.zone | so if I set override this value in the kernel, it should be the right approach | 05:02:05 |
matthewcroughan - nix.zone | once we find out what the right value is | 05:02:11 |
dramforever | the nixos config is 4096 | 05:03:49 |