Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp91106lqo; Thu, 9 May 2024 13:38:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhODGZOZE+Pm1QwY1G4HUG3acqrB8w3Y4S9T2OHcgKJ/DbLSbZ+Tz4c/Ndgmaf8Ep2Sha5hq4QXeJGWsTbp0GnodRyH9Qwlprve2hxsA== X-Google-Smtp-Source: AGHT+IGsM2t1cRUumqVgHnwFWMPvmNiK7bIIfqKMPlbg9KYbRiaisph2NUzVSCdxzai28xH9LgMZ X-Received: by 2002:adf:cd8a:0:b0:34c:6bbb:62af with SMTP id ffacd0b85a97d-3504a737925mr432496f8f.20.1715287080031; Thu, 09 May 2024 13:38:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715287080; cv=pass; d=google.com; s=arc-20160816; b=RyG7B1wQGkMUXNcVhvzQh0wdoWHHt4MM0lzYkxT6VeIMHsQiY4lJbvQGZICyfxp15M RRAU8J4sOGvnvhu1vGYknNJT17I2oB5DzidVMXtTBbJhQeMs9el4k/DNcFE0xS/7Hbcf FarTXC3INP8xthp0qZQAwaGpuUNzVSciP2GFOwDtPnRjOasvxbnVKrDjHw1bupbmhy7t ONehHn2KhJWy5te9++vFVJW56j7wM65XDzzB+AR3nRV29Jh0XZ70kNBfw11ykiG2UPaM WdSwtAx0hC8AIUaIBB6Kscrv1q9rO8KNC1qOavzwWq77iDqdv2sYhh4RYX435eulk0ao thKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FddXm199VtUfPB6J9EsjicQftuZ1DGKMjcorbhxjq/s=; fh=uNH6WxBhyDpr+4H8LOkkbq8hsUJA7MPuRO27lML+arU=; b=AVtOZAV9CmikFFmeoXl0mliUeVlrDHknljS36Z4lzYqMjsDEuiWrLIdcV+PKVhA5Jw ZhIII1mcelCr7UIfoD3hitxNhqAtShac+XwMNgPPfC5zcGlBJivb0oevz7yYmiYfRqBz buehsUunTvRWshI1ZsBuuvY3mN22a2NbAqedHnutUQnSl2bF1T26b3xO0Ro5cr7g/Bey US8WjShqBC7CrynO2QbkLSnhOYTW9G6PNN1fYpegOiWfR92MgdMZlgaZB6fuv3dumEIX ZlvgpEseY8+rynEQCTzRDchS9goeNUGCz9PBvFQYiBAYd9N4JjpZ3XOAxVs4KoCMGYiK tG+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="CU92U/+J"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-174928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17945f72si109602666b.124.2024.05.09.13.37.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:38:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174928-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=@redhat.com header.s=mimecast20190719 header.b="CU92U/+J"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-174928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 150A21F25359 for ; Thu, 9 May 2024 20:30:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FB45127B66; Thu, 9 May 2024 20:30:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="CU92U/+J" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 5718885C56 for ; Thu, 9 May 2024 20:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715286603; cv=none; b=hNyFCSjBsVcSqJImYTTuszkzaBvHY4KS6b/xthpAJRN9Wo2FM+BsrKaJtC8oom8NLdEJ+dHKm3y6JVPgtt9quxia2xtEcvc9qtV+8XpnZ2K9Yb8P1tcPlVxKnnyzxpb8xnM/KJ68/Hg23nMmORibzFgvLHOB3g/L4BKAyvUIZY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715286603; c=relaxed/simple; bh=eEDN/BXh3FCSWDVV3j+pNRmC+1NuT17r62C9duvSG7s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-type; b=WKkIbc4ph7rH7R8q1JJAonGu6sd9sMxnv8Z75IMrb+xr+IP0baY5a3sa6z4h0Qbuc4naP6MOTIpC6iO65yCUYch82wcl5nUo38q97ug1Ji1jz2phDTUH1aaXfMqlViOEvCzWnDzz29nZ+CQCLgpXywkEiqRNdJymBcASqN0116E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=CU92U/+J; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715286578; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FddXm199VtUfPB6J9EsjicQftuZ1DGKMjcorbhxjq/s=; b=CU92U/+J++14y9OUvtMH34mGlGf55HFfW2dIAMy3nm0YMh7tcgQARlOp8+uC+FxPr8ZDzl C7W8URjI9OhlJ+yedDKsihFKsUZSkdZRuheFrF4DYIVKE0wRHRRPSrZHKTqyyrwUNt8a8L HqlBQHzbibAhpvPxTjKgs5adnT2vvAs= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-449-CRnDHCYCOvq7x3XNpCOBEA-1; Thu, 09 May 2024 16:29:33 -0400 X-MC-Unique: CRnDHCYCOvq7x3XNpCOBEA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EE4C3185A78E; Thu, 9 May 2024 20:29:32 +0000 (UTC) Received: from jmeneghi.bos.com (unknown [10.22.16.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5B76920C5674; Thu, 9 May 2024 20:29:32 +0000 (UTC) From: John Meneghini To: kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, emilne@redhat.com Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, jmeneghi@redhat.com, jrani@purestorage.com, randyj@purestorage.com, hare@kernel.org, constg@il.ibm.com, aviv.coro@ibm.com Subject: [PATCH v2 0/3] nvme: queue-depth multipath iopolicy Date: Thu, 9 May 2024 16:29:26 -0400 Message-Id: <20240509202929.831680-1-jmeneghi@redhat.com> In-Reply-To: <20231107212331.9413-1-emilne@redhat.com> References: <20231107212331.9413-1-emilne@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 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 I'm re-issuing Ewan's queue-depth patches in preparation for LSFMM These patches were first show at ALPSS 2023 where I shared the following graphs which measure the IO distribution across 4 active-optimized controllers using the round-robin verses queue-depth iopolicy. https://people.redhat.com/jmeneghi/ALPSS_2023/NVMe_QD_Multipathing.pdf Since that time we have continued testing these patches with a number of different nvme-of storage arrays and test bed configurations, and I've codified the tests and methods we use to measure IO distribution All of my test results, together with the scripts I used to generate these graphs, are available at: https://github.com/johnmeneghini/iopolicy Please use the scripts in this repository to do your own testing. These patches are based on nvme-v6.9 Ewan D. Milne (3): nvme: multipath: Implemented new iopolicy "queue-depth" nvme: multipath: only update ctrl->nr_active when using queue-depth iopolicy nvme: multipath: Invalidate current_path when changing iopolicy drivers/nvme/host/core.c | 2 +- drivers/nvme/host/multipath.c | 77 +++++++++++++++++++++++++++++++++-- drivers/nvme/host/nvme.h | 8 ++++ 3 files changed, 82 insertions(+), 5 deletions(-) -- 2.39.3