Skip to contentSkip to conversation

multipath.conf and polling_interval option seems misleading

DISCUSSION shane bradley 3 participants 7 messages Jan 16, 2009 – Jan 29, 2009 Device mapper

lore
Share & tools
lore
#0 lore raw

After reviewing the code and doing some testing I have noticed that polling_interval did not work as expected. I had reviewed the description of the option for multipath.conf and it conflicted with the results that I had got testing device-mapper-multipath on RHEL4/RHEL5.

$ cat /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.annotated
#       # name    : polling_interval
#       # scope   : multipathd
#       # desc    : interval between two path checks in seconds
#       # default : 5
#       #
#       polling_interval 10

---------

The behaviour that I had expected based on the option's description above:
check path 1
wait polling_interval
check path 2
wait polling_interval
check path 1
wait polling_interval
check path 2
wait polling_interval

However after testing the results that I got was(with multipathd -v4):
example:
check path 1
check path 2
wait polling_interval
check path 1
check path 2
wait polling_interval

---------

The behaviour I seen in RHEL4 and RHEL5 was working as design after reviewing the code and talking to a couple engineers.

The problem it seems is how I was reading the description of the option.
From my results in testing and talking with some engineers the "polling_interval" option actually means:

"The interval between checking all possible paths for all multipath paths"
----------

1) Is my assumption correct that "polling_interval" actually means:
"The interval between checking all possible paths for all multipath paths"

2) What is a better way to describe the "polling_interval" option?

3) Shouldn't we make it clearer for people who don't that that much experience with multipathing?

--sbradley

#1 lore raw
Quoted 47 lines · shane bradley

After reviewing the code and doing some testing I have noticed that polling_interval did not work as expected.
I had reviewed the description of the option for multipath.conf and it conflicted with the results that I had got
testing device-mapper-multipath on RHEL4/RHEL5.

$ cat /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.annotated
#       # name    : polling_interval
#       # scope   : multipathd
#       # desc    : interval between two path checks in seconds
#       # default : 5
#       #
#       polling_interval 10

---------

The behaviour that I had expected based on the option's description above:
check path 1
wait polling_interval
check path 2
wait polling_interval
check path 1
wait polling_interval
check path 2
wait polling_interval

However after testing the results that I got was(with multipathd -v4):
example:
check path 1
check path 2
wait polling_interval
check path 1
check path 2
wait polling_interval

---------

The behaviour I seen in RHEL4 and RHEL5 was working as design after reviewing the code and talking to a couple engineers.

The problem it seems is how I was reading the description of the option.
From my results in testing and talking with some engineers the
"polling_interval" option actually means:

"The interval between checking all possible paths for all multipath paths"
----------

Quoted 7 lines

1) Is my assumption correct that "polling_interval" actually means:
"The interval between checking all possible paths for all multipath paths"

2) What is a better way to describe the "polling_interval" option?

3) Shouldn't we make it clearer for people who don't that that much experience with multipathing?

IMO, the behavior seen is the proper behavior.

If it does as per your interpretation, the seconds between checking of the same path will depend on the number of paths to a storage, which may not be acceptable.

May be the wording in multipath.conf.annotated should be made clear.

Quoted 6 lines

--sbradley

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#2 lore raw
Quoted 17 lines · Chandra Seetharaman
Quoted 10 lines

The behaviour I seen in RHEL4 and RHEL5 was working as design after reviewing the code and talking to a couple engineers.

The problem it seems is how I was reading the description of the option.
From my results in testing and talking with some engineers the
"polling_interval" option actually means:

"The interval between checking all possible paths for all multipath paths"
----------

Quoted 6 lines

1) Is my assumption correct that "polling_interval" actually means:
"The interval between checking all possible paths for all multipath paths"

2) What is a better way to describe the "polling_interval" option?

3) Shouldn't we make it clearer for people who don't that that much experience with multipathing?

Quoted 7 lines

IMO, the behavior seen is the proper behavior.

If it does as per your interpretation, the seconds between checking of the same path will depend on the number of paths to a storage, which may not be acceptable.

May be the wording in multipath.conf.annotated should be made clear.

Agreed - I'd not even really thought about this until Shane brought it up as I'd read the description to mean exactly what the code does.

It does seem that some users are puzzled by this behaviour - can't hurt to make the wording a little more explicit for this option.

Regards,
Bryn.

#3 lore raw
Quoted 1 line · Bryn M. Reeves

Chandra Seetharaman wrote:

<snip>

Quoted 5 lines
Quoted 2 lines

May be the wording in multipath.conf.annotated should be made clear.

Agreed - I'd not even really thought about this until Shane brought it up as I'd read the description to mean exactly what the code does.

me too. I couldn't read it otherwise.

But, i suggested document change as the user is getting confused.

Quoted 7 lines

It does seem that some users are puzzled by this behaviour - can't hurt to make the wording a little more explicit for this option.

Regards,
Bryn.

#4 lore raw
In reply to Chandra Seetharaman

