Post #2265142
2026-05-06 07:56 UTC
A question for all #Guix folks on fedi: is there a way to make building the derivations faster? The machine I use has 20 cores, and only one of them is used 100% and the rest are usually around 7-8%.
There are many things that needs updating on my machine (including guix, pacman, flatpak, Emacs packages, ...) and by far Guix is the slowest despite having:
```sh
guix upgrade --cores=$(nproc --ignore 1)
```
Replies (2)
-
@csantosb@sigmoid.social 2026-05-06 08:08
@Mehrad@fosstodon.org Does this help ? https://guix.gnu.org/manual/1.5.0/en/html_node/Channels-with-Substitutes.html
-
@shepherd@fosstodon.org 2026-05-06 08:30
@Mehrad@fosstodon.org By default Guix tries to feed the guix build systems with the number of cores available. Generally, most derivations will be built using all your available cores. The thing is that the underlying build systems will or will not make an efficient use of those cores. For example, the `gnu-build-system` will take all your cores and pass them to `make`. If `make` does not make an efficient use of those cores, you can use the `-M ` flag to build multiple derivations in parallel.