[LU-170] OSCC_FLAG_LOW is always set and oscc_grow_count will never grow Created: 28/Mar/11 Updated: 28/Jun/11 Resolved: 24/May/11 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 1.8.6 |
| Fix Version/s: | Lustre 2.1.0, Lustre 1.8.6 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Liang Zhen (Inactive) | Assignee: | Liang Zhen (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 5080 |
| Description |
|
I found osc_precreate is not working in the expected way, we always precreate 32 objects for some reason. After digging into code I found there is a bug: we are using req::rq_async_args.space[0] to store original value of oscc_grow_count, and using req::rq_async_args.pointer_arg[0] to store oscc, however, ptlrpc_async_args is a union, which means req::rq_async_args.space[0] will always be overwritten by a ossc (a pointer), and osc_interpret_create will always get true on this condition "if (diff < (int) req->rq_async_args.space[0])" and reset oscc_grow_count to OST_MIN_PRECREATE and set OSCC_FLAG_LOW. The fix will be very simple but it has big impact on performance of file creation so I set priority as "major", I will post patch for it very soon. |
| Comments |
| Comment by Build Master (Inactive) [ 28/Mar/11 ] |
|
Integrated in Liang Zhen : 72cd44851509863fc36597d75e3d1c7917b4d62c
|
| Comment by Liang Zhen (Inactive) [ 28/Mar/11 ] |
|
I've posted the patch on http://review.whamcloud.com/#change,371 |
| Comment by Oleg Drokin [ 28/Mar/11 ] |
|
Not to worry about the big create count, there is a time-based limit on the OST side that would prevent OST spending too much time in precreate. |
| Comment by Oleg Drokin [ 28/Mar/11 ] |
|
I did some research and I suspect I know how it was not initially caught. |
| Comment by Build Master (Inactive) [ 28/Mar/11 ] |
|
Integrated in Liang Zhen : eec7388d80a437fdf20ebf46ea42355cf45f8b77
|
| Comment by Build Master (Inactive) [ 28/Mar/11 ] |
|
Integrated in Liang Zhen : eec7388d80a437fdf20ebf46ea42355cf45f8b77
|
| Comment by Build Master (Inactive) [ 28/Mar/11 ] |
|
Integrated in Liang Zhen : eec7388d80a437fdf20ebf46ea42355cf45f8b77
|
| Comment by Build Master (Inactive) [ 28/Mar/11 ] |
|
Integrated in Liang Zhen : eec7388d80a437fdf20ebf46ea42355cf45f8b77
|
| Comment by Build Master (Inactive) [ 28/Mar/11 ] |
|
Integrated in Liang Zhen : eec7388d80a437fdf20ebf46ea42355cf45f8b77
|
| Comment by Build Master (Inactive) [ 28/Mar/11 ] |
|
Integrated in Liang Zhen : eec7388d80a437fdf20ebf46ea42355cf45f8b77
|
| Comment by Eric Barton (Inactive) [ 29/Mar/11 ] |
|
This use of rq_async_args (i.e. dereferencing 'space[]' and Each new or different use of this scratchpad must have its Ideally, rq_async_args should be declared as the union of all these These issues must either be fixed in this bug, or a new bug created |
| Comment by Build Master (Inactive) [ 29/Mar/11 ] |
|
Integrated in Liang Zhen : eec7388d80a437fdf20ebf46ea42355cf45f8b77
|
| Comment by Build Master (Inactive) [ 30/Mar/11 ] |
|
Integrated in Liang Zhen : 515135a06055dd5047877786998ff400a5f12ba1
|
| Comment by Build Master (Inactive) [ 31/Mar/11 ] |
|
Integrated in Liang Zhen : 3e44a66438ece2da0e2467a8dd1f00c0933e87f4
|
| Comment by Build Master (Inactive) [ 06/Apr/11 ] |
|
Integrated in Oleg Drokin : b9ab6348153fd8d236871f75e5bd3793a49c9a45
|
| Comment by Build Master (Inactive) [ 06/Apr/11 ] |
|
Integrated in Oleg Drokin : b9ab6348153fd8d236871f75e5bd3793a49c9a45
|
| Comment by Build Master (Inactive) [ 06/Apr/11 ] |
|
Integrated in Oleg Drokin : b9ab6348153fd8d236871f75e5bd3793a49c9a45
|
| Comment by Build Master (Inactive) [ 06/Apr/11 ] |
|
Integrated in Oleg Drokin : b9ab6348153fd8d236871f75e5bd3793a49c9a45
|
| Comment by Build Master (Inactive) [ 06/Apr/11 ] |
|
Integrated in Oleg Drokin : b9ab6348153fd8d236871f75e5bd3793a49c9a45
|
| Comment by Build Master (Inactive) [ 06/Apr/11 ] |
|
Integrated in Oleg Drokin : b9ab6348153fd8d236871f75e5bd3793a49c9a45
|
| Comment by Build Master (Inactive) [ 06/Apr/11 ] |
|
Integrated in Oleg Drokin : b9ab6348153fd8d236871f75e5bd3793a49c9a45
|
| Comment by Build Master (Inactive) [ 06/Apr/11 ] |
|
Integrated in Oleg Drokin : b9ab6348153fd8d236871f75e5bd3793a49c9a45
|
| Comment by Build Master (Inactive) [ 06/Apr/11 ] |
|
Integrated in Oleg Drokin : b9ab6348153fd8d236871f75e5bd3793a49c9a45
|
| Comment by Peter Jones [ 06/Apr/11 ] |
|
Fix landed to master. Please reopen if more work required. |
| Comment by Build Master (Inactive) [ 07/Apr/11 ] |
|
Integrated in Oleg Drokin : b9ab6348153fd8d236871f75e5bd3793a49c9a45
|
| Comment by Liang Zhen (Inactive) [ 14/Apr/11 ] |
|
it's still on b1_8, I will workout a patch for b1_8 |
| Comment by Liang Zhen (Inactive) [ 14/Apr/11 ] |
|
reopen it for b1_8 |
| Comment by Build Master (Inactive) [ 22/May/11 ] |
|
Integrated in Johann Lombardi : d70807c400978c3ae1119d7d9fa22f160eece35a
|
| Comment by Build Master (Inactive) [ 22/May/11 ] |
|
Integrated in Johann Lombardi : d70807c400978c3ae1119d7d9fa22f160eece35a
|
| Comment by Build Master (Inactive) [ 22/May/11 ] |
|
Integrated in Johann Lombardi : d70807c400978c3ae1119d7d9fa22f160eece35a
|
| Comment by Build Master (Inactive) [ 22/May/11 ] |
|
Integrated in Johann Lombardi : d70807c400978c3ae1119d7d9fa22f160eece35a
|
| Comment by Build Master (Inactive) [ 22/May/11 ] |
|
Integrated in Johann Lombardi : d70807c400978c3ae1119d7d9fa22f160eece35a
|
| Comment by Build Master (Inactive) [ 22/May/11 ] |
|
Integrated in Johann Lombardi : d70807c400978c3ae1119d7d9fa22f160eece35a
|
| Comment by Build Master (Inactive) [ 22/May/11 ] |
|
Integrated in Johann Lombardi : d70807c400978c3ae1119d7d9fa22f160eece35a
|
| Comment by Build Master (Inactive) [ 22/May/11 ] |
|
Integrated in Johann Lombardi : d70807c400978c3ae1119d7d9fa22f160eece35a
|
| Comment by Build Master (Inactive) [ 22/May/11 ] |
|
Integrated in Johann Lombardi : d70807c400978c3ae1119d7d9fa22f160eece35a
|
| Comment by Build Master (Inactive) [ 22/May/11 ] |
|
Integrated in Johann Lombardi : d70807c400978c3ae1119d7d9fa22f160eece35a
|
| Comment by Build Master (Inactive) [ 22/May/11 ] |
|
Integrated in Johann Lombardi : d70807c400978c3ae1119d7d9fa22f160eece35a
|
| Comment by Peter Jones [ 24/May/11 ] |
|
Landed for both 1.8.6 and 2.1 so I think that this can be marked RESOLVED. Please reopen if there is still any further work to complete |