Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3032802rdb; Tue, 6 Feb 2024 05:28:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpWpH9yJ0c+bLti8NEevgyqqrQeWhP+r9yAysecXA+4gSa+TwmAyaUDvvsxXEZ1XBWsLl8 X-Received: by 2002:a17:902:6803:b0:1d9:ab92:1550 with SMTP id h3-20020a170902680300b001d9ab921550mr1336154plk.63.1707226098247; Tue, 06 Feb 2024 05:28:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707226098; cv=pass; d=google.com; s=arc-20160816; b=xHTyqL/Iw3lAIz8xiqyP7oVI2tLwptn02MrDVm32ukCBsx3dOPsmd0DwOz/Rn3aQ/a rZ4lbnop7AQY8s0eFm590XLEoSG7bZwdz5xRb72jubBgDBHd+Cjtbias7JdObNWxhXpl 8RIRcpMPM8b3Klki/H45dMlp/1WIdsvNXiBQyirPEI4B+is9TUY/XNF6FSF1jUFkOEXn 5/viGr2FWOmtBciDeSUoDpYa7uYHS41gC66NPXrNoM18k2N6KHdZnaBXLP6J+ed7r/Jj EMCSlZc0RKEe+HYLfGvnXrrB0K1DAtt4id4eHLXSRm24Z+EVwPXpjAd8DK8O6C+wRqsm 1aGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=4i3zRtRM11Cg2KpgT0q+2//W7pMM2xt1zWoak+1GerU=; fh=G9ExHD70hBvgF6KEH0bS9vlnOMIBRZXHB3liZHSosT0=; b=hH93lP8zFpC5cOnpUvLP6/pUoE/6EDRE0xsK01+HvHLZm+FTL1wCJARUMkPXfTcqHH ZOjmGKTYYgFr7nszkV0zLd26Ivbq6MAORT5J+kP2M7qVJoMu5T4Hb2XN6C9IYPOdtjva OhRaxLmleiz5LSejA8VpHXTSInjHSu2s80iZeeyBAR9R1ulAVNnHtbWDy5wyGLAzQIVS MS6WHgdOUxGMeCFN6AR3OKMaP3Jp4j8/g67xqnY7PdglhzvFi/xidk/qSZCde5PHQgJL BK7V5On/BZZijpcrXljz/Q5ymf8QETFu2yY/cziHlDEdzY/KhWMuks0zjowVMDCQm334 LG6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=c5OKFycE; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-55006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55006-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCUCIZB7gbzEUFXumfExCzScdOuF/RZ7/N8cONR3yhQpW9axyqnnfzHTozEI2bo9ELZOvRdCm7st2oa0cPaO4K78JPetkx1tLMKnuCvk6g== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o16-20020a170902d4d000b001d8d200621bsi1671451plg.545.2024.02.06.05.28.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 05:28:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=c5OKFycE; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-55006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55006-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 6F59AB22DF2 for ; Tue, 6 Feb 2024 13:17:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70913130E3B; Tue, 6 Feb 2024 13:17:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="c5OKFycE" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6F93130E2E for ; Tue, 6 Feb 2024 13:17:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707225450; cv=none; b=n2+OXn1WpyxYHCYkLrf3fQ/qpHPb8nRfw7FzAAxJpP4t7raw9tSw6E/ycpo3ItOmpRJTpKwjqZJ12a8x4zd+nyPyWR3aBVcqX2fpekJORhcXBHRe7TEUMI8QOTzMobtQX7cJsGRA1o/hGk/zQjxqbIuSxNAKIRXRrB3BIYW3wak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707225450; c=relaxed/simple; bh=4i3zRtRM11Cg2KpgT0q+2//W7pMM2xt1zWoak+1GerU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=cDJec5Yj81BfziCOOeL7PnI4XcKz/8iDr9BJ2jzjB5nOCVCUmPVW2BIJTGaerjuZs4hQB9vyPB3DECKRmxTk3d8EoOWeDEFUl/VSNOvl2fZ4SXHGqVANyG+nktcYvDJdo8I76TmvzQqxSkMNWc04gDRRbPKrLMUdlb9DQ77spgk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=c5OKFycE; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707225447; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4i3zRtRM11Cg2KpgT0q+2//W7pMM2xt1zWoak+1GerU=; b=c5OKFycEeK9v1xhdI8NC9KPHtOa52uJ0PRyj9tZvC8mrWv6ZMGAiyz4vXQJLppCFWKmdac 4UuEmoloNKzyxeLhKLQ9P2EWP6EPUpecIE20S16sNqQtKV2A5ruDbmdT2noxY5KVxQNVLu 66NveEsXgKraWNYduwh35iY3rPHU9zY= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-141-Y3D3Sr9TNKyLFHJFVFsXHA-1; Tue, 06 Feb 2024 08:17:26 -0500 X-MC-Unique: Y3D3Sr9TNKyLFHJFVFsXHA-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-78319f64126so676154685a.3 for ; Tue, 06 Feb 2024 05:17:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707225445; x=1707830245; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4i3zRtRM11Cg2KpgT0q+2//W7pMM2xt1zWoak+1GerU=; b=epaABqJSaW4Pt95KR2dzMMI2G1OSxFtSORsZn+A6/m7eyeVEDT97U8nSVNPhdAvzae ZZU136cbmbsKb8IirF49DReuxklaUlPb4NYMGXzE3jfF8UaoGW09J38UjhblqYcfTAzb yDK2nZExiimjVrzO2xUf8CkjLq3pFBSA6yKrArcvkPP07l7AJnFb8+u3g3NBafRBtrMz VgPe1UtPyBm32D++VTzstHYUPSjiVpQ/JImTiV9Dn6HBRqZS76v4llLlXZuKLzolGmle komo2AXPc56CgcZ1wCD++fxKLCoKXx4evh0w3O/wtld8bdw2gRE5HJZSy8CfHCGgNa0h NTiQ== X-Gm-Message-State: AOJu0YwQDlOi80zH91oUzJtDBBvBaj0Ju6PpvDUgUWqF8WCaZgXgyhlr ggf+J+RyAEU8V0cJu+lGOAbPpMVRktNQuuOS7vJk1ccGRYVgi/1Mx9DrgDCVtjcOF13syxaVuPH e4fJuZr4gqy2zJU9+7jwVkHJGTxc+aOreLuE4BM9RBnEx9k9H94fLGytztdoK1g== X-Received: by 2002:a05:620a:4d3:b0:785:60d6:36f7 with SMTP id 19-20020a05620a04d300b0078560d636f7mr2634908qks.69.1707225445712; Tue, 06 Feb 2024 05:17:25 -0800 (PST) X-Received: by 2002:a05:620a:4d3:b0:785:60d6:36f7 with SMTP id 19-20020a05620a04d300b0078560d636f7mr2634894qks.69.1707225445464; Tue, 06 Feb 2024 05:17:25 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCX0IH2H9+nXjZ1Q8HRdi8rqyjYN++D0V0oiE0yASIfA1mJeoL3phBfHCPsaJWS8UL2wEQp8GyXKWAixT5//NtDlUxuB/KQ+47QSP8B2gJ6NWedFvPBpfHTnPRnMKqKRwJZArnwwtQtLeSnoedJkjzWMZPhSYstCmucHNtehR8NEcUDds+hLfFJrJS3UHNgPRKND5VhBmCEqWb0jBhWRCPrAwP2sFKiTkFq4RbX5jqi4Yyo9kPsT9LQQB6rftXJ2nnDIqIfAARhEFxaxNsmcb+6jjQRpuD+TmdI4vcXw+khLLeCxR/UQnHLRr+CJiJo= Received: from vschneid-thinkpadt14sgen2i.remote.csb (213-44-141-166.abo.bbox.fr. [213.44.141.166]) by smtp.gmail.com with ESMTPSA id a11-20020a05620a02eb00b007856bff53d3sm880694qko.54.2024.02.06.05.17.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 05:17:24 -0800 (PST) From: Valentin Schneider To: David Vernet , linux-kernel@vger.kernel.org Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, bsegall@google.com, bristot@redhat.com, kernel-team@meta.com Subject: Re: [PATCH v3 2/3] sched/fair: Do strict inequality check for busiest misfit task group In-Reply-To: <20240206043921.850302-3-void@manifault.com> References: <20240206043921.850302-1-void@manifault.com> <20240206043921.850302-3-void@manifault.com> Date: Tue, 06 Feb 2024 14:17:22 +0100 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On 05/02/24 22:39, David Vernet wrote: > In update_sd_pick_busiest(), when comparing two sched groups that are > both of type group_misfit_task, we currently consider the new group as > busier than the current busiest group even if the new group has the > same misfit task load as the current busiest group. We can avoid some > unnecessary writes if we instead only consider the newest group to be > the busiest if it has a higher load than the current busiest. This > matches the behavior of other group types where we compare load, such as > two groups that are both overloaded. > > Let's update the group_misfit_task type comparison to also only update > the busiest group in the event of strict inequality. > > Reviewed-by: Vincent Guittot Reviewed-by: Valentin Schneider