Yeah the wording I think is the problem. Someone familiar with source code or multipathing will read that option differently.

When someone reads the word path, they think of a single path to lun, then wait, check the next path to single lun. They are not thinking of all paths are checked at same time.

After thinking about it, this would not be good behaviour because it could take forever (minutes) before a path is found dead. I think the problem is just the description of the option "polling_interval", it should be made clearer.

--sbradley

Quoted 77 lines · Chandra Seetharaman
Quoted 45 lines · shane bradley

After reviewing the code and doing some testing I have noticed that polling_interval did not work as expected. I had reviewed the description of the option for multipath.conf and it conflicted with the results that I had got testing device-mapper-multipath on RHEL4/RHEL5.

$ cat /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.annotated
#       # name    : polling_interval
#       # scope   : multipathd
#       # desc    : interval between two path checks in seconds
#       # default : 5
#       #
#       polling_interval 10

---------

The behaviour that I had expected based on the option's description above:
check path 1
wait polling_interval
check path 2
wait polling_interval
check path 1
wait polling_interval
check path 2
wait polling_interval

However after testing the results that I got was(with multipathd -v4):
example:
check path 1
check path 2
wait polling_interval
check path 1
check path 2
wait polling_interval

---------

The behaviour I seen in RHEL4 and RHEL5 was working as design after reviewing the code and talking to a couple engineers.

The problem it seems is how I was reading the description of the option.
From my results in testing and talking with some engineers the
"polling_interval" option actually means:

"The interval between checking all possible paths for all multipath paths"
----------

Quoted 7 lines

1) Is my assumption correct that "polling_interval" actually means:
"The interval between checking all possible paths for all multipath paths"

2) What is a better way to describe the "polling_interval" option?

3) Shouldn't we make it clearer for people who don't that that much experience with multipathing?

IMO, the behavior seen is the proper behavior.

If it does as per your interpretation, the seconds between checking of the same path will depend on the number of paths to a storage, which may not be acceptable.

May be the wording in multipath.conf.annotated should be made clear.

Quoted 7 lines

--sbradley

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#5 lore raw

Patch attached for updated wording of documentation on polling_interval.

Quoted 83 lines · shane bradley

Yeah the wording I think is the problem. Someone familiar with source code or multipathing will read that option differently.

When someone reads the word path, they think of a single path to lun, then wait, check the next path to single lun. They are not thinking of all paths are checked at same time.

After thinking about it, this would not be good behaviour because it could take forever (minutes) before a path is found dead. I think the problem is just the description of the option "polling_interval", it should be made clearer.

--sbradley

Quoted 72 lines · Chandra Seetharaman
Quoted 45 lines · shane bradley

After reviewing the code and doing some testing I have noticed that polling_interval did not work as expected. I had reviewed the description of the option for multipath.conf and it conflicted with the results that I had got testing device-mapper-multipath on RHEL4/RHEL5.

$ cat /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.annotated
#       # name    : polling_interval
#       # scope   : multipathd
#       # desc    : interval between two path checks in seconds
#       # default : 5
#       #
#       polling_interval 10

---------

The behaviour that I had expected based on the option's description above:
check path 1
wait polling_interval
check path 2
wait polling_interval
check path 1
wait polling_interval
check path 2
wait polling_interval

However after testing the results that I got was(with multipathd -v4):
example:
check path 1
check path 2
wait polling_interval
check path 1
check path 2
wait polling_interval

---------

The behaviour I seen in RHEL4 and RHEL5 was working as design after reviewing the code and talking to a couple engineers.

The problem it seems is how I was reading the description of the option.
From my results in testing and talking with some engineers the
"polling_interval" option actually means:

"The interval between checking all possible paths for all multipath paths"
----------

Quoted 7 lines

1) Is my assumption correct that "polling_interval" actually means:
"The interval between checking all possible paths for all multipath paths"

2) What is a better way to describe the "polling_interval" option?

3) Shouldn't we make it clearer for people who don't that that much experience with multipathing?

IMO, the behavior seen is the proper behavior.

If it does as per your interpretation, the seconds between checking of the same path will depend on the number of paths to a storage, which may not be acceptable.

May be the wording in multipath.conf.annotated should be made clear.

Quoted 7 lines

--sbradley

Signature · 3 lines
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Quoted 10 lines
Quoted 5 lines
Signature · 3 lines
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Signature · 3 lines
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
multipath.conf.annotated renamed from multipath.conf.annotated.org +2 -1
@@ -18,7 +18,8 @@
 #	#
 #	# name    : polling_interval
 #	# scope   : multipathd
-#	# desc    : interval between two path checks in seconds
+#	# desc    : the interval in seconds between polling all 
+#               devices that compose up all multipath devices
 #	# values  : n > 0
 #	# default : 5
 #	#
#6 lore raw
Quoted 1 line · shane bradley

Patch attached for updated wording of documentation on polling_interval.

Looks sane to me.

Cheers,
Bryn.