From patchwork Fri Aug 12 14:24:01 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: 9277093 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 514D9600CB for ; Fri, 12 Aug 2016 14:28:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 414EB28A35 for ; Fri, 12 Aug 2016 14:28:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35EEF28A37; Fri, 12 Aug 2016 14:28:51 +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 C027728A35 for ; Fri, 12 Aug 2016 14:28:50 +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 u7CEPFcm056191; Fri, 12 Aug 2016 10:25:16 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u7CEOVkB018023 for ; Fri, 12 Aug 2016 10:24:31 -0400 Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7CEOVaV019383 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 12 Aug 2016 10:24:31 -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 58E513D9; Fri, 12 Aug 2016 14:24:18 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id i5so3150880wmg.2; Fri, 12 Aug 2016 07:24:13 -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; bh=Pm3BWHGPgf/xrqKVKEV0nRdFIwCGkZDvHZ0V1YMauqk=; b=L56/ScT4oWLpoI4nyuYM++1RMo92mejpp4tAbuY2Yv+YOsG0krz9JTZ1/5axVtlzpg OUdWt43mVi0fI2xUhGXVK27+vpDueGu0R6vHJoaBj0eOqA3/mWmlRrTvkqpcsVDOcreY Sg6snDjYrEw5pDonaYEODOoNP5Tw3VGbHEZMUVvk7VoCNTk/rr8/SwFvOyUbzdL3/IuM 9OA77U0IK6atLMQ/utp4CAKK8U2A1v5jq7XVdwAInw296ySqW5T2gN1U1XG8iNH42sIx GPbDVRDmYNPlXQ/H9zI+4cydFSMI1gLfJ1Q+6ai24Hvfoq9kLsvttovtEZDLw8sSZzyC n5AQ== 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; bh=Pm3BWHGPgf/xrqKVKEV0nRdFIwCGkZDvHZ0V1YMauqk=; b=UqAZZJQYy0U9Ef74uN0G6ua32E4zJKnbldsviyjEQMYZTRSFiA5WJ8WHBwsvkU1uDk y/+wZur5uu/rEYthUNJFP6LNBesBpHpIWlQ9kkP51tey0GY1/d/l53TuC3PaojtvN4FS BwGxj5IeENMM+H5jBNM/rFvBerEIrhtl8LaWzHuO0K6AO8mQHUC78j6qrrBtY7HojlE0 iN1gNmFkmJpoARaPMHtrWTDGtggw4n3zVtp/0I2tnYV0L7Me3vTIT8OZM0wcSbqIW9q2 3Sc7hJSq2fU1wXTbIAXqWxr29YO4PAqvKJgyrmZZ67ggbhiLqezqLEdhQAJa9GLYof/4 +gfA== X-Gm-Message-State: AEkoouvA7Hip8zKaaRmYG82cpTF0qchqEaR01xIpSioAUsLJxZauxfIIDBFI9PcnxorpOA== X-Received: by 10.194.47.100 with SMTP id c4mr15348348wjn.34.1471011844958; Fri, 12 Aug 2016 07:24:04 -0700 (PDT) Received: from localhost ([31.221.181.22]) by smtp.gmail.com with ESMTPSA id u72sm2817767wmf.5.2016.08.12.07.24.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Aug 2016 07:24:04 -0700 (PDT) From: Xose Vazquez Perez To: Date: Fri, 12 Aug 2016 16:24:01 +0200 Message-Id: <1471011841-4126-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.29]); Fri, 12 Aug 2016 14:24:18 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 12 Aug 2016 14:24:18 +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.68 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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.22 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29 X-loop: dm-devel@redhat.com Cc: device-mapper development , Xose Vazquez Perez , Mike Snitzer Subject: [dm-devel] [PATCH] 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