Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2588318rwd; Mon, 15 May 2023 13:58:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Q8X3zTIpxecJS4I8OM9nODTdM24dRgbaIgl/1iIsHiarhDkyhVJrmc14s3r6qt9qujy/h X-Received: by 2002:a05:6a20:3c8a:b0:101:4627:dfe with SMTP id b10-20020a056a203c8a00b0010146270dfemr27732748pzj.9.1684184319679; Mon, 15 May 2023 13:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684184319; cv=none; d=google.com; s=arc-20160816; b=YC7dXn8jOTP90pitheFGHjVAvNzsclSiUsX8vVpLkHJWjgwLuCmyM8NEpadNS4MlS7 kUdiSEPDm8zxWUR1/ANwtNV2Z1cUsKNnwF34PbKVM8ZIgF5MTMqAWVA0ebF/zM7UDL1Z MfQubfVm2q61fuKsOy2R1jYqpCj7qMrmzdqw3LxpULeyz2I5IStc7IiWFo0jsB/Ggv7N OdCiljK7ywjSbYFI2TIMVWD2qMv078rg0cRJIbye1swg3c92CSiyk50HMW1W3Ztkf/YF cza58oyXJouSvuHUjLlFj+nhvxJnQAwktVbScGJJq/9AZshlm+IF+AU8Exu9O9p6uXKQ 5U5w== 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=JDEkOzXkmO4vq/f1uciCLb7+xip3bOlFTtfAfYOBCRE=; b=09JetMU+1OfhRHUNLMJcrqsswNK44+C8Ol9RO/9hlV3Ar8rAyVuNbhXfqA+NrNyj5F fpxHud5O6g/YsojHca8NvzxFhMK/acSOYDkp8yaKHWahUOh7u9UvTzKxr5mfYpchb0x3 t62NDrKr87iPIhh9rvy5a9g3eVkYCVc2kWBKgOYGykh7poQH/Ei83RX+t0g1nP27fWd/ wA6dbHQpeDSFMgTVF8EzDRZ6cXp/0CFzrbQuzboqqQiw6SYrY0fzbvC3Wt65Y3wq75De KT+nz0AexuuTQJ0mnFfJOK83NOkky+kOstSi72OmmyyhcbwQMncAN6pFJ1MrbBliTfII wkaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hBJ5GpTz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k185-20020a6384c2000000b005321c9c8aadsi5814340pgd.720.2023.05.15.13.58.06; Mon, 15 May 2023 13:58:39 -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=pass header.i=@kernel.org header.s=k20201202 header.b=hBJ5GpTz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241904AbjEOUk6 (ORCPT + 99 others); Mon, 15 May 2023 16:40:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231392AbjEOUk5 (ORCPT ); Mon, 15 May 2023 16:40:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A57F2D66 for ; Mon, 15 May 2023 13:40:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 11DEA61F72 for ; Mon, 15 May 2023 20:40:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D815AC433D2; Mon, 15 May 2023 20:40:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684183255; bh=Ycz5x4xauJooEI45uTwxsWwrEMcDCoaMGoPeFzflJMw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hBJ5GpTz5XrO2mUy/fQYFQ0hyJ+XYysi2gQscEI7GUVjouJ47/DIBlzXpp1lzgG7V kTfQvrpBvA141MPGgm85yIQC5z+sZTqS1cwPanWA7oqDoiZUTlJRfHy140WZ1m9Bp7 mKTBgYLNqL/DHMbM2714lhYV9RuP6SNC7efBpyAJl2pChTSX30KLHkOr8k7B4XXqQH bnoIE1c9JPp7V+RPG1yHOe94aSbAam3bFAQYq4WpCtiR7NKijOvnBE6WQHVQM9hWjC +VxDlZAQV6H0oGx4BZnfNZmzEcnt2u4CvJkD7JEmIhL7DOpTJSjyZogvhyFFyAn/kZ HBx5z+AllSHkQ== Date: Mon, 15 May 2023 14:40:52 -0600 From: Keith Busch To: jiweisun126@126.com Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, axboe@fb.com, hch@lst.de, sagi@grimberg.me, ahuang12@lenovo.com, sunjw10@lenovo.com Subject: Re: [PATCH] nvme: add cond_resched() to nvme_complete_batch() Message-ID: References: <20230502125412.65633-1-jiweisun126@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230502125412.65633-1-jiweisun126@126.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Tue, May 02, 2023 at 08:54:12PM +0800, jiweisun126@126.com wrote: > From: Jiwei Sun > > A soft lockup issue will be triggered when do fio test on a 448-core > server, such as the following warning: ... > According to the above two logs, we can know the nvme_irq() cost too much > time, in the above case, about 4.8 second. And we can also know that the > main bottlenecks is in the competition for the spin lock pool->lock. The most recent 6.4-rc has included a significant changeset to the pool allocator that may show a considerable difference in pool->lock timing. It would be interesting to hear if it changes your observation with your 448-core setup. Would you be able to re-run your experiements that produced the soft lockup with this kernel on that machine?