Open
[Bug-Report|缺陷反馈]:PyPTO launch kernel出现内存泄漏 #3994
WuuuugAdd on  2 days ago
Wuuuug
Wuuuug
2 days ago Create

Describe the current behavior / 问题描述 (Mandatory / 必填)

PyPTO launch kernel出现内存泄漏,定位问题来源于machine在每次调用DeviceLauncher::RunPreSync都会去执行AclRtCreateEventExWithFlag申请资源,但是从来不做释放,导致每次调用出现少量内存泄漏

Environment / 环境信息 (Mandatory / 必填)

A3

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

重复跑engram算子观察host内存占用

Describe the expected behavior / 预期结果 (Mandatory / 必填)

多次调用host内存占用不会发生持续增长

调用600万次算子,host内存占用增长10G多:
image.png

Special notes for this issue/备注 (Optional / 选填)

likedislike
LordOfMysteriesLordOfMysteriesCollaborators
2 days ago Assign LordOfMysteries as responsible person
LordOfMysteries
LordOfMysteriesCollaborators
2 days ago Comments:

处理中

likedislike
LordOfMysteriesLordOfMysteriesCollaborators
2 days ago Added label: Machine
LordOfMysteriesLordOfMysteriesCollaborators
2 days ago Associated pull request