Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp22011ioo; Wed, 25 May 2022 19:18:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf0dm8qQVMV0V/y+wlaYE4vNrXB4KXRO9OHnjE+iZZNOKU0gT0iWjRaYF/OFqJSs2qJXMv X-Received: by 2002:a17:90a:94c6:b0:1e0:c5f0:511c with SMTP id j6-20020a17090a94c600b001e0c5f0511cmr118890pjw.177.1653531521801; Wed, 25 May 2022 19:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653531521; cv=none; d=google.com; s=arc-20160816; b=VuK1GW2xLqUjDFyuVoVzG1Ys2hh7whRDTGrEY300eApz4GNoY5ux2xmp8t3cdnMVCi bIpUeqBmLE/kldphsEwzxVYEVPvZA3cqLg6U3Evniqwf2PubOXgPBVKoAaI/jrdozgK+ G6uV2sCnq0yEBWQO1tcKw8LoR2QF+LZJ5BpjgMzb+bQgc1S0H7GCUwn6efZDvGYQupbe pqKnVNnoQ6wtNtj4RH2QLdHMZhX+wAQ42aNVc5Pm+Kp5fMpYionY7bx5n0bB6O4dQgjD 4KeD4Ggc3FLef2gXkSfiiOJsM9gpVVGLLjaWhlaXnwI7dfl089fi2RV6jRqbBOaHUqko mBTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:jabber-id:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=b5b8FlvcwF1oSlCK1s61WlS96UO+TTTyUP2bkbBALAU=; b=TNCPj4OGSHZfuVqBFp1kOaUu73d8vy8xxMd0bh2n/m+NFLsCOndcC94h0Su820h7NQ 8roE4oBdkpRqTnoI2Ktl2ATRa7NaS2pLfMhGhTRLr9PzRefcfpblSI5TH3p0kQjadS3a JzS2g2fwV/YN7jzQF/Sq3/1+eJs+cD5gntQgRN8MnzhcvovpwrJpe/bjFCDvTymEui3q R9iCXHxuFxtuk1zsAhxu1o085QoXvyGCGkIY2yGDaiUF3x6K1YS3LFyAGea1I/Gmo2KF 9grDzlrd0UrKTbMe52AU4GCo9lO0g8tjCbUxjy90iAiwAGDoHYpNRMouS/NgEuh8SjcX zF4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=FZ4+397w; 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 qe14-20020a17090b4f8e00b001dfdd28c20csi5379724pjb.89.2022.05.25.19.18.30; Wed, 25 May 2022 19:18:41 -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; dkim=fail header.i=@weissschuh.net header.s=mail header.b=FZ4+397w; 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 S236791AbiEYPHQ (ORCPT + 99 others); Wed, 25 May 2022 11:07:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231159AbiEYPHP (ORCPT ); Wed, 25 May 2022 11:07:15 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D4D26CF5E for ; Wed, 25 May 2022 08:07:13 -0700 (PDT) Date: Wed, 25 May 2022 17:07:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1653491231; bh=rFHjdAfF0vz1/EFBNiyD0IsPskYLMYVsfnaqUJagK+M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FZ4+397wV+yur3tcyedrqXlDlkbOodpY5/0kHi7EWFw7Ytp7g51swEj7WCXyxb9oX 95j+EaZrQ0fmy6EUJs0cymexxPa6Og5/U7x75SPFWY+2E9jpILiTVSYihazzU2B0ny 1nqeLKZ9ng/W9ou0jCLXZkgnDKnL6xgFhfhRsgXE= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Christoph Hellwig Cc: Keith Busch , Jens Axboe , Sagi Grimberg , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Subject: Re: [PATCH] nvme-pci: fix host memory buffer allocation size Message-ID: References: <20220428101922.14216-1-linux@weissschuh.net> <20220428143603.GA20460@lst.de> <5060d75e-46c0-4d29-a334-62c7e9714fa7@t-8ch.de> <20220428150644.GA22685@lst.de> <676c02ef-4bbc-43f3-b3e6-27a7d353f974@t-8ch.de> <20220510070356.GA11660@lst.de> <6123b484-bf2c-49f0-a657-6085c7333b2e@t-8ch.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6123b484-bf2c-49f0-a657-6085c7333b2e@t-8ch.de> Jabber-ID: thomas@t-8ch.de X-Accept: text/plain, text/html;q=0.2, text/*;q=0.1 X-Accept-Language: en-us, en;q=0.8, de-de;q=0.7, de;q=0.6 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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-05-10 12:20+0200, Thomas Weißschuh wrote: > [..] > > We could look into removing the min with > > PAGE_SIZE * MAX_ORDER_NR_PAGES to try to do larger segments for > > "segment challenged" controllers now that it could work on a lot > > of iommu enabled setups. But I'd rather have a very good reason for > > that. > > On my current setup (WD SN770 on ThinkPad X1 Carbon Gen9) frequently the NVME > controller stops responding. Switching from no scheduler to mq-deadline reduced > this but did not eliminate it. > Since switching to HMB of 1 * 200MiB and no scheduler this did not happen anymore. > (But I'll need some more time to gain real confidence in this) So this patch dramatically improves the stability of my disk. Without it and queue/scheduler=none the controller stops responding after a few minutes. mq-deadline reduced it to every few hours. With the patch it happens roughly once a week. I'll still RMA the disk and see if the replacement changes anything. Maybe some of the Western Digital employees here could take a look or check if there is a new firmware available. (The official updater requires Windows and there is no external documentation about the firmware) Not sure if a change from very broken to only slightly broken would be enough of a good reason to be honest. Thomas