From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2EABE211A05 for ; Tue, 10 Mar 2026 04:16:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773116207; cv=none; b=TP7wuqBbZemJsuxS8pe2LsBRNICrSKtbKAXfFobmtU0wBTGg/7oO3X0RDTr4HZWsB5p3/6ggtZ+U927qBc2ETr20H30uoq1VQRj4xac0OncgKM7U+r4LZmUQoUEOL5xl1O2usrS32qggjs16baPI629hXVkB3lMUfoMMtGcjdB8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773116207; c=relaxed/simple; bh=jwP33B7ZtKvweHgFBp1jLQX1Ubl+QBgcFSvx0KC9t1g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TGtIVtfCuuw0Kj+IFkKwqG8u1aJYenF/kvMm4NFhBKcb3dvni4JT0qqqgE60HxopouFil2KCGfhN7T1b0F8onLcW1n7cjZQwatH5yyBu5/V0YC980bkSQaepUl8/pGElzmyXZkxRzzH+uWPFkyCnUrBpsf6oSM4Atn7DoEBPfKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=layalina.io; spf=pass smtp.mailfrom=layalina.io; dkim=pass (2048-bit key) header.d=layalina-io.20230601.gappssmtp.com header.i=@layalina-io.20230601.gappssmtp.com header.b=vzoyHfwQ; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=layalina.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=layalina.io Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=layalina-io.20230601.gappssmtp.com header.i=@layalina-io.20230601.gappssmtp.com header.b="vzoyHfwQ" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-662dc987dfdso73934a12.1 for ; Mon, 09 Mar 2026 21:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20230601.gappssmtp.com; s=20230601; t=1773116204; x=1773721004; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=H74OJk+wGkjtsWTH38XGVQhNEu2KbTh5yV1Emj+Y/J0=; b=vzoyHfwQtlLzigRaIh8dUE1PZCivg9R5rzP1iLZRdJy33GpspzId8ZRXGyekjMBiY2 JMdud19Uy3tBcIOz++zUYwVI3xsrFK49blv5nONUIecgtEuGWSUP58sJyCXraj11XDJz +JS1/IzdNsslwgEA2j/YPpxn7WlT+CLDXaFOFsByP4/OIWNaV5CZ7c3LDw1yV0ScrQvl 8Aq9rHpg1/OwvgJffoGBq/NkBrF36yE0N+Mx2eC7XPSzK2UrmeNIKHRmjF85JHOVfHEo 0OvICM/VphK93+thqTiXLhq2nbm94xIgc0zWOVhfpqOQHwA8NhXvsr2GEnuACFm/pU+F bevg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773116204; x=1773721004; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H74OJk+wGkjtsWTH38XGVQhNEu2KbTh5yV1Emj+Y/J0=; b=RoZ/U6hIYonzBcBLNvtrKah3uJQ0u17veJlA/f+93BH6iOsV1hj+q5mvBK1OYdxJDu VDRexDtupk/FhmwJ78fU8UjRcKgiJUEhdCxGAOhYA7DvR3wi/+tbuTfnah56nsiu3z87 dt/MAodNa55pRhgKiltJuttKJigxlaj0U/CVPWl67f+IyR6Vnq4QCRF5tJXaYXpzCOpP bNzEUyreJxkxKIs9qY8msWVu3vVwjUZIFd0fpOaTXBfaKw3j9xklUPBC/8iZfOg5ZEg9 tRjZmHY9ovsRr00H+zlQ1DPHNTbugMFbv7LWyhYBRbXfu0OkpnahfeO5KZtJ/msIZEuT /J1Q== X-Forwarded-Encrypted: i=1; AJvYcCUuQ4sx9HLlyb/DobrrV/ssBcue4+YzNoI952y979rgHFsx4s9xZ/4MPkyvJs3svPgXsR6zNySl33GS6tA=@vger.kernel.org X-Gm-Message-State: AOJu0Yz3hh5uZ5ewTK2iSk81bjg1+cyRpc8emfnv6GIEb5d7aYDeF3jb 5px9YhHOn+kGmMjDHHHmbt+9OPOF/DFE0rqCzKvlQUO2tZpuY8H7SYe2F07NwnJHSok= X-Gm-Gg: ATEYQzyv/U0asyz4vqENAKyUe5WPnpujTiHcniD08ITZuUNRGHQ/9u5V1DHzcpW78IY D7Gre5esmLcVcAaaLxpaU0N/YPjtO9VmDJ5jUS7ngnM+boqqJ8Z6zzSBcVhDx1Dfc91FHZkBB0v kToiFDfEqTTUMVLKAFocMoP9TbgdtDthL4YT4rev7cRbCbpeDV8y/JkBV6BfHmQPlIxtr09fnyn 3iJdUZ+a0fMXx7NaBU1mN/09zapmmHUlRj+XsTyDxo7MPfwuZaFv/eGMNMmPVzUFbqeSwEwyIhf yZR2e4FLQtPztypgq5hbMNE5ox/Yj4CETfmNlGg/mL4cVEMCEcfPfBlaj7hzb4b8NfBj1l2AkL7 VqfeBIdDVAh+LvvySWaDP7FOKn3xBFn04L2dy6/JrL/r7PXxxmUEOYLv7sP9xmCFr+RVtbGR2tL xX8SKEEnOqb3RtaXweaQ== X-Received: by 2002:a05:6402:42c8:b0:65b:a2b5:5320 with SMTP id 4fb4d7f45d1cf-6619d501634mr7369943a12.26.1773116204549; Mon, 09 Mar 2026 21:16:44 -0700 (PDT) Received: from airbuntu ([194.36.110.147]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-661a3c66e0dsm3866737a12.7.2026.03.09.21.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2026 21:16:44 -0700 (PDT) Date: Tue, 10 Mar 2026 04:16:38 +0000 From: Qais Yousef To: Pierre Gondois Cc: Vincent Guittot , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, linux-kernel@vger.kernel.org, kprateek.nayak@amd.com, christian.loehle@arm.com Subject: Re: [PATCH 0/6 v8] sched/fair: Add push task mechanism and handle more EAS cases Message-ID: <20260310041638.imaqwuaau2hunxby@airbuntu> References: <20251202181242.1536213-1-vincent.guittot@linaro.org> <520385b2-545a-4ac7-ae05-06d24845f512@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <520385b2-545a-4ac7-ae05-06d24845f512@arm.com> On 02/26/26 18:34, Pierre Gondois wrote: > > On 12/2/25 19:12, Vincent Guittot wrote: > > This is a subset of [1] (sched/fair: Rework EAS to handle more cases) > > > > [1] https://lore.kernel.org/all/20250314163614.1356125-1-vincent.guittot@linaro.org/ > > > > The current Energy Aware Scheduler has some known limitations which have > > became more and more visible with features like uclamp as an example. This > > serie tries to fix some of those issues: > > - tasks stacked on the same CPU of a PD > > - tasks stuck on the wrong CPU. > > Following some other comments I think, I'm not sure I understand the use > case > the patchset tries to solve. > - If this is for UCLAMP_MAX tasks: > As Christian said (somwhere) the utilization of a long running task doesn't > represent anything, so using EAS to do task placement cannot give a good > placement. The push mechanism effectively allows to down-migrate UCLAMP_MAX > tasks, but the repartition of these tasks is then subject to randomness. Why randomness? We should distribute within the same perf domain, no? > > On a Radxa Orion: > - 12 CPUs > - CPU[1-4] are little CPUs with capa=290 > - using an artificial EM > > Running 8 CPU-bound tasks with UCLAMP_MAX=100, the task placement can be: > - CPU1: 6 tasks > - CPU2: 1 task > - CPU3: 1 task > - CPU4: idle > The push mechanism triggers feec() and down-migrate tasks to little CPUs. > However doesn't balance the ratio of (load / capacity) between CPUs as the > load balancer could do. So the above placement is correct in that regard. Hmm. Energy should tell us which perf domain is cheaper. But within the same perf domain we pick the CPU with the most spare capacity. Do all the CPUs appear loaded with max_spare_cap = 0? Worth noting as part of looking at enabling overloaded support, it is important to look at nr_running which I think something we should look at as we evolve this handling. But for now, I think max_spare_cap checks should distribute within a perf domain. nr_running will handle this more gracefully which is trivial to add later for feec(). But ideally we want all wake up code to look at nr_running and I think better defer it to after initial merge.