Bug 8675 - fix memory exhuasting caused by frequent create and destroy multiple CSV2 guest
Summary: fix memory exhuasting caused by frequent create and destroy multiple CSV2 guest
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-01 11:15 UTC by wojiaohanliyang
Modified: 2024-04-01 11:41 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wojiaohanliyang hygon_group 2024-04-01 11:15:55 UTC
Description of problem:

When launch and kill multiple CSV2 guest frequently, we will see serious memory
leak through
$ free -h

The reason of the memory leak is that the CSV2 guest's ghcb pages are referenced by kvm_vcpu_map() but are'nt dereferenced by kvm_vcpu_unmap() when killing the CSV2 guest.

[Reference: https://bugzilla.openanolis.cn/show_bug.cgi?id=7757]

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 小龙 admin 2024-04-01 11:41:22 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2975