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 4E90B45B42; Tue, 15 Oct 2024 17:46:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BE8CC400D7; Tue, 15 Oct 2024 17:46:00 +0200 (CEST) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id 389D7400D6 for ; Tue, 15 Oct 2024 17:45:59 +0200 (CEST) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-71e427e29c7so2374712b3a.3 for ; Tue, 15 Oct 2024 08:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1729007158; x=1729611958; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=iGLGR+CvA5zl2gv8qdHm651uOoXDDI+3WtjPa9pqOaw=; b=Yumlag2U+y5QcsBwsHMno6XCnh2MjhOzn8xOcCazMRcEcSn2GYJVr7wVCuhodkZx7B 6f0nruUIj5hD79OPV7wMYOW2bxbCzXBnAX9bO4s40Co0iZ8SmDC15ctmcWHvSgAX8+Qs 9rVIASnxYgt8AWWjORf8aGBanqwiDqmnyr3Cn+Rm7ZilwosvU1/4jMZhqSJEzszHTMHq LAG1mUj5pUVsoombftz7q5XjT9eVpT8UPRuAZjIy9pXEOI8GaaBR4cX8EX+8619lhi06 v0mAM9C/6A3feGXKMuVjPJoW9dlmeDUq9GajaXHst1GZ99mUHxMU8/QpGQPK2i+H2uPZ qfVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729007158; x=1729611958; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iGLGR+CvA5zl2gv8qdHm651uOoXDDI+3WtjPa9pqOaw=; b=FIB18kLEtGLx4wJwQW1azjpC6aOt2Na3VYuYWCTTr7klmnaPdsJUzZ4TCxx1wsOGWj 18tKgSWj0gRZSVCCA/QELv9uPQc74npzwCs4S0NXj7neS7yNI5e16FXSBHRZ7TabBVFV 6Mtcwd+tSaIvDxNHNiuSg+isCEkVreQ3S3gRfGKw4AMAp5fZkGi21j9rWTGKGhzdso95 /jILDcFRPLw3WSHLrE8hplx+Za5ctsHFFEbo+WRtf8Ztb28yVflnjQRLWKqW/r5uTOVZ jF/Oip+ds8mcEr42KJUgTNwidQUeUULHIm07RNEe+fi4X6v+6g+HyFGA2bg7WRIv7khE p7ew== X-Gm-Message-State: AOJu0YyyVRGmzk5hvD3/xfHzMfzOILOodyrZxURCsqnkM58CzV04GZYs DXYGQ42iNabtfeIgwN7L6NkThCfTEZk0bs7hI0zTltf0pqCH7bpgbCH0TomCRqc= X-Google-Smtp-Source: AGHT+IEBUixtPofhrC1wGLEWZYZrzgHfKcAQaDrO+qHbC8qe4ATys5PV/chC4T+dTOiKZQWnSLvrcg== X-Received: by 2002:a05:6a00:2304:b0:71e:4ba:f389 with SMTP id d2e1a72fcca58-71e4c15d503mr21108410b3a.10.1729007158308; Tue, 15 Oct 2024 08:45:58 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e77518a5fsm1397992b3a.214.2024.10.15.08.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 08:45:58 -0700 (PDT) Date: Tue, 15 Oct 2024 08:45:55 -0700 From: Stephen Hemminger To: "lihuisong (C)" Cc: , , , , , , , , , Subject: Re: [PATCH v10 1/2] power: introduce PM QoS API on CPU wide Message-ID: <20241015084555.3f9f7669@hermes.local> In-Reply-To: <39734c23-0f65-1bae-bb4e-2c6bf06aa97c@huawei.com> References: <20240320105529.5626-1-lihuisong@huawei.com> <20240912023812.30885-1-lihuisong@huawei.com> <20240912023812.30885-2-lihuisong@huawei.com> <20241012181030.60d7647a@hermes.local> <39734c23-0f65-1bae-bb4e-2c6bf06aa97c@huawei.com> MIME-Version: 1.0 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 Tue, 15 Oct 2024 17:41:39 +0800 "lihuisong (C)" wrote: > Hi Stephen, >=20 > Can you take a look at this reply so as to send out the next version ASAP? > Thanks.=F0=9F=98=81 >=20 > /Huisong > =E5=9C=A8 2024/10/14 20:19, lihuisong (C) =E5=86=99=E9=81=93: The biggest issue is that lcore is not the same as cpu as far as kernel is = concerned. DPDK support mapping lcore to a cpuset, and that is not necessarily the sam= e one-to-one mapping as values in sysfs. In documentation of eal see. For example, "--lcores=3D'1,2@(5-7),(3-5)@(0,2),(0,6),7-8'" which means sta= rt 9 EAL thread; lcore 0 runs on cpuset 0x41 (cpu 0,6); lcore 1 runs on cpuset 0x2 (cpu 1); lcore 2 runs on cpuset 0xe0 (cpu 5,6,7); lcore 3,4,5 runs on cpuset 0x5 (cpu 0,2); lcore 6 runs on cpuset 0x41 (cpu 0,6); lcore 7 runs on cpuset 0x80 (cpu 7); lcore 8 runs on cpuset 0x100 (cpu 8). This problem existed in power library and this new API still has it.