[LU-11157] sanity test_42e: invalid arithmetic operator (error token is ".9") Created: 18/Jul/18 Updated: 21/Nov/19 Resolved: 10/May/19 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.12.0 |
| Fix Version/s: | Lustre 2.13.0, Lustre 2.12.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Maloo | Assignee: | James A Simmons |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Severity: | 3 | ||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||
| Description |
|
This issue was created by maloo for John Hammond <jhammond@whamcloud.com> This issue relates to the following test suite run: https://testing.whamcloud.com/test_sets/f2a78f4c-8aa6-11e8-808e-52540065bddc test_42e failed with the following error: test_42e returned 1 == sanity test 42e: verify sub-RPC writes are not done synchronously ================================= 14:42:04 (1531924924) total: 3500 open/close in 6.19 seconds: 565.32 ops/second /usr/lib64/lustre/tests/sanity.sh: line 3978: 209.9: syntax error: invalid arithmetic operator (error token is ".9") Some proc/sys/... files are returning decimal values. This one is from max_dirty_mb. Looks like 14 instances of this failure today. VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV |
| Comments |
| Comment by Gerrit Updater [ 18/Jul/18 ] |
|
John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/32831 |
| Comment by Andreas Dilger [ 18/Jul/18 ] |
LU-8066 obdclass: move lustre sysctl to sysfs
Backport from upstream the changes to port lustre
systctl to sysfs. Needed to re-export the function
lprocfs_read_frac_helper for later work. The
following patches were backported:
Linux-commit: e2424a1265f2772b66f068c205256e2aef5f74a0
Move max_dirty_mb from sysctl to sysfs. max_dirty_mb is
now a parameter in /sys/fs/lustre.
|
| Comment by James A Simmons [ 19/Jul/18 ] |
|
Ouch, it been broken upstream for some time. |
| Comment by John Hammond [ 19/Jul/18 ] |
|
> Ouch, it been broken upstream for some time. It was only when I am really not a fan of displaying decimal fractional values in these files. Generally it means that we cannot faithfully save and restore the parameter values. However if we do keep fractional values then I think there is more to do here. There are substantial differences between lprocfs_seq_read_frac_helper() and lprocfs_read_frac_helper(). I don't know why the second function is so complicated. But this is bad. Switching from proc to sys shouldn't be changing the format used to display the values. |
| Comment by Gerrit Updater [ 19/Jul/18 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/32831/ |
| Comment by James Nunez (Inactive) [ 19/Jul/18 ] |
|
In addition to sanity test 42e failing, we also see the following tests fail: |
| Comment by James A Simmons [ 08/Feb/19 ] |
|
So I started to look into this and see the reason as John pointed out for the failures Nunez posted is due to the test treating the values returned by say "max_dirty_mb" as a real integer and not a float point string. We could update the test to feed this result into bc since bash can't do floating point math. The question to ask is do we want to make sites do the same kind of crazy? If we don't that means we end implementing round_up() handling like we did for dirty_max_pages. Is that okay with people? |
| Comment by Andreas Dilger [ 09/Feb/19 ] |
|
I'm fine with rounding the output to a whole number of MB. This is the only code that is using lprocfs_read_frac_helper() so it could just be removed. There are other places that are using lprocfs_seq_read_frac_helper() that will have the same issues. Back when this code was written, a few MB was a lot of memory, but now it is a rounding error for a client. |
| Comment by Gerrit Updater [ 25/Feb/19 ] |
|
James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/34317 |
| Comment by Gerrit Updater [ 10/May/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34317/ |
| Comment by Peter Jones [ 10/May/19 ] |
|
Landed for 2.13 |
| Comment by Gerrit Updater [ 07/Oct/19 ] |
|
Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36393 |
| Comment by Gerrit Updater [ 21/Nov/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36393/ |