[LU-11897] ineffective memory allocation in ptlrpc Created: 29/Jan/19 Updated: 19/Feb/19 Resolved: 19/Feb/19 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.13.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrew Perepechko | Assignee: | Andrew Perepechko |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
For a few ptlrpc services, rqbd buffers are allocated using non-2^n allocation requests. This leads to ineffective memory usage and in some cases even to OOM. A patch will be uploaded shortly. |
| Comments |
| Comment by Gerrit Updater [ 29/Jan/19 ] |
|
Andrew Perepechko (c17827@cray.com) uploaded a new patch: https://review.whamcloud.com/34127 |
| Comment by Andrew Perepechko [ 29/Jan/19 ] |
|
How this bug led to an OOM event:
|
| Comment by Andrew Perepechko [ 29/Jan/19 ] |
|
While originally a whole 17 KiB (in fact, 32 KiB due to rounding) was used for a single 328 byte RPC, with the patch it is possible to put additional (32768-17408)/328-1=45 RPCs in the same buffer, no additional memory required. |
| Comment by Gerrit Updater [ 18/Feb/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34127/ |
| Comment by Peter Jones [ 19/Feb/19 ] |
|
Landed for 2.13 |