!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

678 Members
Rust154 Servers

Load older messages


SenderMessageTime
9 Mar 2025
@andrew15_5:matrix.orgAndrewuhhh, so there shouldn't be any cache for llvm?16:24:41
@andrew15_5:matrix.orgAndrew4467 steps is soo much...16:25:10
@andrew15_5:matrix.orgAndrew
    home.packages = with pkgs; [
      cargo
      clippy
      rustc
      pkgsCross.wasi32.buildPackages.rustc
      rustfmt
      rust-analyzer-nightly
      cargo-expand
      pkg-config
    ];
16:47:03
@emilazy:matrix.orgemilybtw at least some WASI stuff should be cached because Firefox uses it.16:48:33
@andrew15_5:matrix.orgAndrew I can't build llvm as it eats all of the memory at step 1321/4467 with a lot of llvm-tblgen processes. 16:48:41
@emilazy:matrix.orgemilyok.p16:48:49
@emilazy:matrix.orgemily* ok.16:48:53
@andrew15_5:matrix.orgAndrewso... I guess I'm back to basics and gonna use rustup like the old times...16:49:29
@phanirithvij:matrix.orgloudgolem you can try swapspace to autogrow your swap 16:50:33
@phanirithvij:matrix.orgloudgolemif you have fast ssd storage to spare16:51:21
@phanirithvij:matrix.orgloudgolem* only if you have fast ssd storage to spare16:51:24
@phanirithvij:matrix.orgloudgolemI have been using it for around a year (and I also maintain it in nixpkgs).16:51:35
@andrew15_5:matrix.orgAndrewidk about fast, but it is SSD16:56:27
@andrew15_5:matrix.orgAndrewDo I need to reboot or no?16:59:48
@phanirithvij:matrix.orgloudgolem systemctl status swapspace should be green 17:01:02
@andrew15_5:matrix.orgAndrew Is services.swapspace.enable = true; enough? 17:01:20
@phanirithvij:matrix.orgloudgolemyes17:01:51
@andrew15_5:matrix.orgAndrewok, I'll try then17:02:00
@phanirithvij:matrix.orgloudgolem then run the build again, also watch swapon --show in another window to monitor your swap 17:02:23
@phanirithvij:matrix.orgloudgolem * then run the build again, also watch swapon --show in another window to monitor your swap files 17:02:27
@andrew15_5:matrix.orgAndrewIt does eat a ton of memory very rapidly, in a matter of 20 seconds or so. Not sure if swapspace can keep up with that17:02:33
@andrew15_5:matrix.orgAndrewYeah, I'm interested in that.17:02:53
@k900:0upti.meK900I'd start by not building on a tmfps17:03:09
@k900:0upti.meK900If you are building on a tmpfs17:03:13
@k900:0upti.meK900 Then drop --cores 17:03:19
@k900:0upti.meK900Then you can think about swap17:03:23
@andrew15_5:matrix.orgAndrewdefault is to not use tmpfs17:03:52
@andrew15_5:matrix.orgAndrewdoes show do something?17:04:46
@phanirithvij:matrix.orgloudgolemlists active swap files and partitions17:05:15
@andrew15_5:matrix.orgAndrew I thought swapon does that 17:05:53

Show newer messages


Back to Room ListRoom Version: 6