Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1549722rda; Mon, 23 Oct 2023 16:46:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEfkdF9w7ZnMI04voBO4FgqF7mYs05JfINKRk+x+v9MqHJR0Z+/FSXx5nJfXzPshp5eC2Bo X-Received: by 2002:a05:6a21:6d94:b0:157:1b5:61ce with SMTP id wl20-20020a056a216d9400b0015701b561cemr1256179pzb.4.1698104784281; Mon, 23 Oct 2023 16:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698104784; cv=none; d=google.com; s=arc-20160816; b=uIdOFaBI68xiDoYqa3bYXjWLLV5QE1RxzM3aczUlI5z5DfaPBMlG92LQ/2Z12kQokZ 0qOR4sd7daOUVJ+LQO6ZOVkg9CztrWC2X49NrPUtupOj1VH+Z9BDKTd/g41is1mTpUax BPID1isN1YUy5qAnfG4k8cPIYfhPNUMWasviqaJQmNVE/pAka0SA69SLSURW1DNhHFs4 /s6QhxU3HfvqumUPxFdmvKgrpPjOtOFwmf0uB8rZDHM8+TxfBsViXDbNwm4idjWiIgKg 386kVcwIRLLCUiZdBfHncp/86THGVOvjkccZOdDlL/Xw72/MntdEM6Bxy3AyUSTO0c5f hvOg== 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=8108ZK/uYMS29R+GboAUTn6c5bPK/gI994W5VC5oVsw=; fh=ZySpWyUKV2x7jBzFss7A/KQV6O9D2ceWOTHnFRd077Y=; b=AaHgvZc5ASWQiVIjcYIPpzTDq3urKFyWC6/vKaJjlPwFQC2UxRdwmeGxnUh1RBu+8d hhIyBpoGqWdXz0zdQduX7DdnsYK+PTob0fLjlYuX+kP5dxCeBbGec/g14yI++Dvv27gu EH5hg8AccJ5r+AMw2CqWTZLdtkgh/zayiGcWLLJD+l6e6crmTEgmipBE92NBLyi3uUGe wF5ISaLIVi5Hh52WQnxiDqAzihjsUQ/DrEijNeCEt9r45XkRY9pa3SlH+eRJiKTit7/E ASFB7/VAFp0pTbmwiAkELQVNsOU61FsXT29qie/3c5fW+HU2XXxcV1m2jwsqS2rcbW18 /NZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="LX/WFddB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id s62-20020a632c41000000b005b86157aa5asi7144326pgs.377.2023.10.23.16.46.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 16:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="LX/WFddB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id E652A8062097; Mon, 23 Oct 2023 16:46:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231467AbjJWXqK (ORCPT + 99 others); Mon, 23 Oct 2023 19:46:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbjJWXqJ (ORCPT ); Mon, 23 Oct 2023 19:46:09 -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 1A503DE for ; Mon, 23 Oct 2023 16:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698104723; 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=8108ZK/uYMS29R+GboAUTn6c5bPK/gI994W5VC5oVsw=; b=LX/WFddBOabZNb4dXlOVtHT6XNQgcFzm5krmHxL2t8h77KU74Ljr1LZLqkNdv4wu3UDfVc MfGn5pSoYA3QgRyhVfKDFnMG4vN+3zLBCvWG90pBBcg6iKCm38rC3/mmgA9yAhOnC0SLUH dPaWs8JGazhXGT2K93lD8+uyXa4Qw7c= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-695-PQtrGROaMdOCysOffZFoLg-1; Mon, 23 Oct 2023 19:45:20 -0400 X-MC-Unique: PQtrGROaMdOCysOffZFoLg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 887093811F2C; Mon, 23 Oct 2023 23:45:20 +0000 (UTC) Received: from fedora (unknown [10.72.120.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2BB8B492BD9; Mon, 23 Oct 2023 23:45:14 +0000 (UTC) Date: Tue, 24 Oct 2023 07:45:10 +0800 From: Ming Lei To: Jens Axboe Cc: linux-block@vger.kernel.org, Tejun Heo , linux-kernel@vger.kernel.org, Juri Lelli , Andrew Theurer , Joe Mario , Sebastian Jug , Frederic Weisbecker , ming.lei@redhat.com Subject: Re: [PATCH V2] blk-mq: don't schedule block kworker on isolated CPUs Message-ID: References: <20231013124758.1492796-1-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231013124758.1492796-1-ming.lei@redhat.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 23 Oct 2023 16:46:19 -0700 (PDT) On Fri, Oct 13, 2023 at 08:47:58PM +0800, Ming Lei wrote: > Kernel parameter of `isolcpus=` or 'nohz_full=' are used for isolating CPUs > for specific task, and user often won't want block IO to disturb these CPUs, > also long IO latency may be caused if blk-mq kworker is scheduled on these > isolated CPUs. > > Kernel workqueue only respects this limit for WQ_UNBOUND, for bound wq, > the responsibility should be on wq user. > > So don't not run block kworker on isolated CPUs by ruling out isolated CPUs > from hctx->cpumask. Meantime in cpuhp handler, use queue map to check if > all CPUs in this hw queue are offline, this way can avoid any cost in fast > IO code path. > > Cc: Juri Lelli > Cc: Andrew Theurer > Cc: Joe Mario > Cc: Sebastian Jug > Cc: Frederic Weisbecker > Signed-off-by: Ming Lei > --- > V2: > - remove module parameter, meantime use queue map to check if > all cpus in one hctx are offline Hello Guys, Ping... Thanks, Ming