Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3028467imm; Sun, 13 May 2018 02:32:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr33Xk6imGPzHPT5ZwND8V2JILXQAzz4lf0vMXTu5+VBQl56jO4JfZIfXy7TgV0h/XzlCH5 X-Received: by 2002:a62:399c:: with SMTP id u28-v6mr6020284pfj.95.1526203941192; Sun, 13 May 2018 02:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526203941; cv=none; d=google.com; s=arc-20160816; b=B5f35N+rdamWdyVJKMwghXch/gRe86LYbGBzwhKl6+1g579Tsze6GdyGuqCJ32rlBw /sOd6LJBRduyqfSsl9wVRYLTtx4vomjVGDwxUizinliNl6GGWQTmIF4Xwiy1n+d+Qj6g raUoGDchsQdTrau6NFevLKfzQzfDHlLoUxpx01jVwWM0H10y9LqZEgPMGhICgG5Hxx3r PLQrfV11ks3KGSmiDUQeaeEWAyTE/TGoijEbQWUj/KZdkF9luNao6avyEWkHxDtf+FdH ywc0OW9kxNx0n6D/cTupvUx/lAvlKew8QI0nlmOUrfaAjYCa9zETDIHLRdIVfBItB/Ry 8UuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=lAgwHeLUh7DJ4rvTMzQnVWJ5aI5gRlTgSvG/5RzQHkk=; b=BLqgjsy+zZw1FuksJBtFf5m6V/GS2RUUV4odfDchyXQy7ipNKyjt3lQi5eTQnZkWC+ RRB5F4fQx6gM7s/FAv0Yp8vY3rSVeJMntxPcjDTYyaGIaCKtenFK7Bg7NXf3U6ie8Lqg b2sxpg8Db92IB5tEaU2SCeTHVRWg3w8DITJlVY3kn01NRDTIBCEcJido08XrB784BsJo ybAOaVAp9Lsk6LPM0jVig8JpxBLewuVCszbanIkRkOaNNvqqo3Il/foO03kJUlDTR39+ zGFmmAK36awOvzHRmxit+UVW7smhmxvtVo2+QYVEbBCBacTV9AgGFFtd+hhjFTuouN/5 bEog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l18-v6si7392356pfe.299.2018.05.13.02.32.06; Sun, 13 May 2018 02:32:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751596AbeEMJbY (ORCPT + 99 others); Sun, 13 May 2018 05:31:24 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:60385 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750910AbeEMJbX (ORCPT ); Sun, 13 May 2018 05:31:23 -0400 Received: from 79.184.255.167.ipv4.supernova.orange.pl (79.184.255.167) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id aad3ecee37a2cdff; Sun, 13 May 2018 11:31:20 +0200 From: "Rafael J. Wysocki" To: Chen Yu Cc: Len Brown , linux-kernel@vger.kernel.org, Lenny Szubowicz , Jacob Pan , Rui Zhang , linux-acpi@vger.kernel.org Subject: Re: [PATCH][RFC v2] ACPI: acpi_pad: Do not launch acpi_pad threads on idle cpus Date: Sun, 13 May 2018 11:30:52 +0200 Message-ID: <8775668.fKKdjnIWAU@aspire.rjw.lan> In-Reply-To: <1525521202-32519-1-git-send-email-yu.c.chen@intel.com> References: <1525521202-32519-1-git-send-email-yu.c.chen@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday, May 5, 2018 1:53:22 PM CEST Chen Yu wrote: > According to current implementation of acpi_pad driver, > it does not make sense to spawn any power saving threads > on the cpus which are already idle - it might bring > unnecessary overhead on these idle cpus and causes power > waste. So verify the condition that if the number of 'busy' > cpus exceeds the amount of the 'forced idle' cpus is met. > This is applicable due to round-robin attribute of the > power saving threads, otherwise ignore the setting/ACPI > notification. OK, but CPUs are busy, because they are running tasks. If acpi_pad kthreads run on them, the tasks they are running will migrate to the currently idle CPUs (unless they have specific CPU affinity) and the throttling will not really be effective. I would think that acpi_pad should ensure that the requested number of CPUs will not run anything other than throttling kthreads. Isn't that the case? Thanks, Rafael