[LU-11032] memory leak in mdt_hsm_cdt_cleanup Created: 18/May/18  Updated: 24/Jul/18  Resolved: 24/Jul/18

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

Type: New Feature Priority: Minor
Reporter: Qian Yingjin (Inactive) Assignee: Qian Yingjin (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

Rank (Obsolete): 9223372036854775807

 Description   

 

During the following test with HSM, we found memory leaks bug.

sh llmount.sh
lctl set_param mdt.lustre-MDT0000.hsm_control=enabled
lhsmtool_posix --daemon --hsm-root /mnt/pcc --archive=1 /mnt/lustre
sh llmountcleanup.sh 
Stopping clients: server /mnt/lustre (opts:-f)
Stopping client server /mnt/lustre opts:-f
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/42/gvfs
 Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
lt-lhsmto 29781 root 4r DIR 1273,181606 4096 144115188193296385 /mnt/lustre
lt-lhsmto 29781 root 5r DIR 1273,181606 4096 144115188193296385 /mnt/lustre
lt-lhsmto 29781 root 6r DIR 1273,181606 4096 144115188109410306 /mnt/lustre/.lustre/fid
Stopping clients: server /mnt/lustre2 (opts:-f)
Stopping /mnt/lustre-mds1 (opts:-f) on server
Stopping /mnt/lustre-ost1 (opts:-f) on server
Stopping /mnt/lustre-ost2 (opts:-f) on server
[25426.617292] LustreError: 30606:0:(class_obd.c:819:obdclass_exit()) obd_memory max: 166871290, leaked: 4
mv: cannot stat '/tmp/debug': No such file or directory
Memory leaks detected

 



 Comments   
Comment by Gerrit Updater [ 18/May/18 ]

Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/32456
Subject: LU-11032 hsm: memory leak in mdt_hsm_cdt_cleanup
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: aedf72e31463c31644a4aff1d348aafe3cc47a77

Comment by Gerrit Updater [ 24/Jul/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32456/
Subject: LU-11032 hsm: memory leak in mdt_hsm_cdt_cleanup
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: cf1ff48377bd1ec328c4eb891b81ed1baf66c051

Comment by Peter Jones [ 24/Jul/18 ]

Landed for 2.12

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