Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp481857lqc; Fri, 8 Mar 2024 03:26:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVDzW+hD/6/VkbWtmjO7LJa3+q+q58KcfDp8Ifj+NrEpgnLRbCB+uunuUP5jJEiUfkpkjnV7ZehQfr/3FCaPniUPEnhVBgpdVrdoU8IJw== X-Google-Smtp-Source: AGHT+IE+uX4/JdwLBCGk8BFX7NFZQDa5oxplkXVOdJJPe/Wo+YQJCX3uKq8sJniVkY4PSHg+uF5Q X-Received: by 2002:a05:622a:93:b0:42e:644a:ab8f with SMTP id o19-20020a05622a009300b0042e644aab8fmr13115002qtw.6.1709897176900; Fri, 08 Mar 2024 03:26:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709897176; cv=pass; d=google.com; s=arc-20160816; b=MoBnnz6WMTbiBAwCnMU1R/hRLLOMMEzYaIciPiI1qcn2578H+lRFsvEfL43hvd2kxC qHqK1mCjr8RYydJxreEBt9b9g0RjxpmXJ0UD9MRe2xNkIYaWl0CO2DViYjN1oNiL7QTW 13HYW9Vfj8Tv7EBHBUa3M7QifQJLCAWiZvg+s7RldqpjmywskIglxHg8S9kBdJCzr2yO EThxCr4sGC126DKOzxLDh3JFf+icCw/LhguorWndwVsK517OGdQI0dFTPrx6ktE1rAQH OqXjU+bTzap3rgAzzL4BQWP68BWffL/Ith3HPvBKgiW07o1sseqyDsz5msW7OmGPKM5V Qnyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=fNeg4yhr/3u8GpTRBFZQZ6wGSUgg4jp42cdMOAyaLTI=; fh=OcJXSzmkLDbgQwS3rZxaE49G8zF2FryOX8LPvjExb+Y=; b=hR6TzUnL66cCTTjq2q9+DqYfyGnJp3K/c/EFyl6osYjL2jQrhrBSRuzaG/gjHJ9AJ1 EPSMpemGqY+/Y9sehxAKd5AmNv5UxjzbuHpJXy9DbhpgxdpgyBjhycTex0GuYj2raYVU A2CI6BEo6w+FHSrSPWIaain4rie2RV8gYxlNqkRkbn813WAQt4CITObVOdJzes4Z2vkD 7S6IJDkqZ1Lz8YQp1PNlov0HjyRJ/RxI48iI826juLY/ExOTCKhJOS3YyDKR88TGQ6x/ Ju9rVIm5zTxOUvU3AFkZrSjdFvomLniyPajrjUxH9fhKmDtT9EvH3G+5/+Yxb80U/ETH C1sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HGLkbCIi; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-96928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e9-20020ac85dc9000000b0042ed109d771si11805248qtx.308.2024.03.08.03.26.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 03:26:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HGLkbCIi; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-96928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 37B4D1C214B0 for ; Fri, 8 Mar 2024 11:26:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BF9A55E67; Fri, 8 Mar 2024 11:25:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HGLkbCIi" Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 C975555C3F for ; Fri, 8 Mar 2024 11:25:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709897129; cv=none; b=B9hHXFUImkF2LdOKpkyr4tPWzWj68adJ3JcYPZlKC8KrTH+Ah0tw8CBQg5qtGlpg/8yYkCesoRGBIVuskp8EENs1lgGJq6lC/lCxhvRhMkANVZcEAorfIeXsyM/l2OHpgUw//tqtuqWNKFV7kfG2hH39gfCh1t8UrLz+x0wqqX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709897129; c=relaxed/simple; bh=/cOUoq0pPmQJ/61Wbw6wQLXN/7hfj8X2V4O0MdPSRCo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ImGbc4/jMEHASkSDLbWQJU4lnHcER1VOUsprxC/11yohr9PaDIgAX45XwxBBypd5xvk5u008g7tvDaKygh9cpcK41PrOJcxWCcnKQn9CVpgXxWaXvHMdoauUxdBLyu30m9XAj3XGAsx4ibkCAq6gOIHkjntanNnB9CmDYiiLFbw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HGLkbCIi; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-412f0655d81so5684235e9.2 for ; Fri, 08 Mar 2024 03:25:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709897126; x=1710501926; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=fNeg4yhr/3u8GpTRBFZQZ6wGSUgg4jp42cdMOAyaLTI=; b=HGLkbCIiPU6WjM39f6VeRQH8p8CgXf587j/18uvf3Txyx/4bB/hByu3gbj+ydl+IIA qzZ+pw3NOYc+lBW9wnBXQPCZF1q3VwHicJgockk9xZkMrP2ERJy1T3BqQI76lv1K4UW0 6apJM6TPiIsBGxXUKQwENpiGELP49611MjiDY3DVo7lH7w4QJUD643pldXoUTCgmVqJW CqjVBUDrYXZ0Au9TDwzusALSASgpFPjB7zHq79weKI2Jb+j2su150sGFbUuydKFp2eEG +cyrC3JxB2y+ZBXwlg3NBVpOCE0KxBA7EELcjZ6SwSHLLIxcN/+gskI1MJWswR6YQJEG 82jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709897126; x=1710501926; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fNeg4yhr/3u8GpTRBFZQZ6wGSUgg4jp42cdMOAyaLTI=; b=lsRoMWz6sBo9k+p/jh0G58ePgPohbgA5Hdle5IMgOfJH5KQXAYADLynxmmAxHhqBXA p0he2/STyIDsYsJeL7RFZRoAigTBPUn1UWI83kl1mf4ucT0bgz8MMgC6/IJuXTd2WHEt vV+RYh6iTNVa3NySKojTUHRuVMXSkAifn5vLFImGzBTyZlsI9ElP0Lw+PknjRXUUS1ha 5nQQnxs4QWPT5iBW5/2MsGYpnterCsni5Uvs2InLjuYCeYwz5EnXQMvzzy8ajpXi3QD+ s65pvJbsQ41DzW3Z2O3EwdV5t22GEtBUTE3gP9Ne4CY6DuZ2cEpV2ldzAyUHzoe85Aar ftTw== X-Gm-Message-State: AOJu0YwPB6uzT9lRp+G+RWFghHKAAW2kT0hkzD0RiqTm9HNkCgfWClA1 i4S4de7CjwKPdy97q7h8HTZYiJODn3cZ1ZHdeHTEidEzQJdbg9VYlYC3EQLPfck= X-Received: by 2002:a05:600c:1c0a:b0:412:eef2:f92c with SMTP id j10-20020a05600c1c0a00b00412eef2f92cmr6845785wms.31.1709897125996; Fri, 08 Mar 2024 03:25:25 -0800 (PST) Received: from gmail.com (1F2EF3E5.nat.pool.telekom.hu. [31.46.243.229]) by smtp.gmail.com with ESMTPSA id bq26-20020a5d5a1a000000b0033e2777f313sm18040865wrb.72.2024.03.08.03.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 03:25:25 -0800 (PST) Sender: Ingo Molnar Date: Fri, 8 Mar 2024 12:25:23 +0100 From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: Dietmar Eggemann , Linus Torvalds , Peter Zijlstra , Shrikanth Hegde , Valentin Schneider , Vincent Guittot Subject: Re: [PATCH -v1 00/13] sched/balancing: Standardize the naming of scheduler load-balancing functions Message-ID: References: <20240308111819.1101550-1-mingo@kernel.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240308111819.1101550-1-mingo@kernel.org> * Ingo Molnar wrote: > Over the years we've grown a colorful zoo of scheduler > load-balancing function names - both following random, > idiosyncratic patterns, and gaining historic misnomers > that are not accurate anymore. > > We have 'newidle_balance()' to rebalance newly idle tasks, > but 'balance_domains()' to rebalance domains. We have > a find_idlest_cpu() function whose purpose is not to find > the idlest CPU anymore, and a find_busiest_queue() function > whose purpose is not to find the busiest runqueue anymore. > > Fix most of the misnomers and organize the functions along the > sched_balance_*() namespace: > > scheduler_tick() => sched_tick() > run_rebalance_domains() => sched_balance_softirq() > trigger_load_balance() => sched_balance_trigger() > rebalance_domains() => sched_balance_domains() > load_balance() => sched_balance_rq() > newidle_balance() => sched_balance_newidle() > find_busiest_queue() => sched_balance_find_src_rq() > find_busiest_group() => sched_balance_find_src_group() > find_idlest_group_cpu() => sched_balance_find_dst_group_cpu() > find_idlest_group() => sched_balance_find_dst_group() > find_idlest_cpu() => sched_balance_find_dst_cpu() > update_blocked_averages() => sched_balance_update_blocked_averages() Forgot to mention that this series is on top of the scheduler tree (tip:sched/core) plus my other pending queue: https://lore.kernel.org/r/20240308105901.1096078-1-mingo@kernel.org Thanks, Ingo