Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp502405lqp; Wed, 22 May 2024 10:32:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUr5UuQgaLaX//gtOfDGqXFcOLXYcSK0i2uC5qPTcApG1W5mxyVuHqMSTTRQO/BfbkE75947vxrdKpur6EaL9G3WOQMu5+lO5NN6bn7+A== X-Google-Smtp-Source: AGHT+IGU8swXttzkawbluoq/uOnuR1NsEeJIBn2fEqCDpBRzQ8xZh+vpThDsHQ17+xSta2/CipZR X-Received: by 2002:a05:6512:ba3:b0:51b:ce76:7813 with SMTP id 2adb3069b0e04-526c102b152mr3084979e87.58.1716399134214; Wed, 22 May 2024 10:32:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716399134; cv=pass; d=google.com; s=arc-20160816; b=qiaTCQf9jUjJRfOPHtnTDgrrV29I77AWaxoyR2alyKQtKvDxohlhwzRJKt9Rt5gG3O 0hq/BqUBAfFiQ4GOMDc6H+RkU36oLXBggRkGL+EmGekXf79zAYM94EZGZaNj7yQYv19v qUjp17CQDfaGtpr8btxiSeWfzgFrf+4MUiF7va0E9xNZRL3cwYD07MaX2F7o4JgCfRmm IBmyfG3Ik55imyVONV5qDBXA6cRGg22OB+oSTlV8qG7sb6laaDuZHx/4ZvSbWtdw2Isr cBLQgMO95xGnGPLaeLMzavlzi/R3gkvk/lGRd8T5dnuCHIdPJqHsISYAbSyLb0YPlE7q zf1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3kLP/eRm5NzkD4rKYEdapCBaAwnNIa71MaZFuVShTf4=; fh=ZKiFNvTamkgmLLvoXLBMOE7XpE4IoiKU7NODrPDjYGA=; b=dqn0BnnL60jBb0gVkqTQCo9DZe2v6xWBtF9gfqzRklzoqXESOS3oJL5tDPSqJ9B8/s 1xAOdIH7ODwCGGm+MeBRe2ZU2cgFhZLF5kGuRiohoPFdbl7MjsBDwwFchcuM3EMMXvyi oGr3K5eQDceuVJZAoyNV+sPYpV8tz1s0mL/wTLd6DQAOPNOKdQegTHAXLmYpbMX4hwlp JqhqHC5P+67dhbRWSrjt3Im1PxrtGNb9bUNXWvVwXS+qNTDtlDry3tOdEpGbSD3+8N0c TC4sMPYCe/VpTaxSDgfut/UzZlwlBWgav8F9vA64pRXOCJBd+ebEaJukAEP/38HHufo0 hnyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aFGm248Z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186554-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733bec1611si15208638a12.171.2024.05.22.10.32.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 10:32:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186554-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aFGm248Z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-186554-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186554-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D1FDD1F22F3C for ; Wed, 22 May 2024 17:32:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 936431422C8; Wed, 22 May 2024 17:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aFGm248Z" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B948E537E9 for ; Wed, 22 May 2024 17:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716399126; cv=none; b=BhkTGDgJMuXi5e2Th4+uF9BHlKBjY4cgvmhcZDA80dwEx9GcWyTDeBgb5Kma9ijJzJXXdS9qIma3h2rr5afRrzZRO8hEgI9Yd2TEQ04cHxd3rEW6FWAzCyZCS9/LrTe/vRjtOXKnyJeZlIyWmt9I5LD8UHOt9gTojpEAQoFt530= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716399126; c=relaxed/simple; bh=I+AChwZfVTk45NPTsJRvNFZS+ouhd83TRXjEA8ib4gs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mtvtik6i7oe19LQ9jf5b3q6nSyO0dtEUkvuDPN0xhY+vp6iSOkkZFYmRpZHFTgKCQVHCU7ntYB3aqFDqGrkJSEOKrx4rbqWnxofNWDqpcpjHXDf4BvduEXMR6VWBZioPV5Ylf9jzRJmQyzn+fY/3KfYYZBDOPzHb3P06Qo2UEWE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aFGm248Z; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8139DC2BBFC; Wed, 22 May 2024 17:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716399126; bh=I+AChwZfVTk45NPTsJRvNFZS+ouhd83TRXjEA8ib4gs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aFGm248Z9VYQr4F0y8aSFiKQ2z3YMHuCWAiL02RBAa5m58/t6fsXhu3J5zQ6NsEDF R/FmZJznQf09LdE0vzQBO1VdvsRFuPIoQSse2Vq8wPBqc0D2r9ZvgzVkOg/nr4VDaf GW+EMCZI4hiGXWO8ZQfxSu49IUBbvrANXIhrf14WROFY64oesTph1DrsCsEQ0s8TKf h8W861CjY03eVLCpBcVnmU3v4VKdUiN53qKhQhodQKvAc6pq6Di//6o496WOnuJzGU nsTTj+HaIm9GQnThV1nd/wVxsERACqj+gRsMIquh6fzZM7ZAO979Js42MBs91/8k5Y pl+cnDmYHgXCQ== Date: Wed, 22 May 2024 11:32:02 -0600 From: Keith Busch To: John Meneghini Cc: hch@lst.de, sagi@grimberg.me, emilne@redhat.com, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, jrani@purestorage.com, randyj@purestorage.com, hare@kernel.org Subject: Re: [PATCH v5] nvme: multipath: Implemented new iopolicy "queue-depth" Message-ID: References: <20240522165406.702362-1-jmeneghi@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240522165406.702362-1-jmeneghi@redhat.com> On Wed, May 22, 2024 at 12:54:06PM -0400, John Meneghini wrote: > From: "Ewan D. Milne" > > The round-robin path selector is inefficient in cases where there is a > difference in latency between paths. In the presence of one or more > high latency paths the round-robin selector continues to use the high > latency path equally. This results in a bias towards the highest latency > path and can cause a significant decrease in overall performance as IOs > pile on the highest latency path. This problem is acute with NVMe-oF > controllers. > > The queue-depth policy instead sends I/O requests down the path with the > least amount of requests in its request queue. Paths with lower latency > will clear requests more quickly and have less requests in their queues > compared to higher latency paths. The goal of this path selector is to > make more use of lower latency paths which will bring down overall IO > latency and increase throughput and performance. I'm okay with this as-is, though I don't think you need either atomic_set() calls. Christoph, Sagi, 6.10 merge window is still open and this has been iterating long before that. Any objection?