Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06808ECE587 for ; Mon, 14 Oct 2019 08:29:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DCF62207FF for ; Mon, 14 Oct 2019 08:29:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730449AbfJNI3W (ORCPT ); Mon, 14 Oct 2019 04:29:22 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:45686 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725936AbfJNI3W (ORCPT ); Mon, 14 Oct 2019 04:29:22 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id B914069B8A4281BD5AD2; Mon, 14 Oct 2019 16:29:20 +0800 (CST) Received: from [127.0.0.1] (10.202.227.179) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Mon, 14 Oct 2019 16:29:19 +0800 Subject: Re: [PATCH V3 0/5] blk-mq: improvement on handling IO during CPU hotplug To: Ming Lei References: <20191008041821.2782-1-ming.lei@redhat.com> <549bf046-f617-4c4f-5bf1-17603cc5f832@huawei.com> <20191009083930.GE10549@ming.t460p> <20191010103016.GA22976@ming.t460p> <41b9185d-f780-f08f-dd63-9ad02a6976d4@huawei.com> <2c0b5542-de7c-ff84-0aae-086cfd6075b7@huawei.com> CC: Ming Lei , Jens Axboe , linux-block , Bart Van Assche , "Hannes Reinecke" , Christoph Hellwig , Thomas Gleixner , Keith Busch From: John Garry Message-ID: <5a033644-721a-0f02-71eb-e6124856b5c0@huawei.com> Date: Mon, 14 Oct 2019 09:29:12 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.179] X-CFilter-Loop: Reflected Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 14/10/2019 02:25, Ming Lei wrote: > On Fri, Oct 11, 2019 at 10:10 PM John Garry wrote: >> >> On 11/10/2019 12:55, Ming Lei wrote: >>> On Fri, Oct 11, 2019 at 4:54 PM John Garry wrote: >>>> >>>> On 10/10/2019 12:21, John Garry wrote: >>>>> >>>>>> >>>>>> As discussed before, tags of hisilicon V3 is HBA wide. If you switch >>>>>> to real hw queue, each hw queue has to own its independent tags. >>>>>> However, that isn't supported by V3 hardware. >>>>> >>>>> I am generating the tag internally in the driver now, so that hostwide >>>>> tags issue should not be an issue. >>>>> >>>>> And, to be clear, I am not paying too much attention to performance, but >>>>> rather just hotplugging while running IO. >>>>> >>>>> An update on testing: >>>>> I did some scripted overnight testing. The script essentially loops like >>>>> this: >>>>> - online all CPUS >>>>> - run fio binded on a limited bunch of CPUs to cover a hctx mask for 1 >>>>> minute >>>>> - offline those CPUs >>>>> - wait 1 minute (> SCSI or NVMe timeout) >>>>> - and repeat >>>>> >>>>> SCSI is actually quite stable, but NVMe isn't. For NVMe I am finding >>>>> some fio processes never dying with IOPS @ 0. I don't see any NVMe >>>>> timeout reported. Did you do any NVMe testing of this sort? >>>>> >>>> >>>> Yeah, so for NVMe, I see some sort of regression, like this: >>>> Jobs: 1 (f=1): [_R] [0.0% done] [0KB/0KB/0KB /s] [0/0/0 iops] [eta >>>> 1158037877d:17h:18m:22s] >>> >>> I can reproduce this issue, and looks there are requests in ->dispatch. >> >> OK, that may match with what I see: >> - the problem occuring coincides with this callpath with >> BLK_MQ_S_INTERNAL_STOPPED set: > > Good catch, these requests should have been re-submitted in > blk_mq_hctx_notify_dead() too. > > Will do it in V4. OK, I'll have a look at v4 and retest - it may take a while as testing this is slow... All the best, John > > Thanks, > Ming Lei > > . >