[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 This is not the case for values 0 or 100: [root]# echo 100 > qos_threshold_rr 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 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 Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 28/Oct/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 28/Oct/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 28/Oct/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 28/Oct/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 28/Oct/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 28/Oct/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 28/Oct/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Peter Jones [ 28/Oct/11 ] |
|
Landed for 2.2 |
| Comment by Build Master (Inactive) [ 28/Oct/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 28/Oct/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 28/Oct/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 28/Oct/11 ] |
|
Integrated in Result = FAILURE
|
| Comment by Build Master (Inactive) [ 29/Oct/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 29/Oct/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 12/Dec/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 12/Dec/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 12/Dec/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 12/Dec/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 12/Dec/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 12/Dec/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 12/Dec/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 12/Dec/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 12/Dec/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 12/Dec/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 12/Dec/11 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Andreas Dilger [ 05/Apr/12 ] |
|
Patch was landed for Lustre 2.2. |