Skip to content

support l3cache package align#988

Merged
xu282934741 merged 6 commits intokubewharf:mainfrom
luomingmeng:dev/support-l3cache-package-align
Nov 12, 2025
Merged

support l3cache package align#988
xu282934741 merged 6 commits intokubewharf:mainfrom
luomingmeng:dev/support-l3cache-package-align

Conversation

@luomingmeng
Copy link
Copy Markdown
Collaborator

What type of PR is this?

Features

What this PR does / why we need it:

Which issue(s) this PR fixes:

Special notes for your reviewer:

@luomingmeng luomingmeng force-pushed the dev/support-l3cache-package-align branch from acfe811 to 210cd8f Compare September 24, 2025 02:56
@luomingmeng luomingmeng self-assigned this Sep 24, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 24, 2025

Codecov Report

❌ Patch coverage is 77.50000% with 63 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.81%. Comparing base (5bb737c) to head (1cb56e1).
⚠️ Report is 32 commits behind head on main.

Files with missing lines Patch % Lines
...lugins/cpu/dynamicpolicy/policy_advisor_handler.go 40.38% 26 Missing and 5 partials ⚠️
.../hintoptimizer/policy/resourcepackage/optimizer.go 81.63% 12 Missing and 6 partials ⚠️
pkg/util/machine/topology.go 86.27% 5 Missing and 2 partials ⚠️
...ins/cpu/dynamicpolicy/calculator/cpu_assignment.go 90.56% 3 Missing and 2 partials ⚠️
pkg/agent/qrm-plugins/commonstate/pool.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #988      +/-   ##
==========================================
+ Coverage   59.79%   59.81%   +0.01%     
==========================================
  Files         683      687       +4     
  Lines       64088    64557     +469     
==========================================
+ Hits        38321    38612     +291     
- Misses      21365    21503     +138     
- Partials     4402     4442      +40     
Flag Coverage Δ
unittest 59.81% <77.50%> (+0.01%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@luomingmeng luomingmeng force-pushed the dev/support-l3cache-package-align branch 9 times, most recently from afad51e to 391e54b Compare September 29, 2025 18:22
@luomingmeng luomingmeng force-pushed the dev/support-l3cache-package-align branch 4 times, most recently from b291c8d to 7bc7e9e Compare October 28, 2025 07:56
@luomingmeng luomingmeng added the workflow/need-review review: test succeeded, need to review label Nov 11, 2025
Implement a new hint optimizer that considers resource package allocations when providing topology hints. The optimizer filters NUMA nodes based on available resources in the specified package, ensuring pods only get hints for nodes with sufficient capacity.
…ache alignment

Add L3 cache topology awareness to CPU allocation strategy to improve cache locality. The new algorithm:
1. Adds L3 cache topology information to CPUDetails
2. Implements L3 cache-aware sorting and allocation logic
3. Makes L3 cache alignment optional via parameter
4. Improves error messages and logging for debugging
The assignment of cpuDetails was missing in the tryAlignL3Caches method, which could lead to incorrect CPU allocation. Also added a test case to verify L3 cache alignment behavior.
…tion reuse

- Introduce BlockInfo struct to track owner pool and entry details
- Split block allocation logic for dedicated and shared/reclaimed pools
- Reuse existing allocations for dedicated cores when possible
- Improve NUMA-aware CPU allocation strategy
…ontainers block

Modify policy advisor to consider both isolation and NUMA-bound share pools when checking for NUMA binding
@luomingmeng luomingmeng force-pushed the dev/support-l3cache-package-align branch from ddf8539 to 1cb56e1 Compare November 12, 2025 08:37
@xu282934741 xu282934741 merged commit 2590c1d into kubewharf:main Nov 12, 2025
17 of 18 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.

2 participants