Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3837658rdh; Tue, 28 Nov 2023 05:22:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFP4w6B3oibA/ux4qiw4BJgiiHuIHJMtlbVw0ngFcD7rOfy6sKwtaIkJzCUWuFnFgTMKkjc X-Received: by 2002:a17:902:ee04:b0:1cf:cf34:d4fc with SMTP id z4-20020a170902ee0400b001cfcf34d4fcmr8585609plb.10.1701177764672; Tue, 28 Nov 2023 05:22:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701177764; cv=none; d=google.com; s=arc-20160816; b=Ikba0uGnAfDhSVmXul241JOVKoZ05JJ2U9HZXLjphTg+npgPp2WzuC6HKJ3Cafiguv JaLWSsVR4m/HVLsUzeVq23v+5gj6Jpx+DshmI+PtSGsfZVVSZpLsjXTi1qE7tJ02j7+j gw/TYYdar+Z5KuukOGz3wYq/bpgFPlmTNKo1mGj9GlZuDyEbxqVXDivapBjezxxLcNsT bvnyV59rZAZIEmD4y9EQi63ZfBMG4diI+0UA1KdN3uRjk8NTkZrmGoE+r3TQEzdoysnI 9GKMum16PXfZ3hfXieLrzm7TRwlptgAO8kuIkridh20NZz3pX1omgreCfN83IJJPps1T IJQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=30VypmY2CFZ8lvqagGC6jaet2OpETydP+u6D3TSu8fI=; fh=KG5ziE0kCQf+3WKoxtUfYtSU+e09kL+EaA+5wCOAYko=; b=ITQqIdLZgMy+FnC2g1yenIKBLL/wQX8dEsaJ7ZJCyCMD1ACW9fovPuvjZlEDITulEq neigTdLGDy3J7WcXurd3MFHHAzY3Rrhof6XKE7I8IVnlX+P7fNsDalO60GxdQ21ERcZ2 Fq6teRZ0adwL2tvGLvz548jvoxrfNzyRhkxUkN4mA8yp1HVgCDOD/3FbfBdXXt4iIqeP R/wIXeG51MYtlFOfXCL0eK+v4gageV+zPVh0FlH/nzsUOhSfgPGCX7ad4jd/Cn8pV136 uSMrygDr06nBz5Kl68n7Fsl3koblD0xcVKWeUR1K0KzLn01ohEaSG6ss5uYV7EbYYDqG +wAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gS+2sAKa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w10-20020a65694a000000b00565ecee8793si12548290pgq.875.2023.11.28.05.22.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 05:22:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gS+2sAKa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2BFC58069345; Tue, 28 Nov 2023 05:22:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344995AbjK1NW3 (ORCPT + 99 others); Tue, 28 Nov 2023 08:22:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344875AbjK1NW2 (ORCPT ); Tue, 28 Nov 2023 08:22:28 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AA25A0; Tue, 28 Nov 2023 05:22:34 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1cfc34b6890so19769405ad.1; Tue, 28 Nov 2023 05:22:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701177754; x=1701782554; darn=vger.kernel.org; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=30VypmY2CFZ8lvqagGC6jaet2OpETydP+u6D3TSu8fI=; b=gS+2sAKa2JBYPVICquPPt+xxjHgT5NonnAOR9Cqy8i7FTINvDQVAf/A0/FGQgetPCV AUN0lka06G7EFwylo9Mg/Nllkm9BmB6SB7coVFP/fXq1Mgmg3CyhFS3hDmx6BPgZkLTk Wto9aTndWnNpv9uAFjhsqvj6+p3PFabmTqwsaZkTAlx+66FRZal1lwVNZBqZJnEJPvsz 64mnZpQYzEMsLcwwioi8z4o+IoY+VZr/lRwuOKmpBsL6fVoHVbLg5WJW8/3pDXVQoBNa 1+6zjBO/TxGrtwoT9RYlhJA4a1C6rrzR9knhZ9JzkLIJ9mLHdife8X7V/c1Eabx2mky1 lDXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701177754; x=1701782554; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=30VypmY2CFZ8lvqagGC6jaet2OpETydP+u6D3TSu8fI=; b=esnAz3IWr4MPwVkAk2tfURXRFB/EDbvo4uNK7q0Lenk4NBNGE5nliOpf+glX9qCF3o TzwGlNFEdAOz5UMTwJJ54zsZBPWG7WVnfnW/vw9/SZgOMD6aYwKuhMltjsCXIUmXadER sURfYzffcaMPM4CVZOfcy+rXV93F7/JHXGYfuiOFv+6mcS0iYh/3H7SwZAHblDSkOCVh iStQbsuIIXmokrv+Xnqj0rwSCU281fEkRk6d8a3aQgni7eSVt3xwISFgJp8QopMY8bcP lEGfUgQv7iSiGPkbCTNX2rT8Aoaz+GJj4+7yhTQoBd4fFyD+8mQi+SkTt4T74BWIudnk 6rNA== X-Gm-Message-State: AOJu0YwK8iNoxLWw7wf00JspSo9K76MbgW4qrwmaIJW766yi0DQkAY/y mHBmivqMnXDNAVOPjHUYrNMJtcdIK6qIAA== X-Received: by 2002:a17:902:ead2:b0:1cf:a53f:200f with SMTP id p18-20020a170902ead200b001cfa53f200fmr16674842pld.32.1701177753559; Tue, 28 Nov 2023 05:22:33 -0800 (PST) Received: from [192.168.0.106] ([103.131.18.64]) by smtp.gmail.com with ESMTPSA id u11-20020a170902e5cb00b001cfbd011ca9sm5767276plf.113.2023.11.28.05.22.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Nov 2023 05:22:33 -0800 (PST) Message-ID: <01df8329-06d7-4fd1-9c7a-05296f33231e@gmail.com> Date: Tue, 28 Nov 2023 20:22:27 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Linux Kernel Mailing List , Linux Regressions , Linux Power Management Cc: "Rafael J. Wysocki" , Viresh Kumar , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Ramses VdP From: Bagas Sanjaya Subject: Fwd: Intel hybrid CPU scheduler always prefers E cores Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 28 Nov 2023 05:22:42 -0800 (PST) Hi, I come across an interesting bug report on Bugzilla [1]. The reporter wrote: > I am running an intel alder lake system (Core i7-1260P), with a mix of P and E cores. > > Since Linux 6.6, and also on the current 6.7 RC, the scheduler seems to have a strong preference for the E cores, and single threaded workloads are consistently scheduled on one of the E cores. > > With Linux 6.4 and before, when I ran a single threaded CPU-bound process, it was scheduled on a P core. With 6.5, it seems that the choice of P or E seemed rather random. > > I tested these by running "stress" with different amounts of threads. With a single thread on Linux 6.6 and 6.7, I always have an E core at 100% and no load on the P cores. Starting from 3 threads I get some load on the P cores as well, but the E cores stay more heavily loaded. > With "taskset" I can force a process to run on a P core, but clearly it's not very practical to have to do CPU scheduling manually. > > This severely affects single-threaded performance of my CPU since the E cores are considerably slower. Several of my workflows are now a lot slower due to them being single-threaded and heavily CPU-bound and being scheduled on E cores whereas they would run on P cores before. > > I am not sure what the exact desired behaviour is here, to balance power consumption and performance, but currently my P cores are barely used for single-threaded workloads. > > Is this intended behaviour or is this indeed a regression? Or is there perhaps any configuration that I should have done from my side? Is there any further info that I can provide to help you figure out what's going on? PM and scheduler people, is this a regression or works as intended? Thanks. [1]: https://bugzilla.kernel.org/show_bug.cgi?id=218195 -- An old man doll... just what I always wanted! - Clara