Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6105267imu; Tue, 13 Nov 2018 17:39:04 -0800 (PST) X-Google-Smtp-Source: AJdET5ecxlmKOUwPaDUjdcGlNTPDYr3BI/Jj8VVwVp6YZzVgCZ/UPVWUCNlupmx8pmmKhoZL3nMd X-Received: by 2002:a63:2054:: with SMTP id r20mr6891803pgm.328.1542159544295; Tue, 13 Nov 2018 17:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542159544; cv=none; d=google.com; s=arc-20160816; b=1H56dPODmILDwOQf09nCnZNQHhuO2lMjH9g+fPdLpSE0aQabUEQJ539uo+txdbdAPC JR6WK3ODCb9lsC+u9UU5yHPaNgu/maTzNHr1ko44v4Xyv0kMZgtmrkwSUPQEw94xG1t9 s2Itw5nksFiDHVC80RxscnTNBStmOLEVpXc7sWkmA2q5TQ1EL8zJbFs0r9R/h+UpMRKD FB9Pk3j+grxrOxBaGilpa82ulMeQfN+gcOb9aQPGIjBc/m76stV+Yz15VOPDBTjl5Uae 4LhDpYjUuaGjnQMTzikFWeEoeXGQqaLjq+bWzpbka42LGLhXzE1b4C0vve/KRk4yfHzw EAeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YMcqb2tF0FGvT5YP+yCnyKApM0uK2Hli45SykGAZFcI=; b=QM95X88H1+K3hRfZJ+HPySgpsWu0HrgoM2DSTY0g81IJYzBu8Q/UPXPRf7FvcmsAg4 LBFMSNbQDGx3CRImz8pymmHCNGEIJHtGkBJmsHAgl4xoyNZfG3+cjlk2UkFRakUgKKOJ YkwR9Nrwy04N6VGe4nGWqdn+OMQT0WjZf/KHkjgsYRXIfcS3UQS6Z6paPHBhkY/cbYPF 7LG0XKq+aEI2mqIxqKBQ3GKY4+x0HQCbcIwlPCz1P8ecwVBhAEDS1tu89zJ9tIoa89y1 LIJpmuUbK4Yz4oCnTuqq8XE2Fc3KAcniHIPWtjq2mGgcK61/G9Oa03g856ySGBuCUYji C8eA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d34-v6si19237646pgm.550.2018.11.13.17.38.47; Tue, 13 Nov 2018 17:39:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731746AbeKNLh3 (ORCPT + 99 others); Wed, 14 Nov 2018 06:37:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53306 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbeKNLh2 (ORCPT ); Wed, 14 Nov 2018 06:37:28 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EB095315485D; Wed, 14 Nov 2018 01:36:31 +0000 (UTC) Received: from localhost (unknown [10.18.25.149]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AAB6C5D738; Wed, 14 Nov 2018 01:36:31 +0000 (UTC) Date: Tue, 13 Nov 2018 20:36:30 -0500 From: Mike Snitzer To: Jens Axboe Cc: Guenter Roeck , Keith Busch , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: nvme: utilize two queue maps, one for reads and one for writes Message-ID: <20181114013630.GB14592@redhat.com> References: <20181114004148.GA29545@roeck-us.net> <20181114012810.GA14592@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181114012810.GA14592@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Wed, 14 Nov 2018 01:36:32 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 13 2018 at 8:28pm -0500, Mike Snitzer wrote: > On Tue, Nov 13 2018 at 7:51pm -0500, > Jens Axboe wrote: > > > On 11/13/18 5:41 PM, Guenter Roeck wrote: > > > Hi, > > > > > > On Wed, Oct 31, 2018 at 08:36:31AM -0600, Jens Axboe wrote: > > >> NVMe does round-robin between queues by default, which means that > > >> sharing a queue map for both reads and writes can be problematic > > >> in terms of read servicing. It's much easier to flood the queue > > >> with writes and reduce the read servicing. > > >> > > >> Implement two queue maps, one for reads and one for writes. The > > >> write queue count is configurable through the 'write_queues' > > >> parameter. > > >> > > >> By default, we retain the previous behavior of having a single > > >> queue set, shared between reads and writes. Setting 'write_queues' > > >> to a non-zero value will create two queue sets, one for reads and > > >> one for writes, the latter using the configurable number of > > >> queues (hardware queue counts permitting). > > >> > > >> Reviewed-by: Hannes Reinecke > > >> Reviewed-by: Keith Busch > > >> Signed-off-by: Jens Axboe > > > > > > This patch causes hangs when running recent versions of > > > -next with several architectures; see the -next column at > > > kerneltests.org/builders for details. Bisect log below; this > > > was run with qemu on alpha. Reverting this patch as well as > > > "nvme: add separate poll queue map" fixes the problem. > > > > I don't see anything related to what hung, the trace, and so on. > > Can you clue me in? Where are the test results with dmesg? > > > > How to reproduce? > > Think Guenter should've provided a full kerneltests.org url, but I had a > look and found this for powerpc with -next: > https://kerneltests.org/builders/next-powerpc-next/builds/998/steps/buildcommand/logs/stdio > > Has useful logs of the build failure due to block. Take that back, of course I only had a quick look and first scrolled to this fragment and thought "yeap shows block build failure" (not _really_): opt/buildbot/slave/next-next/build/kernel/sched/psi.c: In function 'cgroup_move_task': /opt/buildbot/slave/next-next/build/include/linux/spinlock.h:273:32: warning: 'rq' may be used uninitialized in this function [-Wmaybe-uninitialized] #define raw_spin_unlock(lock) _raw_spin_unlock(lock) ^~~~~~~~~~~~~~~~ /opt/buildbot/slave/next-next/build/kernel/sched/psi.c:639:13: note: 'rq' was declared here struct rq *rq; ^~