Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fragmem): unified solution for memory compaction #667

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

lubinszARM
Copy link
Contributor

What type of PR is this?

Features: adding support for memory fragmentation management

What this PR does / why we need it:

In production area, memory fragmentation related issues can cause numerous problems.

Which issue(s) this PR fixes:

Many issues.

Special notes for your reviewer:

None.

@lubinszARM lubinszARM requested a review from csfldf as a code owner August 7, 2024 09:13
@lubinszARM lubinszARM force-pushed the pr_memory_compaction branch 2 times, most recently from 3110649 to c60067e Compare August 7, 2024 09:32
Copy link

codecov bot commented Aug 7, 2024

Codecov Report

Attention: Patch coverage is 50.71429% with 69 lines in your changes missing coverage. Please review.

Project coverage is 55.91%. Comparing base (56959bd) to head (c364e14).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...m-plugins/memory/handlers/fragmem/fragmem_linux.go 45.23% 43 Missing and 3 partials ⚠️
...g/agent/qrm-plugins/memory/dynamicpolicy/policy.go 11.11% 8 Missing ⚠️
.../agent/metric/provisioner/malachite/provisioner.go 37.50% 4 Missing and 1 partial ⚠️
...md/katalyst-agent/app/options/qrm/memory_plugin.go 60.00% 4 Missing ⚠️
...qrm-plugins/memory/handlers/fragmem/utils_linux.go 82.35% 2 Missing and 1 partial ⚠️
pkg/util/process/system.go 75.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #667      +/-   ##
==========================================
+ Coverage   55.79%   55.91%   +0.12%     
==========================================
  Files         573      575       +2     
  Lines       66840    66980     +140     
==========================================
+ Hits        37294    37454     +160     
+ Misses      25575    25548      -27     
- Partials     3971     3978       +7     
Flag Coverage Δ
unittest 55.91% <50.71%> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lubinszARM lubinszARM force-pushed the pr_memory_compaction branch 7 times, most recently from 847528c to 15f301c Compare August 8, 2024 02:36
@lubinszARM lubinszARM force-pushed the pr_memory_compaction branch from 15f301c to 6458974 Compare August 27, 2024 03:52
@lubinszARM lubinszARM force-pushed the pr_memory_compaction branch 6 times, most recently from 3057fb1 to 40f218e Compare August 28, 2024 07:40
@lubinszARM lubinszARM force-pushed the pr_memory_compaction branch 8 times, most recently from c81532d to c51afb4 Compare September 1, 2024 11:48
@lubinszARM lubinszARM force-pushed the pr_memory_compaction branch 2 times, most recently from 2dccb6b to 6f742ec Compare September 1, 2024 12:34
@xu282934741 xu282934741 added the workflow/need-review review: test succeeded, need to review label Sep 19, 2024
@lubinszARM lubinszARM force-pushed the pr_memory_compaction branch 4 times, most recently from 5e1a240 to a728e12 Compare September 25, 2024 10:31
Signed-off-by: Robin Lu <robin.lu@bytedance.com>
Signed-off-by: Robin Lu <robin.lu@bytedance.com>
@lubinszARM lubinszARM force-pushed the pr_memory_compaction branch from a728e12 to 7cda1b9 Compare October 23, 2024 03:08
@@ -140,6 +140,7 @@ func (m *MalachiteMetricsProvisioner) updateSystemStats() error {
} else {
m.processSystemMemoryData(systemMemoryData)
m.processSystemNumaData(systemMemoryData)
m.processSystemNumaMemFragData(systemMemoryData)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to processSystemExtFragData?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@lubinszARM lubinszARM force-pushed the pr_memory_compaction branch from 7cda1b9 to 443a72c Compare October 23, 2024 03:28
Signed-off-by: Robin Lu <robin.lu@bytedance.com>
@lubinszARM lubinszARM force-pushed the pr_memory_compaction branch from 443a72c to c364e14 Compare October 23, 2024 03:34
@luomingmeng luomingmeng merged commit 0c234bf into kubewharf:main Oct 23, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
workflow/need-review review: test succeeded, need to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants