[LU-7465] False positive memory leak in sanity tests due to iov_iter_get_pages_alloc Created: 23/Nov/15  Updated: 26/Sep/16  Resolved: 17/Dec/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.8.0
Fix Version/s: Lustre 2.8.0

Type: Bug Priority: Minor
Reporter: Wally Wang (Inactive) Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: patch
Environment:

3.16 and later kernels


Issue Links:
Related
is related to LU-7052 iovec created with iov_iter_get_pages... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The iov_iter_get_pages_alloc function(introduced by 3.16 kernels, LU-6260) is a kernel function which does not use Lustre's hook to keep track of memory allocation and therefore the number of bytes tallied by Lustre's ll_free_user_pages() appeared to be 'extra'. This happens only to direct io read and it is not a real leak of memory. It can be reproduced by a number of sanity tests, such as 205, to result in the message similar to:

25243:0:(class_obd.c:646:cleanup_obdclass()) obd_memory max:
18446744073709549568, leaked: 18446744073709549568



 Comments   
Comment by Gerrit Updater [ 23/Nov/15 ]

Wally Wang (wang@cray.com) uploaded a new patch: http://review.whamcloud.com/17342
Subject: LU-7465 llite: Do not track memory leak for kernel function
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: dc38ad8d997a7252c6f8d3e246b38dd4d85295c6

Comment by Cory Spitz [ 23/Nov/15 ]

Frank notes that this is related to LU-7052 and http://review.whamcloud.com/#/c/16111. Note that that patch was rejected and then abandoned.

Comment by Andreas Dilger [ 24/Nov/15 ]

I don't see any reviews on 16111, so I assume the patch rejection was something that happened internally? In any case, good to see the new patch.

Comment by Cory Spitz [ 25/Nov/15 ]

I think that it was discussed not in Gerrit, but in LU-7052.

Comment by Gerrit Updater [ 17/Dec/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/17342/
Subject: LU-7465 llite: Do not track memory leak for kernel function
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 09141c0796802e7a3471c084ea5928674b3a1862

Comment by Joseph Gmitter (Inactive) [ 17/Dec/15 ]

Landed for 2.8

Generated at Sat Feb 10 02:09:08 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.