From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QIpaMIgHZmVcXgEAG6o9tA:P1 (envelope-from ) for ; Tue, 28 Nov 2023 16:30:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QIpaMIgHZmVcXgEAG6o9tA (envelope-from ) for ; Tue, 28 Nov 2023 16:30:16 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 67C4E43F10 for ; Tue, 28 Nov 2023 16:30:16 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=jF2ZOTM5; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701185416; a=rsa-sha256; cv=none; b=uzLS6ubhJlUn1Tfxpz4gOwUf+wCibTLNi9BgKZMhfs/1o6NwxVyHruMZ4Nc6NNqzBrFNzI h8vyzFVd/WJrkoaIIkuIyc6102Qfzt5JfmtRzKezpMXJcbLI2sMSZZ6rFNMrP5IFwGbhuA 2qyNxW5c/6MQry/EdnPAd7F/T5BGl6tU4CCNIt0HrAQPQWPmBj8wSyv4Ps4oyLz0f6ymxv wKR+PgNSLnjetam6r9Bg6xszp7kYtQ9+kmelesWg+TRgyAKH1u53u8Wy9jFEJLD+jpGuHq /D8Ikym8pSfXN22H+9ftm5lKy8bU4hTB0a2m1JZ/CAb6ldmfu3dOXVzG40AD+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=jF2ZOTM5; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701185416; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=c5JwcmewA5XbwHXOzqkl9rAqqbWe9cqzr7Gk7l/iRb8=; b=CUmYVAF6sYUbfhFk5ausANj37rH2FBJ0e3xDUHkV/dE+HNZAGOwEXv1PxRkNd1/2jT/RMI 3Dr0AeweJWTilPWaGDU+M0geu3+OraxhYLN2eJJvvA0LvkaCiSO+tithWIDnD7pxvSimPm 5rbJiWbV1GdKTAAvyoZdz65K7DYuxWlDu3JHNzyTIRVTlpg30tT925lyN6BdzTxhiYW2Vu OMtaBOzE9fA6U1316d995LvJNfxo3YGBnHUlZNxknsPMKbvK/7jKTM1nL4kYK0x/N8HJtu AARrWCop/lUvA2X4HRqUVUECIHYiqUO8a2OPdFR/Ymu2BwIGvS6nbWEpr/y2ww== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8029-0004xC-Vc; Tue, 28 Nov 2023 10:29:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8028-0004wb-2O for bug-guix@gnu.org; Tue, 28 Nov 2023 10:29:56 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r8027-00037x-QJ for bug-guix@gnu.org; Tue, 28 Nov 2023 10:29:55 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r802E-0001E3-Ep for bug-guix@gnu.org; Tue, 28 Nov 2023 10:30:02 -0500 Subject: bug#67502: [Cuirass] =?UTF-8?Q?=E2=80=98cuirass_?= =?UTF-8?Q?remote-worker=E2=80=99?= gets the CPU count wrong on the OverDrive Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Tue, 28 Nov 2023 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 67502 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 67502-done@debbugs.gnu.org Mail-Followup-To: 67502@debbugs.gnu.org, ludo@gnu.org, ludovic.courtes@inria.fr Received: via spool by 67502-done@debbugs.gnu.org id=D67502.17011853474616 (code D ref 67502); Tue, 28 Nov 2023 15:30:02 +0000 Received: (at 67502-done) by debbugs.gnu.org; 28 Nov 2023 15:29:07 +0000 Received: from localhost ([127.0.0.1]:47433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r801L-0001CO-0e for submit@debbugs.gnu.org; Tue, 28 Nov 2023 10:29:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r801I-0001Bt-V4 for 67502-done@debbugs.gnu.org; Tue, 28 Nov 2023 10:29:06 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8016-00031i-Ja for 67502-done@debbugs.gnu.org; Tue, 28 Nov 2023 10:28:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=c5JwcmewA5XbwHXOzqkl9rAqqbWe9cqzr7Gk7l/iRb8=; b=jF2ZOTM5QS5lGDRlhV9k wWA2HUsgGZ8dqVU/AvmTmC39/2s0rO8fHey9I30/yh+wZyaPWMEaA/uO4I07c4si+cCrEJG3ao2Hh CY6MLWCD2ncnfUBdCERTQ5lK2t7EOtKx/yczMaZ2/blACUN4paZ9/ge9HLoruZGDF79raTTsu3utd n0vnWFS/2Xl+L0uNPUf/hIKTYKS8r0tlnXkWKEIdBfSQvawaBHVCAi706HDU37aVubk5hNqObQVeD CjQJa0ODBALiYBGivEm433N8S5br/2mPo+Hiu9gU1jwAmF44O36OQGgiDGb8A6oBL7YMqpyRGOVt5 AVCzZjJfEwWNJg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87zfyyutux.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 28 Nov 2023 10:09:42 +0100") References: <87zfyyutux.fsf@inria.fr> Date: Tue, 28 Nov 2023 16:28:50 +0100 Message-ID: <87cyvtsxql.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.81 X-Spam-Score: -6.81 X-Migadu-Queue-Id: 67C4E43F10 X-TUID: hF4VRU/RLpDb Ludovic Court=C3=A8s skribis: > ludo@dover ~$ sudo herd status cuirass-remote-worker > Status of cuirass-remote-worker: > It is started. > Running value is 21279. > It is enabled. > Provides (cuirass-remote-worker). > Requires (avahi-daemon guix-daemon networking). > Will be respawned. > ludo@dover ~$ guile -c '(pk (getaffinity 21279))' > > ;;; (#*100000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 000000000000000000000000000000000000000000000000000000000000000000000000000= 0000000000000000000000000000000000000000000000000000000000) This was due to =E2=80=98run-fibers=E2=80=99 binding one thread per CPU cor= e. Thus, calling =E2=80=98getaffinity=E2=80=99 from within =E2=80=98run-fibers=E2=80= =99 shows only one CPU and likewise =E2=80=98current-processor-count=E2=80=99 returns 1. Fixed in Cuirass commit 87a6d6ea7ae79fdf487bbcfd44bb3dce2d7c6e82. Ludo=E2=80=99.