Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp66028lqp; Thu, 4 Apr 2024 07:16:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUiBNDPsSSKJz7wBJqPBXnxLeicVFgo1ioCiB6I6CN/bKqRmht/V3PSM8RnI0wlOBvHkCNruEKCFc62BG+5npZqrJWtamR8LZLAn3RqnQ== X-Google-Smtp-Source: AGHT+IHh+30EW6mmkEst7Xq9/oQp+DTqT6OTm+R1ErD2PBuSmOFzfN/HbEAo32tg/zIL2SQf+1we X-Received: by 2002:a05:690c:dc3:b0:617:be0d:efa8 with SMTP id db3-20020a05690c0dc300b00617be0defa8mr1308213ywb.25.1712240199337; Thu, 04 Apr 2024 07:16:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712240199; cv=pass; d=google.com; s=arc-20160816; b=bbb7/qc1zVTDYGmXDzWbhhqYDT5piGwhIOWKkLPwBoeJ8FJBJd6+HWgzBil/9nAeKz kqJ4nwva/bTtN8DQpqIkLK/7KFvU/UXJpOd05QHWIX7te/hCUfPZPJs43YpAhvnzxwNY kf5Kg+NkQpUe7HXvndWcE2svNFO5sAFFoSHFdhiJsck3IWoXGZ+ZRdvG0vLK9Hf7sNn1 iuKwUNpyM8bGGoSr7f+7e6pemMz9hoBXeDjO4gjxFSi//HjlkyzhcD1MVtyiyQr48kcM Y1Nvo53mfLgnfyAAW0UKELhKtj2UWVqFFWI3zPmystPJXJ3xShNkp5zWWqQsUWvKk3fF Eugg== 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:to:from :dkim-signature; bh=ptd7fVXwM8iorXoyMAIOxNI8I0XxkLrDM0twBrkDu44=; fh=BlTnU4Epz/A4c7seKw7GfK7hwDJXcuqto88IS83ddiE=; b=A3zI9Mh7YLJgD0jAd7CFiqd7xlD7Urt5r6xXoURw7K/jqdxsY7HtjkVPZv96FhHL5W XULO3uBBB1bR/s0mRXlhULmnoYnmlIBECSb1wxUwkCQ8LkpXBDCh9hLNRDRP8wQeHB5j eIW7yf5PkeKLv8yPI6jEtdpf1N98rWtcoD+9cpen6aWl3mWhazvidExYQs0cpjY1r9It PbVSrimR3zTehzI+/gH/5VEj3aQ5A6mb8zJAJE4vKbOa/SKZ0le3UwtcCxFJhtByZP/D doGjeuO13pAOxz5k0TfvO7xZUlusHoBcmwUILCptRxRGRH3rD6EirNU4uKpZ2Y34Mroo DXsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HyAUxtnE; 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-131576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131576-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c25-20020ab02619000000b007e388ed983dsi883007uao.20.2024.04.04.07.16.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 07:16:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HyAUxtnE; 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-131576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131576-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3DACF1C2902E for ; Thu, 4 Apr 2024 14:14:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79B9A129A9A; Thu, 4 Apr 2024 14:14:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HyAUxtnE" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 E089D1C14 for ; Thu, 4 Apr 2024 14:14:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712240065; cv=none; b=QLqcxLI43qEMeeSRJwg44RyXjx0lAMNK9pWi62yUehNDy9x6yZVgiBVr4g2xWDMSiaL+4OCydOMFVaoyPDN4B1WMe8wKf8jTZ2eqG5t5ATXI78xsAJGjU0xK9uT3VlWQGkudwZlFqnmhE8hTQPS9Y5A6/B5cBDjz5tQW1dvkga8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712240065; c=relaxed/simple; bh=M5cKSgIktruIPlmfo2M4VwRJUWCSGqh1YHcsOA1luPM=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=uz9UOSgK1VU5cKa+jEfl0RPZt/jJEBiQnzJmmGkiGb9SAm1HwIWY4wCkpfi//qSNElRPmvLFouEz60iMs83pc23dJPHOVKO+3Ag5AaxWTkiCsCkcqilYez0+dE/bvYewtUYpvfbPQcYMk3sk5WS7MSSLsTzpvjGP7hOItOyNLy4= 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=HyAUxtnE; arc=none smtp.client-ip=170.10.133.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=1712240062; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ptd7fVXwM8iorXoyMAIOxNI8I0XxkLrDM0twBrkDu44=; b=HyAUxtnELeU2sWnr+56SHshEUUbm9oWd1d4R8DfOo9G+9B91Fvw+eTIkt0/tUGwu5fCLt7 LxtIgnV3npsm6jL1Hd389wQHuPHg6h+RaSaawCAIoo4TkD/DLbt2YN8F/ADfXSsJD3E178 lxmMjQsfbizFh+1Y4TMRyZ1+Bfmm/WM= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-212-v92L5T_TOj-6fMhIC_fWzA-1; Thu, 04 Apr 2024 10:14:21 -0400 X-MC-Unique: v92L5T_TOj-6fMhIC_fWzA-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-34370ba4105so590857f8f.3 for ; Thu, 04 Apr 2024 07:14:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712240060; x=1712844860; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ptd7fVXwM8iorXoyMAIOxNI8I0XxkLrDM0twBrkDu44=; b=VevXWRi5r6rY2LJWtOyW2fNBO+8kbnDPrlqD/eQIgSSFl1fnDE5izA5YdUo+dOKqEL l+neKNVyLPjtWV1FZkCzbz600UBMexA2/uT/C9FFxiL1scPOmtO9AK1aWtpj9DompmPT Wh90MjctOlclNjN2eth+CVwf4k4QzrgoYA/cJlnO81+UuRFZtYRe64iLk12wpvMOkRxn m9/T65Mr+YKEFU3NDP+wvKk2Jqvwadq3mk6K+qsG0HKLAQZah4Io6lpPZ+4N/ujPyg8C OplSsEpiSJoj0ak5+9ARXuO44+sZk026pjTci1+GN1pwT3QNOgDtzRUiuE+GKJ5PdyQc xNuQ== X-Forwarded-Encrypted: i=1; AJvYcCVReYdzgcFwP1RQANJkDM3+YFW9PrCbO40TN4koIOh+J/Rfzzp2hVZzcfb+qKFhIM9ZhqIZDhbh7sx6mP5wvFB81lyAbHoKOiWVNAQ8 X-Gm-Message-State: AOJu0Yy2fQ6OdLlFJt+tm7NrCgTPuGQl8Ii54yhWytmlgx9egS6I7W1h MQupOe2d+PARKzhLjZySQEFfQP8FdhWQ4CSFznnVLpSDd/jJmeIlO6tB7hxiR0W6q+DfWANE2JQ viNIhR79OAUAz9MbcUW+HgJxaIfy9Ckcv/i+Mf/Br26HmN8uHHQqTLmtQ4pxKdw== X-Received: by 2002:a5d:5451:0:b0:343:8026:1180 with SMTP id w17-20020a5d5451000000b0034380261180mr2349310wrv.4.1712240059806; Thu, 04 Apr 2024 07:14:19 -0700 (PDT) X-Received: by 2002:a5d:5451:0:b0:343:8026:1180 with SMTP id w17-20020a5d5451000000b0034380261180mr2349293wrv.4.1712240059473; Thu, 04 Apr 2024 07:14:19 -0700 (PDT) Received: from vschneid-thinkpadt14sgen2i.remote.csb (213-44-141-166.abo.bbox.fr. [213.44.141.166]) by smtp.gmail.com with ESMTPSA id bn24-20020a056000061800b0034353b9c26bsm10255716wrb.9.2024.04.04.07.14.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 07:14:18 -0700 (PDT) From: Valentin Schneider To: Vitalii Bursov , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , linux-kernel@vger.kernel.org, Vitalii Bursov Subject: Re: [PATCH v3 1/3] sched/fair: allow disabling sched_balance_newidle with sched_relax_domain_level In-Reply-To: References: Date: Thu, 04 Apr 2024 16:14:18 +0200 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 03/04/24 16:28, Vitalii Bursov wrote: > Change relax_domain_level checks so that it would be possible > to include or exclude all domains from newidle balancing. > > This matches the behavior described in the documentation: > -1 no request. use system default or follow request of others. > 0 no search. > 1 search siblings (hyperthreads in a core). > > "2" enables levels 0 and 1, level_max excludes the last (level_max) > level, and level_max+1 includes all levels. > > Fixes: 9ae7ab20b483 ("sched/topology: Don't set SD_BALANCE_WAKE on cpuset domain relax") Not that it matters too much, but wasn't the behaviour the same back then? i.e. if (request < sd->level) sd->flags &= ~(SD_BALANCE_WAKE|SD_BALANCE_NEWIDLE); So if relax_domain_level=0 we wouldn't clear the flags on e.g. SMT (level=0) AFAICT the docs & the code have always been misaligned: 4d5f35533fb9 ("sched, cpuset: customize sched domains, docs") [2008] 1d3504fcf560 ("sched, cpuset: customize sched domains, core") [2008] History nitpicking aside, I think this makes sense, but existing users are going to get a surprise...