-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce parallelism #206
Comments
+1 -- also locks up my Pi 3b, and my Acer Chromebook, both of which are now happily running NixOS. EDIT: Looks like the |
nix-index uses rayon for parallelism After reading https://github.com/rayon-rs/rayon/blob/master/FAQ.md#how-many-threads-will-rayon-spawn I thought perhaps this would work: $ RAYON_NUM_THREADS=1 nix-index Unfortunately on my Pi4 (4gb ram) I eventually get:
And on my Pi3, even as nicely as I can, I eventually get a full system lockup: $ RAYON_NUM_THREADS=1 nice -n 19 nix-index --requests 1 |
I'm trying to run
nix-index
on my raspberry pi 4B (aarch64
), but after a bit my load-average is 20+ and this effectively locks-up the device (even when run withnice
). I can issue no commands over SSH and have to reset the power supply of the device.Is there some way I can limit the amount of thread/jobs that are being run? I tried running it with
nice -n19 nix-index --requests 4
but that still locked-up the pi (for a while there were 4 threads, but after the http requests were done it got too much).version:
nix-index 0.1.5
on NixOS 23.05The text was updated successfully, but these errors were encountered: