[LU-715] Value read from qos_threshold_rr file does not match value written Created: 23/Sep/11  Updated: 09/May/12  Resolved: 05/Apr/12

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 1.8.6
Fix Version/s: Lustre 2.2.0, Lustre 1.8.8

Type: Bug Priority: Minor
Reporter: Rick Mohr Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: None
Environment:

CentOS 5.6


Rank (Obsolete): 4866

 Description   

After I change the value of qos_threshold_rr by writing to /proc/fs/lustre/lov/<fsname>-mdtlov/qos_threshold_rr, the value I read back is usually one less than the value I wrote:

[root]# echo 17 > qos_threshold_rr
[root]# cat qos_threshold_rr
16%

This is not the case for values 0 or 100:

[root]# echo 100 > qos_threshold_rr
[root]# cat qos_threshold_rr
100%
[root]# echo 0 > qos_threshold_rr
[root]# cat qos_threshold_rr
0%

I realize this is an artifact of the way the value is stored. (Value range 0-100 is converted to 0-256 when written, and then converted back when read.) However, it is confusing to write one value and then read back a different value. This could be especially problematic when the value is 1:

[root]# echo 1 > qos_threshold_rr
[root]# cat qos_threshold_rr
0%

Anyone reading a value of 0 would not know whether the value had been set to 0 or 1.

If the behavior of Lustre cannot be modified, then the documentation should probably be updated to explain it.



 Comments   
Comment by Andreas Dilger [ 23/Sep/11 ]

Since the value in the kernel is finer grained than the value from userspace, it should be possible to always return the original value by rinsing to the nearest integer at conversion instead of truncating. It should be relatively simple to fix in Lustre.

Comment by Matt Ezell [ 14/Oct/11 ]

Patch for b1_8 is at http://review.whamcloud.com/1522

Comment by Matt Ezell [ 25/Oct/11 ]

Patch against master is at http://review.whamcloud.com/1532

Comment by Peter Jones [ 28/Oct/11 ]

Andreas please select a second inspector if something other than Oleg needs to inspect this too

Comment by Build Master (Inactive) [ 28/Oct/11 ]

Integrated in lustre-master » x86_64,client,el5,inkernel #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 28/Oct/11 ]

Integrated in lustre-master » x86_64,client,el6,inkernel #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 28/Oct/11 ]

Integrated in lustre-master » x86_64,server,el5,inkernel #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 28/Oct/11 ]

Integrated in lustre-master » x86_64,client,sles11,inkernel #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 28/Oct/11 ]

Integrated in lustre-master » i686,server,el6,inkernel #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 28/Oct/11 ]

Integrated in lustre-master » x86_64,client,ubuntu1004,inkernel #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 28/Oct/11 ]

Integrated in lustre-master » i686,server,el5,ofa #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 28/Oct/11 ]

Integrated in lustre-master » x86_64,client,el5,ofa #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Peter Jones [ 28/Oct/11 ]

Landed for 2.2

Comment by Build Master (Inactive) [ 28/Oct/11 ]

Integrated in lustre-master » i686,server,el5,inkernel #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 28/Oct/11 ]

Integrated in lustre-master » i686,client,el6,inkernel #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 28/Oct/11 ]

Integrated in lustre-master » i686,client,el5,inkernel #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 28/Oct/11 ]

Integrated in lustre-master » i686,client,el5,ofa #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = FAILURE
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 29/Oct/11 ]

Integrated in lustre-master » x86_64,server,el5,ofa #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 29/Oct/11 ]

Integrated in lustre-master » x86_64,server,el6,inkernel #322
LU-715 lov: fix procfs reporting for qos values (Revision 0d0b8d65d84c644290f938a43fdcb0d68015c519)

Result = SUCCESS
Oleg Drokin : 0d0b8d65d84c644290f938a43fdcb0d68015c519
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 12/Dec/11 ]

Integrated in lustre-b1_8 » x86_64,client,el5,ofa #160
LU-715 lov: fix procfs reporting for qos values (Revision d07942a89ba92fa20cf0364900a1d52d94784edc)

