From: Benjamin Marzinski Date: Fri, 3 Dec 2010 23:58:46 +0000 (-0600) Subject: multipath: standardize on path_selector X-Git-Tag: upstream/0.5.0~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4bc80ed4f577513a5b730398e513dfbf44bc8be7;p=platform%2Fupstream%2Fmultipath-tools.git multipath: standardize on path_selector Since the devices and multipaths sections of multipath.conf use "path_selector", set the defaults section to use it was well, instead of "selector". Signed-off-by: Benjamin Marzinski --- diff --git a/libmultipath/dict.c b/libmultipath/dict.c index 5186452..0195955 100644 --- a/libmultipath/dict.c +++ b/libmultipath/dict.c @@ -2187,7 +2187,7 @@ init_keywords(void) install_keyword("polling_interval", &polling_interval_handler, &snprint_def_polling_interval); install_keyword("udev_dir", &udev_dir_handler, &snprint_def_udev_dir); install_keyword("multipath_dir", &multipath_dir_handler, &snprint_def_multipath_dir); - install_keyword("selector", &def_selector_handler, &snprint_def_selector); + install_keyword("path_selector", &def_selector_handler, &snprint_def_selector); install_keyword("path_grouping_policy", &def_pgpolicy_handler, &snprint_def_path_grouping_policy); install_keyword("getuid_callout", &def_getuid_callout_handler, &snprint_def_getuid_callout); install_keyword("prio", &def_prio_handler, &snprint_def_prio); diff --git a/multipath.conf.annotated b/multipath.conf.annotated index fba8f15..19bdd48 100644 --- a/multipath.conf.annotated +++ b/multipath.conf.annotated @@ -27,14 +27,14 @@ # polling_interval 10 # # # -# # name : selector +# # name : path_selector # # scope : multipath & multipathd # # desc : the default path selector algorithm to use # # these algorithms are offered by the kernel multipath target # # values : "round-robin 0" # # default : "round-robin 0" # # -# selector "round-robin 0" +# path_selector "round-robin 0" # # # # # name : path_grouping_policy diff --git a/multipath.conf.defaults b/multipath.conf.defaults index 1c3a02b..f8ca0a2 100644 --- a/multipath.conf.defaults +++ b/multipath.conf.defaults @@ -4,7 +4,7 @@ #defaults { # udev_dir /dev # polling_interval 5 -# selector "round-robin 0" +# path_selector "round-robin 0" # path_grouping_policy failover # getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n" # prio const diff --git a/multipath.conf.synthetic b/multipath.conf.synthetic index 44d1329..bda1b75 100644 --- a/multipath.conf.synthetic +++ b/multipath.conf.synthetic @@ -5,7 +5,7 @@ #defaults { # udev_dir /dev # polling_interval 10 -# selector "round-robin 0" +# path_selector "round-robin 0" # path_grouping_policy multibus # getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n" # prio const diff --git a/multipath/multipath.conf.5 b/multipath/multipath.conf.5 index b07bd05..f234d20 100644 --- a/multipath/multipath.conf.5 +++ b/multipath/multipath.conf.5 @@ -82,10 +82,22 @@ default verbosity. Higher values increase the verbosity level. Valid levels are between 0 and 6; default is .I 2 .TP -.B selector +.B path_selector The default path selector algorithm to use; they are offered by the -kernel multipath target. The only currently implemented is -.I "round-robin 0" +kernel multipath target. There are three selector algorithms. +.RS +.TP 12 +.B "round-robin 0" +Loop through every path in the path group, sending the same amount of IO to +each. +.TP +.B "queue-length 0" +Send the next bunch of IO down the path with the least amount of outstanding IO. +.TP +.B "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. +.RE .TP .B path_grouping_policy The default path grouping policy to apply to unspecified