From patchwork Tue Aug 16 12:38:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xose Vazquez Perez X-Patchwork-Id: 9283775 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8E27E60839 for ; Tue, 16 Aug 2016 12:43:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F99C28A1A for ; Tue, 16 Aug 2016 12:43:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7472B28BAB; Tue, 16 Aug 2016 12:43:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2433F28B80 for ; Tue, 16 Aug 2016 12:43:05 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7GCdfWr049828; Tue, 16 Aug 2016 08:39:41 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u7GCdUAg022293 for ; Tue, 16 Aug 2016 08:39:30 -0400 Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7GCdUSa012311 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 16 Aug 2016 08:39:30 -0400 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E10FEC057FAC; Tue, 16 Aug 2016 12:39:28 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id q128so16211442wma.1; Tue, 16 Aug 2016 05:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MJGvFkm9nqAGRJFgAl+y1v71gs+GY8QRu1GK3rK5A/I=; b=wsNQbOY3xx1RitdG3HAnyJ0J13rzGFJ7G07NkmcKfedNFTdlXttbeHn/8cC03DWh/U n8WUgb0FJaTfe/umgQNC6oKi9QClbybLIXhpMCp0aE8CAAvz78Bi1z+Os01hptTdXGxm S8wkbeb3acnuXj0fgQ9rKu2LwkyNAvP7urQC/u95p5xmucR0tymg6eyTk0lH4ZjGriE0 biHFw8V/B7mchwWRTje20aXGCL73gRYAv2PrHA2Du6DBOF73YLiezBZgoT1O0YZV8swA V3+DhF/9tqtW/gqrS32hp6MyS+KOLTbmznrH9AS5+UDHeoIUgSGWcYzBDCVdQMDK07XL tEeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MJGvFkm9nqAGRJFgAl+y1v71gs+GY8QRu1GK3rK5A/I=; b=SyhAxuCOU4lv7c8wMqfLv/msgBnSc1e0sWl8BV+ND75lntXbT/ZaLi7WUgOafd45wP JCJ8hO9Z1uIOTpU+Nn5i6ZtdsHhZYXwzOY47IkajIaSUe1T7sArGBMFJPj4c7JalvJ8E z2DI3WYrKFBA4rr5DoF2V/A+lFKMTK0ESERhJV6fW2Iy9x9R2N3POQ8+RaJTWguOmakG nxK5wRIptngZV2gJ+WsYnGgXf7eOOsXK1FgOC986y2iuXpQynbvLeas4APvQ94a5QAP8 xCf8v9WHsSo3cWxHBWOrY5jex3jUSJyPCKA6bsFeccjKcn2Y+LeQqGY1tFq6XNJfp7t5 cUJw== X-Gm-Message-State: AEkooutHwUJYMZCfNEZnbuRolnIsgBcKbOq71wG2TeGeU90y72U8u0l9l7pzaEGRLSpukQ== X-Received: by 10.194.64.193 with SMTP id q1mr16230830wjs.49.1471351167554; Tue, 16 Aug 2016 05:39:27 -0700 (PDT) Received: from localhost ([31.221.161.126]) by smtp.gmail.com with ESMTPSA id s184sm21590669wmb.11.2016.08.16.05.39.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Aug 2016 05:39:26 -0700 (PDT) From: Xose Vazquez Perez To: Date: Tue, 16 Aug 2016 14:38:53 +0200 Message-Id: <1471351133-7892-5-git-send-email-xose.vazquez@gmail.com> In-Reply-To: <1471351133-7892-1-git-send-email-xose.vazquez@gmail.com> References: <1471351133-7892-1-git-send-email-xose.vazquez@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 16 Aug 2016 12:39:29 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 16 Aug 2016 12:39:29 +0000 (UTC) for IP:'74.125.82.66' DOMAIN:'mail-wm0-f66.google.com' HELO:'mail-wm0-f66.google.com' FROM:'xose.vazquez@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.02 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 74.125.82.66 mail-wm0-f66.google.com 74.125.82.66 mail-wm0-f66.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-loop: dm-devel@redhat.com Cc: device-mapper development , Xose Vazquez Perez , Mike Snitzer Subject: [dm-devel] [PATCH 5/5] multipath-tools: add queue_mode to the features list in multipath/multipath.conf.5 X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP New undocumented feature, added in e83068a5f: dm mpath: add optional "queue_mode" feature Allow a user to specify an optional feature 'queue_mode ' where may be "bio", "rq" or "mq" -- which corresponds to bio-based, request_fn rq-based, and blk-mq rq-based respectively. If the queue_mode feature isn't specified the default for the "multipath" target is still "rq" but if dm_mod.use_blk_mq is set to Y it'll default to mode "mq". This new queue_mode feature introduces the ability for each multipath device to have its own queue_mode (whereas before this feature all multipath devices effectively had to have the same queue_mode). Also add more info to other features. Cc: Mike Snitzer Cc: Christophe Varoqui Cc: device-mapper development Signed-off-by: Xose Vazquez Perez --- multipath/multipath.conf.5 | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/multipath/multipath.conf.5 b/multipath/multipath.conf.5 index fd4b1f2..40df315 100644 --- a/multipath/multipath.conf.5 +++ b/multipath/multipath.conf.5 @@ -3,11 +3,11 @@ .\" Make sure there are no errors with: .\" groff -z -wall -b -e -t multipath/multipath.conf.5 .\" -.\" TODO: Look for XXX +.\" TODO: Look for XXX and ??? .\" .\" ---------------------------------------------------------------------------- . -.TH MULTIPATH.CONF 5 2016-08-09 "Linux" +.TH MULTIPATH.CONF 5 2016-08-12 "Linux" . . .\" ---------------------------------------------------------------------------- @@ -166,12 +166,15 @@ Loop through every path in the path group, sending the same amount of IO to each. Some aspects of behavior can be controlled with the attributes: \fIrr_min_io\fR, \fIrr_min_io_rq\fR and \fIrr_weight\fR. .TP +.\" XXX .I "queue-length 0" -Send the next bunch of IO down the path with the least amount of outstanding IO. +(Since ??? kernel) Choose the path for the next bunch of IO based on the amount +of outstanding IO to the path. .TP +.\" XXX .I "service-time 0" -Choose the path for the next bunch of IO based on the amount of outstanding IO -to the path and its relative throughput. +(Since ??? kernel) Choose the path for the next bunch of IO based on the amount +of outstanding IO to the path and its relative throughput. .TP Default value is: \fBservice-time 0\fR .RE @@ -333,22 +336,31 @@ Default value is: \fB\fR .TP .B features Specify any device-mapper features to be used. Syntax is \fInum list\fR -where \fInum\fR is the number, between 0 and 6, of features in \fIlist\fR. +where \fInum\fR is the number, between 0 and 8, of features in \fIlist\fR. Possible values for the feature list are: .RS .TP 12 +.\" XXX .I queue_if_no_path -(Superseded by \fIno_path_retry\fR) Queue IO if no path is active. Identical to -the \fIno_path_retry\fR with \fIqueue\fR value. See KNOWN ISSUES. +(Superseded by \fIno_path_retry\fR) (Since ??? kernel) Queue IO if no path is active. +Identical to the \fIno_path_retry\fR with \fIqueue\fR value. See KNOWN ISSUES. .TP .I no_partitions Disable automatic partitions generation via kpartx. .TP -.I pg_init_retries -Number of times to retry pg_init, it must be between 1 and 50. +.\" XXX +.I pg_init_retries +(Since ??? kernel) Number of times to retry pg_init, it must be between 1 and 50. .TP -.I pg_init_delay_msecs -Number of msecs before pg_init retry, it must be between 0 and 60000. +.\" XXX +.I pg_init_delay_msecs +(Since ??? kernel) Number of msecs before pg_init retry, it must be between 0 and 60000. +.TP +.\" XXX +.I queue_mode +(Since ??? kernel) Select the the queue_mode per multipath device. +Where can be \fIbio\fR, \fIrq\fR or \fImq\fR. Which corresponds to +bio-based, request_fn rq-based, and blk-mq rq-based respectively. .TP Default value is: \fB0\fR .RE