all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cuirass remote worker is stuck building with 1 core
       [not found] <c85eeaad7cb0c2698e5b1e6edd6f3df6eadb94c7.camel.ref@yahoo.com>
@ 2023-10-09  1:14 ` Parnikkapore
  2023-10-09 15:01   ` Parnikkapore
  0 siblings, 1 reply; 2+ messages in thread
From: Parnikkapore @ 2023-10-09  1:14 UTC (permalink / raw)
  To: help-guix

I noticed that the Cuirass remote worker in my channel-building VM only builds things with 1 core, despite me having configured Guix to use multiple cores per build.

# Reproduction instructions

On a multi-core QEMU VM running Guix System with a Cuirass setup, run the following command:

```
cuirass remote-worker -w 1
```
This will result in the message "starting 1 workers (parallelism: 1 cores)".

# Expected output

The remote worker tries to build with the number of cores specified in guix-daemon's --cores. That, or $(nproc).

It should be noted that my bare-metal foreign distro install correctly selects $(nproc)-core parallelism. However, I have created multiple QEMU VMs running Guix System, and they all reproduce this bug.

# Appendix

## channels.scm

```
(list (channel
        (name 'guix)
        (url "https://git.savannah.gnu.org/git/guix.git")
        (branch "master")
        (commit
          "577fd21122ca50ab7594be9adf0c5c06d5b26678")
        (introduction
          (make-channel-introduction
            "9edb3f66fd807b096b48283debdcddccfea34bad"
            (openpgp-fingerprint
              "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))
```

## repro script

```
cd "$(dirname "$0")" | exit
guix time-machine -C ./channels.scm -- shell cuirass -- sh -c 'sudo $(which cuirass) remote-server --no-publish -c /tmp/cuirass-cache & sudo $(which cuirass) remote-worker -w 1'
```


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cuirass remote worker is stuck building with 1 core
  2023-10-09  1:14 ` Cuirass remote worker is stuck building with 1 core Parnikkapore
@ 2023-10-09 15:01   ` Parnikkapore
  0 siblings, 0 replies; 2+ messages in thread
From: Parnikkapore @ 2023-10-09 15:01 UTC (permalink / raw)
  To: help-guix

I investigated this a bit more:
* issue is reproduced with <=4 cpus on the VM; apparently it does not occur if there are more cpus
* (current-cpu-count) is 1 within the worker thunk on affected setups, but it's not affected in cuirass-remote-worker


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-09 15:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <c85eeaad7cb0c2698e5b1e6edd6f3df6eadb94c7.camel.ref@yahoo.com>
2023-10-09  1:14 ` Cuirass remote worker is stuck building with 1 core Parnikkapore
2023-10-09 15:01   ` Parnikkapore

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.