Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3164048lqp; Tue, 26 Mar 2024 01:00:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuBL4G3PEvSvsf0jyoEHYy+NoRSsqMDZPkHCy2WvIVmfGSGwn+TfJA60+jC1l20JMo21joUNc5BoGCDPVqseMoDGuVajOqeLzcRffX+Q== X-Google-Smtp-Source: AGHT+IF2qxnHZZ3+YanbUNGpngBomcyNIPu0MKG7cv+VYsrOLuEby/v4CkHlxCv/qBODYMtHiP/N X-Received: by 2002:a05:6870:4205:b0:229:e6ae:d1c2 with SMTP id u5-20020a056870420500b00229e6aed1c2mr11013780oac.2.1711440055378; Tue, 26 Mar 2024 01:00:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711440055; cv=pass; d=google.com; s=arc-20160816; b=aV5B2gLxB1r2Njbn74UkT7ZiurqvhKHuOaiSGRcWsfotMxTh83RgzWEatOdvNDY2p1 O0dI3/234LKnk/oodLWye76pvYJPeZByMpTvPEtEaXFiOBLldX3HlbXO7DalXeW2a9QL Hl4HzaQkhIkT1Jcm97BBeG246ZffkF2RUypVCOZU+//fN3JA1zrv8ZZflSCPfVj/65bp rGG3L8DBPHmdF6bq2qL7EyDML3szW0KKsxfd4MUDORemsIRJsDDjuwTyALaj7otXA6+i t0fcFUF2TpFAA1JK75UeFgLapF2syh3IQ8PbJt1oX53u5MXh6fa21O39Z9IM/Af4EsBT W8FA== 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=cVV9SsT8yjPiZohWj6zll+WF7QMruuGTauASL9U5jK4=; fh=P00QQqcWimCWdb3CUCgVfF5qVtoQyBYPvOBy0afayFI=; b=aTQYZ96rHwGIdH5wN6GwUdJZTrLgbr3vBlxKQGMa22aRstGILkaqroTYWmQRWDmHde swrn1bZ15ai0HfEncU2RprxOr7AeqYNfh9FA0O0vwHTJ/A3FCqqmjLKnlaoDFp6Z/uY9 J4qzv4a7CUWknkrm0ExBoKmZSeUDM1AhMTQpapqqDGGRTzdjykbeqVzegbl2SluKOYZH IDYZ0jm+NMeXh+Qk6oGF5TW++qMpRb9WCiSxB7JHZqz1cOpK/1WdhuV5ZNoGysaMwRby ggCngA/trDfctRv43Bx4JAjZuc2rNQjXLVO9daUJY0x+u9N7J40PazhTVpRi+UUzGgeb B3OA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QJjGLE1N; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-118500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118500-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n21-20020a635c55000000b005dc529adfbdsi9358131pgm.735.2024.03.26.01.00.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 01:00:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QJjGLE1N; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-118500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118500-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 90D35B212A1 for ; Tue, 26 Mar 2024 08:00:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2303132C23; Tue, 26 Mar 2024 08:00:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QJjGLE1N" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 40F6518C38 for ; Tue, 26 Mar 2024 08:00:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711440043; cv=none; b=FOQl0Ph/+d0ZJAqAOj3c/PieIsnromwDFntN4PjnM7OkcTX1upvrI0EMDjZ10d5HPBieK2AytpnKeTqXkBhOYfqDN75j/bYABDspcdclgZnV7Z4RoGRdggNvTDIPVzvVLhggzrmTyeL4Qz8GSViZ35SdfqOQ/gTUcS0FY3udpb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711440043; c=relaxed/simple; bh=6MaqMWqkhOmxMrgHOZoSKLlk45zsUaUQaGJ4Twhftac=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jFd8Tis6SzF9T4utq6F6Ac+/RKl+z8U5Xl8sdpTOBSq+hViuOiGVR1TF2lVyYPEvsuJx2UNzccxk3tji4aY4m6h0p+bVAS5C9iIolFqAbecTfnU5DOa1Q1PAWBNpZcowZ/3fzsFBGO4lBX2gN1+35ZBElIFfpdIOnqbYkgclTCY= 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=QJjGLE1N; arc=none smtp.client-ip=209.85.218.45 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-ej1-f45.google.com with SMTP id a640c23a62f3a-a468226e135so613023466b.0 for ; Tue, 26 Mar 2024 01:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711440040; x=1712044840; 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=cVV9SsT8yjPiZohWj6zll+WF7QMruuGTauASL9U5jK4=; b=QJjGLE1NJsyCpceE7UeZrI4WhsHD+ijVXVMlYp9wbFGiDR8uczEpcYG5ftSRvWzTu9 KC/rgJv8WOpr0AZW32L2kpBID1MFnwNFd+RmxBRIRma253ioMWCfpohYCQwgOy1hGLrM HZDJXXZmQU81W6QDkHx2yfEgrLlZtlruv5MK2n9RUWoInHR9qNrREFzYcoWROZTBkjF8 gKsc+UnPMymJ9kOgI8MEHWQCvBx8Lpe8BB1a5LlLwzvwpFy7r0RFEp6GxOt068DCiJIl t7VB7u1fDu8a6p8LdoT3HLPo5BHdQZHqtRtdWhu3cjpdm3uwRceASYt94bZZx5KmOcLv Y3sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711440040; x=1712044840; 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=cVV9SsT8yjPiZohWj6zll+WF7QMruuGTauASL9U5jK4=; b=SB5FxhmBWOhS4pGmOMlEmUoYxO3/+uzvKcBStCA2MVIEljtP+wx6+dbe86YJ6/WtJY RWF5a+/q4gabPu5vrCBECJey5N3n3cjZTiJBaqotHRZEaQEVkjmiPYpXDfSWYMWea/3Z tEyraau4wlN0RDk0ou52TMzbwzKFQCPzs+7ftFuRVZBbMwukJONYaq0mSg3UrGGdN+AN vRsYAUlIDntfXVXqy7RCKYldqCydZmyFVwa7O+E1SepXOrloXU31I/Mj4ZcpZY13LBx9 9gNruR1MoVITGP1L2mzYh7hcMGfkuM2WeJZ37x36X6UVs+ZRutd3dtyHzfyaHj+YRzqF mM2g== X-Forwarded-Encrypted: i=1; AJvYcCUpMX2dExaz6ZIb7reTDVGGcKCRr5G9AlWEhxUmxiPV9kf9EcR83wVBgIg0bqFwZoGTVaJdfvX/VOF9YrbIEHf5QKZJ3M1QY3Ty3Pk9 X-Gm-Message-State: AOJu0YzpF8WuYB73Y6tHTjj+w+rlyRchiuNA4zuNBc29oq0vu35lX3Ui pj0wbzHC64+Es3rBgfRHpev8rYT9IKPxYC0wBXZsWrgo2tBw1ez0 X-Received: by 2002:a17:907:7f22:b0:a48:56b2:d988 with SMTP id qf34-20020a1709077f2200b00a4856b2d988mr1704578ejc.59.1711440040130; Tue, 26 Mar 2024 01:00:40 -0700 (PDT) Received: from gmail.com (1F2EF63C.nat.pool.telekom.hu. [31.46.246.60]) by smtp.gmail.com with ESMTPSA id a27-20020a170906191b00b00a46bd891b5bsm3942106eje.225.2024.03.26.01.00.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 01:00:39 -0700 (PDT) Sender: Ingo Molnar Date: Tue, 26 Mar 2024 09:00:37 +0100 From: Ingo Molnar To: Shrikanth Hegde Cc: peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, qyousef@layalina.io, linux-kernel@vger.kernel.org, vschneid@redhat.com Subject: Re: [PATCH v3 0/2] sched: Minor changes for rd->overload access Message-ID: References: <20240325054505.201995-1-sshegde@linux.ibm.com> <3c92c18b-6a19-4477-9972-1219c29b3d71@linux.ibm.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=us-ascii Content-Disposition: inline In-Reply-To: <3c92c18b-6a19-4477-9972-1219c29b3d71@linux.ibm.com> * Shrikanth Hegde wrote: > > > On 3/25/24 4:06 PM, Ingo Molnar wrote: > > > > * Shrikanth Hegde wrote: > > > >> v2 -> v3: > >> - Wrapped check for value change inside ser_rd_overload_status > >> as suggested by Qais. > >> - Added reviewed-by tags. > >> > >> v1 -> v2: > >> - dropped Fixes tag. > >> - Added one of the perf probes in the changelog for reference. > >> - Added reviewed-by tags. > >> > >> tl;dr > >> When running workloads in large systems, it was observed that access to > >> rd->overload was taking time. It would be better to check the value > >> before updating since value changes less often. Patch 1/2 does that. > >> With patch updates happen only if necessary. CPU Bus traffic reduced a > >> bit. No significant gains in workload performance. > > > > Could you please post this against the latest scheduler tree, ie. tip:sched/core? > > > > Thanks, > > > > Ingo > > Hi Ingo. I had mentioned the same in cover letter. Sorry if I didn't > mention it in the correct place. > > *These patches depend on below to be applied first* > https://lore.kernel.org/all/20240307085725.444486-1-sshegde@linux.ibm.com/ > > After that the above patch would apply. OK, I missed that, but I don't really like patch #3 of that other series, so we'll need to address that first. Thanks, Ingo