[LU-14659] sanity test_413a: subdirs shouldn't be evenly distributed Created: 30/Apr/21 Updated: 21/Oct/23 Resolved: 17/Oct/21 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.15.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Maloo | Assignee: | Lai Siyao |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Severity: | 3 | ||||||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||||||
| Description |
|
This issue was created by maloo for Vitaly Fertman <vitaly_fertman@xyratex.com> This issue relates to the following test suite run: https://testing.whamcloud.com/test_sets/9b91c699-3875-4fd0-a21b-f78bb5335464 test_413a failed with the following error: subdirs shouldn't be evenly distributed it seems VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV |
| Comments |
| Comment by Andreas Dilger [ 30/Apr/21 ] |
|
Vitaly, |
| Comment by Chris Horn [ 26/May/21 ] |
|
+1 on master https://testing.whamcloud.com/test_sets/857c693d-64af-48d6-a029-b641395d9b1a |
| Comment by Andreas Dilger [ 06/Jul/21 ] |
|
This should be fixed by patch https://review.whamcloud.com/43997 " |
| Comment by Andreas Dilger [ 11/Aug/21 ] |
|
Lai, it looks like this is still being hit on master. Looking at a recent failure, I think there are two issues: Check for uneven MDTs: weight diff=0% must be > 100% ...Fill MDT0 with 100 files: loop 0 weight diff=0% must be > 100% ...Fill MDT0 with 100 files: loop 1 weight diff=0% must be > 100% ...Fill MDT0 with 100 files: loop 2 MDT filesfree available: 834976 834538 835384 835497 MDT blocks available: 416644 1045656 1044312 1042392 weight diff=150% It looks like statfs is being cached inside the loop, so the loop is running more times than needed. This is probably also causing The second issue is that the "imbalance check" appears to be using the minimum imbalance instead of the maximum imbalance? 179 directories created on MDT0 188 directories created on MDT1 222 directories created on MDT2 211 directories created on MDT3 sanity test_413a: @@@@@@ FAIL: subdirs shouldn't be evenly distributed: 188 - 179 < 20 The 189 directories on MDT1 is only higher by 9, but the other MDTs are higger by 43 and 32. Since the MDT selection is random, maybe this should compare the average difference > 20, and that no single MDT is less than 5 higher? |
| Comment by Lai Siyao [ 12/Aug/21 ] |
|
Mmm, this can be improved. And the reason the "imbalance check" looks to be minimum imbalance is the most empty MDT is checked before IO, due to the cached statfs result and randomness in MDT choosing, it may not be the MDT most directories are created. It should be changed to check after creation. |
| Comment by Gerrit Updater [ 12/Aug/21 ] |
|
"Lai Siyao <lai.siyao@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/44649 |
| Comment by Gerrit Updater [ 17/Oct/21 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44649/ |
| Comment by Peter Jones [ 17/Oct/21 ] |
|
Landed for 2.15 |