Result = SUCCESS
Johann Lombardi : d07942a89ba92fa20cf0364900a1d52d94784edc
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 12/Dec/11 ]

Integrated in lustre-b1_8 » x86_64,client,el6,inkernel #160
LU-715 lov: fix procfs reporting for qos values (Revision d07942a89ba92fa20cf0364900a1d52d94784edc)

Result = SUCCESS
Johann Lombardi : d07942a89ba92fa20cf0364900a1d52d94784edc
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 12/Dec/11 ]

Integrated in lustre-b1_8 » x86_64,server,el5,inkernel #160
LU-715 lov: fix procfs reporting for qos values (Revision d07942a89ba92fa20cf0364900a1d52d94784edc)

Result = SUCCESS
Johann Lombardi : d07942a89ba92fa20cf0364900a1d52d94784edc
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 12/Dec/11 ]

Integrated in lustre-b1_8 » i686,client,el6,inkernel #160
LU-715 lov: fix procfs reporting for qos values (Revision d07942a89ba92fa20cf0364900a1d52d94784edc)

Result = SUCCESS
Johann Lombardi : d07942a89ba92fa20cf0364900a1d52d94784edc
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 12/Dec/11 ]

Integrated in lustre-b1_8 » x86_64,client,el5,inkernel #160
LU-715 lov: fix procfs reporting for qos values (Revision d07942a89ba92fa20cf0364900a1d52d94784edc)

Result = SUCCESS
Johann Lombardi : d07942a89ba92fa20cf0364900a1d52d94784edc
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 12/Dec/11 ]

Integrated in lustre-b1_8 » x86_64,client,ubuntu1004,inkernel #160
LU-715 lov: fix procfs reporting for qos values (Revision d07942a89ba92fa20cf0364900a1d52d94784edc)

Result = SUCCESS
Johann Lombardi : d07942a89ba92fa20cf0364900a1d52d94784edc
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 12/Dec/11 ]

Integrated in lustre-b1_8 » i686,client,el5,ofa #160
LU-715 lov: fix procfs reporting for qos values (Revision d07942a89ba92fa20cf0364900a1d52d94784edc)

Result = SUCCESS
Johann Lombardi : d07942a89ba92fa20cf0364900a1d52d94784edc
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 12/Dec/11 ]

Integrated in lustre-b1_8 » x86_64,server,el5,ofa #160
LU-715 lov: fix procfs reporting for qos values (Revision d07942a89ba92fa20cf0364900a1d52d94784edc)

Result = SUCCESS
Johann Lombardi : d07942a89ba92fa20cf0364900a1d52d94784edc
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 12/Dec/11 ]

Integrated in lustre-b1_8 » i686,client,el5,inkernel #160
LU-715 lov: fix procfs reporting for qos values (Revision d07942a89ba92fa20cf0364900a1d52d94784edc)

Result = SUCCESS
Johann Lombardi : d07942a89ba92fa20cf0364900a1d52d94784edc
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 12/Dec/11 ]

Integrated in lustre-b1_8 » i686,server,el5,inkernel #160
LU-715 lov: fix procfs reporting for qos values (Revision d07942a89ba92fa20cf0364900a1d52d94784edc)

Result = SUCCESS
Johann Lombardi : d07942a89ba92fa20cf0364900a1d52d94784edc
Files :

  • lustre/lov/lproc_lov.c
Comment by Build Master (Inactive) [ 12/Dec/11 ]

Integrated in lustre-b1_8 » i686,server,el5,ofa #160
LU-715 lov: fix procfs reporting for qos values (Revision d07942a89ba92fa20cf0364900a1d52d94784edc)

Result = SUCCESS
Johann Lombardi : d07942a89ba92fa20cf0364900a1d52d94784edc
Files :

  • lustre/lov/lproc_lov.c
Comment by Andreas Dilger [ 05/Apr/12 ]

Patch was landed for Lustre 2.2.

Generated at Sat Feb 10 01:09:43 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.