Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp48028rwl; Thu, 30 Mar 2023 11:59:00 -0700 (PDT) X-Google-Smtp-Source: AKy350bgQwHquRn7dSLGjQkDa0XrDqYmcxVuTXPLMtP6AOEjIO5boMwbXtm4LN2bHd+WW8WkMHxJ X-Received: by 2002:a05:6a21:3381:b0:e3:e236:bbd4 with SMTP id yy1-20020a056a21338100b000e3e236bbd4mr3646698pzb.2.1680202739971; Thu, 30 Mar 2023 11:58:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680202739; cv=none; d=google.com; s=arc-20160816; b=Cm9MjusLVokaisixnU6QnuW1AZohCgj3YsoVSBoStvrzNNq/Qlu1NlZiT1cXUxQY+o TqyiEdqn2XP6t9IJlMB+A3HI+PIcKEUQ2RfutrKyduQsOKc5S8H/o+bL/JOC7rxNC2VV +JU4LcIZSr86P6eTyevK90YVc8PmFcNupK6EW/LNRHC1CzGp8izQQ3Vb0VJJiCFhkHZM +tQN9FcfTsL8F/J4t4/axqOu6H6rvrtCOTUiQ6D/05wvQc1h3etCrOraaT5lqoTVQobs emeGfajdn9ZHIWYw0Utsdq1S4B7CFz4sEDeM3lJzuh2McmzyANPwryTei9l6c0xbKBG0 zIbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yILtE8G0wRpMYBAf60dk5xAKt3MM/0au1zweuUxeqC8=; b=B2NOw9/XsQNzem5aN/u3snNe9E1l+/wPpP2OZo5xJocfOdjFB8MiuMKNdsjFgTeULN Dt969jlvPbRepRT2VJEO7+YvhG1S6D9lyeIdnpImfu4rJa0yVw2vesrbstOnieFBHlA+ Ze7HTe5aJeLiwtUuz7CZuEiMNed9zSf0BOq0BQtxtuffA0pW8aqaVP6EAK7+ByU9FbRO mhdm9HEhca8x7fwJQLbieiSKJnILG7juJ43lqcX4Kg8jlOKL+VNLsEEi3MhqACAT4Aad 3OBMpFrPgafdLYzggAl+FUu1/4c1AhvWR0BQgRFbaaQcMypVdUpLJLhFowCMb7o6/pKD RFDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QIJ71ERf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i126-20020a625484000000b00625edf717besi386784pfb.259.2023.03.30.11.58.48; Thu, 30 Mar 2023 11:58:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QIJ71ERf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230487AbjC3Syr (ORCPT + 99 others); Thu, 30 Mar 2023 14:54:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjC3Syn (ORCPT ); Thu, 30 Mar 2023 14:54:43 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77C05DBD1 for ; Thu, 30 Mar 2023 11:53:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680202435; 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=yILtE8G0wRpMYBAf60dk5xAKt3MM/0au1zweuUxeqC8=; b=QIJ71ERfbwrnXMzQG+p0Hq8rcMnghIdkBvJ6J30GYzIIRZQbsBZ2arjmrWmhjMRwL7LsaH W9jP4laVXGDdW5SuSayn/+KQRSrdlW4gEJNoUjrSdxiTBFoauhuRg8P0m5JMxH4v4GGPH6 FiVYMWj6BLkCXBOBrrwnPcwYS4eM9Xk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-148-wFNaXMt2O9-prAhtlP8RLw-1; Thu, 30 Mar 2023 14:53:51 -0400 X-MC-Unique: wFNaXMt2O9-prAhtlP8RLw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F39B6811E7C; Thu, 30 Mar 2023 18:53:49 +0000 (UTC) Received: from tpad.localdomain (ovpn-112-2.gru2.redhat.com [10.97.112.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B4DE04020C82; Thu, 30 Mar 2023 18:53:49 +0000 (UTC) Received: by tpad.localdomain (Postfix, from userid 1000) id 3C6FB4038C70D; Thu, 30 Mar 2023 12:21:22 -0300 (-03) Date: Thu, 30 Mar 2023 12:21:22 -0300 From: Marcelo Tosatti To: Michal Hocko Cc: Frederic Weisbecker , Frederic Weisbecker , Andrew Morton , Leonardo Bras , Peter Zijlstra , Thomas Gleixner , Johannes Weiner , Roman Gushchin , Shakeel Butt , Muchun Song , LKML , linux-mm@kvack.org Subject: Re: [PATCH 1/2] sched/isolation: Add cpu_is_isolated() API Message-ID: References: <20230317134448.11082-1-mhocko@kernel.org> <20230317134448.11082-2-mhocko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Spam-Status: No, score=0.9 required=5.0 tests=DATE_IN_PAST_03_06, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 30, 2023 at 03:28:52PM +0200, Michal Hocko wrote: > > > Is this a best practice documented anywhere or it just happens to be > > > the case with workloads you deal with? > > > > Option 2. However Frederic seems interested in matching the exported > > toggles with the known use-cases classes. > > > > For example, for this guide: > > http://www.comfilewiki.co.kr/en/doku.php?id=comfilepi:improving_real-time_performance:index > > > > Using nohz_full= would be a benefit (and its not being currently set, > > perhaps due to not knowing all the options?). > > > > http://www.comfilewiki.co.kr/en/doku.php?id=comfilepi:improving_real-time_performance:index > > > > > > AFAIU the workloads for which disabling nohz_full= is a benefit are those > > where the switching between nohz full mode and sched tick enabled mode > > and vice-versa (which involve programming the local timer) happens > > often and is therefore avoidable? For example switching between 1 > > runnable task and more than 1 runnable task (and vice versa). > > The patch from Frederic is testing for both. You seem to be arguing to > reduce the test and I still do not understand why. Sure some workloads > (following the above) will likely use nohz_full= as well but does it > make sense to build that expectation into the higher level logic? What > is an actual benefit? Just thinking of simpler code. Feel free to maintain the patch as-is if you see fit.