[LU-9909] memory leak in lnet_discover() Created: 24/Aug/17 Updated: 31/Aug/17 Resolved: 31/Aug/17 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.11.0 |
| Fix Version/s: | Lustre 2.11.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | John Hammond | Assignee: | Amir Shehata (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
In lnet_discover() the buffer allocated by LIBCFS_ALLOC(buf, n_ids * sizeof(*buf)) is never freed. |
| Comments |
| Comment by Amir Shehata (Inactive) [ 24/Aug/17 ] |
|
thanks for catching that. Will address it. |
| Comment by James Nunez (Inactive) [ 24/Aug/17 ] |
|
I'm seeing several of our tests failing with [13455.203067] LNetError: 14901:0:(module.c:689:libcfs_exit()) Portals memory leaked: 184 bytes mv: cannot stat '/tmp/debug': No such file or directory Memory leaks detected Is this the same issue? Logs for this failure can be found at |
| Comment by Amir Shehata (Inactive) [ 24/Aug/17 ] |
|
Did that just start happening after the latest landing? or has it been happening for a while? |
| Comment by James Nunez (Inactive) [ 24/Aug/17 ] |
|
So far, the earliest date I see the 'Portals memory leaked' error is on August 22. So, yes, they started after the last batch of patch landings to master. |
| Comment by John Hammond [ 24/Aug/17 ] |
|
I bisected this locally by running conf-sanity 35a. This was introduced by commit 0f1aaad4c1b4447ee5097b8bb79a49d09eaa23c2 https://review.whamcloud.com/25789 m:lustre-release# gdb lnet/lnet/lnet.ko ... (gdb) p sizeof(struct lnet_peer) $1 = 184 |
| Comment by Olaf Weber [ 24/Aug/17 ] |
|
If the leak is an lnet_peer then it differs from the problem for which this LU was opened. |
| Comment by James Nunez (Inactive) [ 24/Aug/17 ] |
|
I created |
| Comment by Gerrit Updater [ 25/Aug/17 ] |
|
Amir Shehata (amir.shehata@intel.com) uploaded a new patch: https://review.whamcloud.com/28702 |
| Comment by Gerrit Updater [ 31/Aug/17 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/28702/ |
| Comment by Peter Jones [ 31/Aug/17 ] |
|
Landed for 2.11 |