| 7 Jun 2026 |
matthewcroughan - nix.how | the sysctl options on nixos seem like a good idea as a stopgp | 04:55:15 |
matthewcroughan - nix.how | * the sysctl options on nixos seem like a good idea as a stopgap | 04:55:18 |
dramforever | * | 04:55:23 |
matthewcroughan - nix.how | at leas this way it's still pure in a sense | 04:55:24 |
matthewcroughan - nix.how | * at least this way it's still pure in a sense | 04:55:30 |
dramforever | probably | 04:55:49 |
matthewcroughan - nix.how | 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.how | 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.how | 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.how | 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.how | 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.how | so if I set override this value in the kernel, it should be the right approach | 05:02:05 |
matthewcroughan - nix.how | once we find out what the right value is | 05:02:11 |
dramforever | the nixos config is 4096 | 05:03:49 |
dramforever | which is also the default on mainline | 05:04:00 |
matthewcroughan - nix.how | huh, so how does my laptop have a much larger value? | 05:04:15 |
matthewcroughan - nix.how | I don't change defaults usually | 05:04:22 |
dramforever | i mean for riscv64 | 05:05:22 |
dramforever | pkgsCross.riscv64.linux.configfile | 05:05:30 |
dramforever | oh because it's set in pkgs/os-specific/linux/kernel/common-config.nix duh... | 05:07:48 |