Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4777065rwb; Tue, 20 Sep 2022 20:50:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM56JXS0LFxWIjJ8jIspvxoqYxlXAwtPrhWQNW4ZiWkYjxM9xDwxr5xjOPd7q87oI5h3lr6P X-Received: by 2002:a17:90b:3808:b0:202:c5ba:d71b with SMTP id mq8-20020a17090b380800b00202c5bad71bmr7247708pjb.18.1663732209448; Tue, 20 Sep 2022 20:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663732209; cv=none; d=google.com; s=arc-20160816; b=cGIr0Q+BYmxU5j4n2+WuSWxR8inavp6X/eSZJbHZqSRX43gVtVOzv4FGojDRcb7Rnr 66jppFaR+yQrOQSb4Wpo4t5EPPi8pXVlNQx8gNpX6qpz4utoNIE4fjduT1nz5/PbjMsu TlXviz6ZhMnxXzz5XLIBQA6Wyix/co6bvMRn3pjRaMC8JE5PZ9GYkYefluVAzI6w35HW Ue+U3S2QE6UH2MzqeNv4rHpJmO52ZNi9aPmiCCzwP0+b87M81zOb+biE68UywoZo3DyV mEOF/9OeOx2hUY5lENhS/N5XFt+KfsXvWFvTtLXzdQRFaUOmZqGsCRUaLN9WcAlYRpwh leDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=Qu9lwLogHwk0Ja5uPnO0qEC+tgCZwwo8mqiUjjo17Dk=; b=HcXE2UJmzsBKJCEbUegdvwBDwbT/JQfINaXn+sgc286XmQ47zptiVfEEiRXsbUEUwK SGkvJsDo/ERmJjQFl/t9hFehChKMjyBLANZx2q7/XSeRiCCDDne9ik2rvppaibaFXWSp 6gk/4Mhqjd+4qEUngiyWdf2wBdms42FAE705+6OC1l3zEeemMImv++6rFNX7Z5MBZySv pUFz+w/8HwjoYOW9/m9jf8nfRifad0GhELBwtmhRTOPTvk7z1Hw3iYMlpZtHJ/Y5J21A 3VrNqDbqNAObdQlkjD3m5yWRzIGX3LkLCYXz8PY856H3G0vTIucDNxoYM0f82dlpEbLb Cq/g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020a056a00244400b00542f502403bsi1415204pfj.245.2022.09.20.20.49.56; Tue, 20 Sep 2022 20:50:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbiIUDky (ORCPT + 99 others); Tue, 20 Sep 2022 23:40:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbiIUDkw (ORCPT ); Tue, 20 Sep 2022 23:40:52 -0400 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17F6F476DE for ; Tue, 20 Sep 2022 20:40:49 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=liusong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VQM7hzd_1663731646; Received: from 30.178.80.176(mailfrom:liusong@linux.alibaba.com fp:SMTPD_---0VQM7hzd_1663731646) by smtp.aliyun-inc.com; Wed, 21 Sep 2022 11:40:47 +0800 Message-ID: Date: Wed, 21 Sep 2022 11:40:43 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [RFC PATCH] nvme: request remote is usually not involved for nvme devices To: Christoph Hellwig , Jens Axboe Cc: kbusch@kernel.org, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <1663432858-99743-1-git-send-email-liusong@linux.alibaba.com> <7b28925a-cbee-620f-fde7-d16f256836cc@linux.alibaba.com> <894e18a4-4504-df48-6429-a04c222ca064@kernel.dk> <20220919143556.GA28122@lst.de> From: Liu Song In-Reply-To: <20220919143556.GA28122@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham 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 2022/9/19 22:35, Christoph Hellwig wrote: > On Mon, Sep 19, 2022 at 08:10:31AM -0600, Jens Axboe wrote: >> I'm not disagreeing with any of that, my point is just that you're >> hacking around this in the nvme driver. This is problematic whenever >> core changes happen, because now we have to touch individual drivers. >> While the expectation is that there are no remote IPI completions for >> NVMe, queue starved devices do exist and those do see remote >> completions. >> >> This optimization belongs in the blk-mq core, not in nvme. I do think it >> makes sense, you just need to solve it in blk-mq rather than in the nvme >> driver. > I'd also really see solid numbers to justify it. > > And btw, having more than one core per queue is quite common in > nvme. Even many enterprise SSDs only have 64 queues, and some of > the low-end consumers ones have very low number of queues that are > not enough for the number of cores in even mid-end desktop CPUs. Hi Thank you for your suggestion. Here is what I think about it. NVMe devices that can support one core per queue are usually high-performance, so I prefer to make more optimizations for high-performance devices, while for ordinary consumption class NVMe devices, such modifications will not bring special additional overhead. Thanks