[LU-14049] ofd_access_log_reader thread leak Created: 20/Oct/20  Updated: 07/Nov/20  Resolved: 03/Nov/20

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

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Cloners
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

In ofd_access_log_reader the thread spawned from alr_batch_print() is created with a default (joinable) thread attribute but is never joined thus leaking the thread resources. This causes ofd_access_log_reader to eventually run out of memory maps:

# pidof ofd_access_log_reader
1631
# wc -l /proc/1631/maps
65531


 Comments   
Comment by Gerrit Updater [ 20/Oct/20 ]

John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40309
Subject: LU-14049 utils: manage thread resources in alr_batch_print()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 95ca5683233c91468fafe65030363754f86b6cdb

Comment by Gerrit Updater [ 03/Nov/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40309/
Subject: LU-14049 utils: manage thread resources in alr_batch_print()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a88ab3c916151a1c4aaedf358a65fbebb5d4f521

Comment by Peter Jones [ 03/Nov/20 ]

Landed for 2.14

Generated at Sat Feb 10 03:06:24 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.