From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A0D884342E; Thu, 7 Mar 2024 19:06:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F707402BA; Thu, 7 Mar 2024 19:06:43 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id F192040272 for ; Thu, 7 Mar 2024 19:06:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709834801; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jsLmJJFWT3H54/cvISYbJ9fn5rtHl+N2GfrwVlxcMYU=; b=MqhuI1OpkGbdvDTHPpfg99ie5o6jj1VWeP36QZgPD1Bdj+HDTDOXf1lLzX7Yh80avf+ivd EA/ZrnZSEVRyjj5RXU5q3CKWFRhU8zo9ADpJECUB9dG4wvLosC+pmbcHPtMNev/iqp9neS R3Kw8mosgWCLxQclJz0IyL4+qC1bLdM= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-364-wk91363VOS69GE1BudO9Mw-1; Thu, 07 Mar 2024 13:06:39 -0500 X-MC-Unique: wk91363VOS69GE1BudO9Mw-1 Received: by mail-lf1-f71.google.com with SMTP id 2adb3069b0e04-5135dbd79e7so1566720e87.3 for ; Thu, 07 Mar 2024 10:06:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709834798; x=1710439598; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jsLmJJFWT3H54/cvISYbJ9fn5rtHl+N2GfrwVlxcMYU=; b=fFmM0VKisl5+lVFF2CG0cQRCwNRJE2LjfFcuZRBQex0V6bbXRzi3u6D5OAlmfTxfO4 OlIR8WLIO9+nUByRZcFbKJoOW/32ITu+j+BDxfgcME3vWhO1ryx/XIRq1fw7JxykOaqk pe4holLCpsgtIILtAUiJ9IGnVShsafo1IMhe1uIaAVq99unyPJHe4udkiMsldg+mbYQb bOjmmJPhDbE9EzQt6wEPX1THsdlRtTABLIZJl9b15Zc+9A87IsXCV7Je8m0jxy/xYJO2 4wF4NeOSj6jQbFC+si7dqgRz0pjSarGaS5jwF7/nj8Glf0Lie0l6AUrSJBtkbtWdmxF/ hTMQ== X-Gm-Message-State: AOJu0Yx3VXPlPIqEBoMl8ba1iXijuG3ekfVAyzTmUk6PD0843OCW6ndG +Ct27iamsg/fowutvO7vbXQo+RCVN6w845HeQaFGhdiF9c8MbOolMFYn9x7rUtvRq1SYMcZ3frX CsYpeGC15ys4aKRyP6nEFSFux9zQipRKAHRvD/l8a2HOwDwWZTdZDuvisMs/DpfQxh7AAUVCw4M hWG2fk56c2L4fHcEY= X-Received: by 2002:ac2:4e93:0:b0:513:5e5c:d4ec with SMTP id o19-20020ac24e93000000b005135e5cd4ecmr1592548lfr.69.1709834798461; Thu, 07 Mar 2024 10:06:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IE77JL9t6kJE7MK4BDaB/JBokrgy52g8UW1m8DqkZ0NSMVxCMDUUHBLhjmyMK1+C3AY37FLp1+1cnlBmno0CFY= X-Received: by 2002:ac2:4e93:0:b0:513:5e5c:d4ec with SMTP id o19-20020ac24e93000000b005135e5cd4ecmr1592540lfr.69.1709834798180; Thu, 07 Mar 2024 10:06:38 -0800 (PST) MIME-Version: 1.0 References: <20240307113324.845309-1-david.marchand@redhat.com> <20240307141608.1450695-1-david.marchand@redhat.com> In-Reply-To: <20240307141608.1450695-1-david.marchand@redhat.com> From: David Marchand Date: Thu, 7 Mar 2024 19:06:26 +0100 Message-ID: Subject: Re: [PATCH v2] test/lcores: reduce cpu consumption To: David Marchand Cc: dev@dpdk.org, bluca@debian.org, Stephen Hemminger , Tyler Retzlaff X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Thu, Mar 7, 2024 at 3:16=E2=80=AFPM David Marchand wrote: > > Busy looping on RTE_MAX_LCORES threads is too heavy in some CI or build > systems running the fast-test testsuite. > Ask for a reschedule at the threads synchronisation points. > > Signed-off-by: David Marchand > Acked-by: Luca Boccassi Ideally, this test should be rewritten with some kind of OS-agnostic synchronisation/scheduling API (mutex?). But I think it will be enough for now. I updated the code comment as requested by Stephen. Applied, thanks. --=20 David Marchand