Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3308305rwb; Sun, 9 Oct 2022 02:49:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7JIY9KEw9Y1tM56/6MIIYus+l9IPw/MPZHHAYWgzDf10/8ekmva0EC5YNPFQA1FK9iwtFv X-Received: by 2002:a05:6a00:1990:b0:545:aa9e:be3d with SMTP id d16-20020a056a00199000b00545aa9ebe3dmr14246451pfl.59.1665308984357; Sun, 09 Oct 2022 02:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665308984; cv=none; d=google.com; s=arc-20160816; b=Wr+tJGcjuJnG2x1FrH4G8RLutHva0BviDY3xC42xcA42fTsjAm6T69C2HShEq2Bg0X yopu9xZFiMyqOy6JyEGJUd6HtvemvOBkoXo6jJ8h+IRth7rbROB+f7f7RgVgr1yCy5jT D1HQV8R6NHLtKqhYQ0V5mIF3wiY4Pt5RfOr2k1ospqL7Y0dmtK5Qflh3SZli8lZDW994 W8/jlMkvzrYkyQeWZ9iS7YhVy3sArXE53k45mFiDf7YicaFzYzH1prhQtT4VFBDkxXqu NQFsEdKendcjujLg7rSw26kpuRTmPGDFUDHHMbLS53s5doRKnkmFfIYYoUvTAgRMl72d HnxQ== 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 :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=KYcBNoK3dolmCRqo7jTrf/woODzu+/9YsIZAvQcDRnw=; b=uVrh6cANPgkpvdXkkjfdjY+9K7Pq6xhLOK8YvATGzi+AhCXnh5fEhH1PVayOSSDy6f y1/QHbzriRcXeEeH2lyENrfNim3cDD5c8phXylvi9tYqHOG4wk9YFaI1wrttQAvBgnvW Hs2vF1VL3NZqs7IsNPgLkCReGzfmxtDq161RPFxilVu+d5QcUVSNMx/vgS0/6by3qch/ lEGJdje6Ji0Tf0YwtHaei+Q3JWQ+LwTg62aRMN7JbFvsJ0THf3805DawUVZ1f5KVQDw4 S7Qah5CIgfhmWTx3/o5kP+yBvvwy98WVy/HxNrgam7POyWbryAX3A/zkT1KsHitDAcww abFg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 25-20020a630b19000000b0041cc7bac015si8943211pgl.102.2022.10.09.02.49.33; Sun, 09 Oct 2022 02:49:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbiJIJco (ORCPT + 99 others); Sun, 9 Oct 2022 05:32:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229699AbiJIJcl (ORCPT ); Sun, 9 Oct 2022 05:32:41 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A0432CCA8; Sun, 9 Oct 2022 02:32:39 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4MlcGQ57rhzKDny; Sun, 9 Oct 2022 17:30:22 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP4 (Coremail) with SMTP id gCh0CgAHzYwzlUJjegAJCA--.61104S3; Sun, 09 Oct 2022 17:32:36 +0800 (CST) Subject: Re: [blk] 8c5035dfbb: fio.read_iops -10.6% regression To: Ming Lei , Yu Kuai Cc: kernel test robot , lkp@lists.01.org, lkp@intel.com, Jens Axboe , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, ying.huang@intel.com, feng.tang@intel.com, zhengjun.xing@linux.intel.com, fengwei.yin@intel.com, "yukuai (C)" References: <202210081045.77ddf59b-yujie.liu@intel.com> From: Yu Kuai Message-ID: Date: Sun, 9 Oct 2022 17:32:34 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgAHzYwzlUJjegAJCA--.61104S3 X-Coremail-Antispam: 1UD129KBjvdXoW7JFy7XF13Zw43tw4fuF1rWFg_yoW3uwb_Zw 1vvF1xCrn8Gan2vrsFkr4agr4kX34xGFy7JF4rJa17X3sIgrn8ZFyDWFy8W3s8Ww1rtF4a krWFy343Xrs2kjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb3AFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcVAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02628vn2kI c2xKxwCYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4 AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE 17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMI IF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_WFyUJVCq 3wCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCT nIWIevJa73UjIFyTuYvjfUoOJ5UUUUU X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS 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 Hi, 在 2022/10/09 16:43, Ming Lei 写道: > On Sat, Oct 08, 2022 at 04:00:10PM +0800, Yu Kuai wrote: >> Hi, >> >> 在 2022/10/08 10:50, kernel test robot 写道: >>> Greeting, >>> >>> FYI, we noticed a -10.6% regression of fio.read_iops due to commit: >> >> I don't know how this is working but I'm *sure* this commit won't affect > > Looks it is wrong to move > > wbt_set_write_cache(q, test_bit(QUEUE_FLAG_WC, &q->queue_flags)); > > before rq_qos_add() in wbt_init(). > > Without adding wbt rq_qos, wbt_set_write_cache is just a nop. Yes, I got it now, I'm being foolish here. I missed that "rwb->wc" is got by rq_qos in wbt_set_write_cache(), which is NULL before rq_qos_add(). By the way, it's interesting that how read performance is affected, I still don't know why yet... Thanks, Kuai > > > thanks, > Ming > > . >