Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp920338rdg; Fri, 13 Oct 2023 05:24:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGkv2+L0kHk/kVu3gnpnEHOnIM4aHGO9QfUSmXXWcrtlUYfHZSViS17yG/uQmDzlXfugkl8 X-Received: by 2002:a17:902:e74b:b0:1bb:6875:5a73 with SMTP id p11-20020a170902e74b00b001bb68755a73mr30988172plf.2.1697199898244; Fri, 13 Oct 2023 05:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697199898; cv=none; d=google.com; s=arc-20160816; b=Q88DlUf9YbVGJPOx7zoBhyDBQAhHMpb2bwVQ2cT6JhMO0YpReiS/SsQEJTDCGYtYuH tTAdFtjNHZMERKjEppykluex1r16jqs8/mlrK9HSeg6wK/GeAZtqlG19DExIp294Mdja BOeZ+Y/g5kBcEYUsTFJtDqUx0mTFPHJfVctt0LWH8QDtUu/i6Pdy7Ez38mQy1UIUNMUF 6zkiuO0BjCunbS05JzystJI6CnztTvCax7PsQSBrMdBn16NYM0xxX3d26uqqgT9FYubp /EzbyMY/47fueEUICGL5Lt9o8GIjm1JtGlm9dVxoBZF9TcNLoVaR8RSetGkrrge/5h3I b86w== 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=vwN+VRkxykWHFEl4T0SvO4kStJ12qK5OjC3MhcTM/F4=; fh=0uQeQr6fdCfubGNLzDwOy6+x8/D8XhLMjkLlifjBbrI=; b=Bfu5VQ2jcT4xn/jMYoRgwStkTWddiVo6uyZRvlIqivUYie1GdZIeuBgE3ixE2Wli8X JJJE08jin7gVdA5XDbM6q0zQiKG+Lq92uWYBBL8dWjizt83Byta6TSS7IhvvttLWHczn 6J6wM/NTi9Z3V0Li8r81F/OKuW+rplEoUL+/Xch56jY0VhYVWFJJmKE95yVkxojQjXOv oh2Z8jUGi9AoIboCw1aIn3ifQ+6lzUUEN+WRkYPHQAlaV8pyP/1P4OH7yjYOKBm1sQAe eRMkGvv/1XvwCs/fKnLM1L8gJ2pZp1vIF1xl0liX+qwLtBcT5yZ6uEWMz2uEp3D5lIZA WU5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=biLIm7Fc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id iw12-20020a170903044c00b001c1e1fe16c7si4120585plb.236.2023.10.13.05.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 05:24:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=biLIm7Fc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 902EC834B537; Fri, 13 Oct 2023 05:24:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231660AbjJMMYe (ORCPT + 99 others); Fri, 13 Oct 2023 08:24:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231686AbjJMMY2 (ORCPT ); Fri, 13 Oct 2023 08:24:28 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17A5EA9 for ; Fri, 13 Oct 2023 05:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697199822; 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=vwN+VRkxykWHFEl4T0SvO4kStJ12qK5OjC3MhcTM/F4=; b=biLIm7FcQ8Wa+uBdjxl0crwzyVE7fBShJldmJmRgGtI6o8W7wxpmjq6NN+V6JkjZOr0WfM tGjYb8t4mZe5rF2S79sJCKTDpqN7+eQoAf/Yx167VpXA023MJVDRDaNYEuKojfLfl+hXzb H9GTRnvZE8dJJBsh3twAPfaapvKxKxA= 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-647-Tn6ZvY3WOyGPTjrkKiO8Hw-1; Fri, 13 Oct 2023 08:23:38 -0400 X-MC-Unique: Tn6ZvY3WOyGPTjrkKiO8Hw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EEE4F81D785; Fri, 13 Oct 2023 12:23:37 +0000 (UTC) Received: from fedora (unknown [10.72.120.12]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D7E13903; Fri, 13 Oct 2023 12:23:32 +0000 (UTC) Date: Fri, 13 Oct 2023 20:23:28 +0800 From: Ming Lei To: Frederic Weisbecker Cc: Tejun Heo , Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Juri Lelli , Andrew Theurer , Joe Mario , Sebastian Jug Subject: Re: [PATCH] blk-mq: add module parameter to not run block kworker on isolated CPUs Message-ID: References: <20231010142216.1114752-1-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 13 Oct 2023 05:24:53 -0700 (PDT) On Fri, Oct 13, 2023 at 01:26:08PM +0200, Frederic Weisbecker wrote: > On Tue, Oct 10, 2023 at 08:45:44AM -1000, Tejun Heo wrote: > > > +static bool respect_cpu_isolation; > > > +module_param(respect_cpu_isolation, bool, 0444); > > > +MODULE_PARM_DESC(respect_cpu_isolation, > > > + "Don't schedule blk-mq worker on isolated CPUs passed in " > > > + "isolcpus= or nohz_full=. User need to guarantee to not run " > > > + "block IO on isolated CPUs (default: false)"); > > > > Any chance we can centralize these? It's no fun to try to hunt down module > > params to opt in different subsystems and the housekeeping interface does > > have some provisions for selecting different parts. I'd much prefer to see > > these settings to be collected into a central place. > > Do we need this parameter in the first place? Shouldn't we avoid scheduling > blk-mq worker on isolated CPUs in any case? Yeah, I think this parameter isn't necessary, will remove it in V2. Thanks, Ming