Skip to content

perf(scheduler): reduce allocation churn in hot path#1698

Open
kshitizlohia1994 wants to merge 1 commit into
kai-scheduler:mainfrom
kshitizlohia1994:perf/reduce-reclaim-alloc-churn
Open

perf(scheduler): reduce allocation churn in hot path#1698
kshitizlohia1994 wants to merge 1 commit into
kai-scheduler:mainfrom
kshitizlohia1994:perf/reduce-reclaim-alloc-churn

Conversation

@kshitizlohia1994

@kshitizlohia1994 kshitizlohia1994 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Description

Part of #1653: reduces allocation churn in the scheduler hot path:

  • Cache Schedulable() result as a package-level singleton in quota_check.go to avoid a heap allocation on every call (733 MB in the profiled run)
  • Add IsVerbose(int) bool to SchedulerLogger interface and guard logNodeSetsPluginResult node-name slice building behind IsVerbose(7), so the slices are never allocated on non-verbose runs (1.33 GB in the profiled run)
  • Fix logNodeSetsPluginResult to collect node names (strings) rather than appending the full NodeSet map

Related Issues

Part of #1653

Checklist

  • Self-reviewed
  • Added/updated tests (if needed)
  • Updated documentation (if needed)

Breaking Changes

None

Additional Notes

None

- Cache Schedulable() result as a package-level singleton to avoid
  per-call struct allocation in quota_check.go
- Add IsVerbose(int) to SchedulerLogger and guard logNodeSetsPluginResult
  node-name slice building behind IsVerbose(7) check
- Fix logNodeSetsPluginResult to collect node names instead of
  appending the full NodeSet map

Signed-off-by: kshitizlohia1994 <kshitizlohia1994@gmail.com>
@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b6c688bf-e013-464d-921a-f7c61f734bf5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@enoodle

enoodle commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Can you change the description wording so that it will not be "fixes .. " - github will close the issue with this current wording.

@github-actions

Copy link
Copy Markdown

📊 Performance Benchmark Results

Comparing PR (perf/reduce-reclaim-alloc-churn) vs main branch — click to expand
goos: linux
goarch: amd64
pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions
cpu: AMD EPYC 7763 64-Core Processor                
                                    │ main-bench.txt │           pr-bench.txt            │
                                    │     sec/op     │   sec/op     vs base              │
AllocateAction_SmallCluster-4            108.8m ± 0%   108.8m ± 0%       ~ (p=0.937 n=6)
AllocateAction_MediumCluster-4           136.7m ± 2%   135.0m ± 1%       ~ (p=0.180 n=6)
AllocateAction_LargeCluster-4            203.2m ± 5%   200.5m ± 1%       ~ (p=0.093 n=6)
ReclaimAction_SmallCluster-4             104.0m ± 0%   103.9m ± 0%       ~ (p=0.394 n=6)
ReclaimAction_MediumCluster-4            106.4m ± 0%   106.8m ± 0%  +0.37% (p=0.009 n=6)
PreemptAction_SmallCluster-4             104.6m ± 0%   104.7m ± 0%       ~ (p=0.065 n=6)
PreemptAction_MediumCluster-4            112.1m ± 0%   112.7m ± 0%  +0.46% (p=0.015 n=6)
ConsolidationAction_SmallCluster-4       123.2m ± 1%   123.8m ± 0%  +0.47% (p=0.004 n=6)
ConsolidationAction_MediumCluster-4      272.8m ± 5%   270.8m ± 3%       ~ (p=0.589 n=6)
FullSchedulingCycle_SmallCluster-4       106.9m ± 0%   106.8m ± 0%       ~ (p=0.818 n=6)
FullSchedulingCycle_MediumCluster-4      120.8m ± 0%   120.6m ± 0%       ~ (p=0.240 n=6)
FullSchedulingCycle_LargeCluster-4       157.3m ± 2%   156.8m ± 2%       ~ (p=0.240 n=6)
ManyQueues_MediumCluster-4               139.3m ± 1%   138.9m ± 0%  -0.26% (p=0.041 n=6)
GangScheduling_MediumCluster-4           155.5m ± 1%   155.6m ± 0%       ~ (p=0.699 n=6)
geomean                                  133.6m        133.4m       -0.20%

                                    │ main-bench.txt │            pr-bench.txt             │
                                    │      B/op      │     B/op      vs base               │
AllocateAction_SmallCluster-4           2.307Mi ± 1%   2.233Mi ± 1%   -3.17% (p=0.002 n=6)
AllocateAction_MediumCluster-4          11.94Mi ± 0%   11.05Mi ± 0%   -7.47% (p=0.002 n=6)
AllocateAction_LargeCluster-4           40.01Mi ± 0%   35.59Mi ± 0%  -11.05% (p=0.002 n=6)
ReclaimAction_SmallCluster-4            939.4Ki ± 1%   939.4Ki ± 1%        ~ (p=0.937 n=6)
ReclaimAction_MediumCluster-4           3.081Mi ± 0%   3.079Mi ± 0%        ~ (p=0.699 n=6)
PreemptAction_SmallCluster-4            1.164Mi ± 1%   1.164Mi ± 1%        ~ (p=0.937 n=6)
PreemptAction_MediumCluster-4           4.722Mi ± 0%   4.711Mi ± 0%   -0.23% (p=0.002 n=6)
ConsolidationAction_SmallCluster-4      10.36Mi ± 0%   10.23Mi ± 0%   -1.27% (p=0.002 n=6)
ConsolidationAction_MediumCluster-4     88.80Mi ± 0%   87.02Mi ± 0%   -2.00% (p=0.002 n=6)
FullSchedulingCycle_SmallCluster-4      1.469Mi ± 1%   1.442Mi ± 1%   -1.84% (p=0.002 n=6)
FullSchedulingCycle_MediumCluster-4     7.005Mi ± 0%   6.559Mi ± 0%   -6.37% (p=0.002 n=6)
FullSchedulingCycle_LargeCluster-4      22.36Mi ± 0%   20.15Mi ± 0%   -9.89% (p=0.002 n=6)
ManyQueues_MediumCluster-4              16.40Mi ± 0%   15.51Mi ± 0%   -5.43% (p=0.002 n=6)
GangScheduling_MediumCluster-4          17.19Mi ± 0%   16.70Mi ± 0%   -2.83% (p=0.002 n=6)
geomean                                 7.207Mi        6.937Mi        -3.75%

                                    │ main-bench.txt │           pr-bench.txt            │
                                    │   allocs/op    │  allocs/op   vs base              │
AllocateAction_SmallCluster-4            35.75k ± 0%   34.85k ± 0%  -2.52% (p=0.002 n=6)
AllocateAction_MediumCluster-4           302.5k ± 0%   298.1k ± 0%  -1.45% (p=0.002 n=6)
AllocateAction_LargeCluster-4            1.266M ± 0%   1.254M ± 0%  -0.95% (p=0.002 n=6)
ReclaimAction_SmallCluster-4             8.635k ± 0%   8.634k ± 0%       ~ (p=0.405 n=6)
ReclaimAction_MediumCluster-4            27.78k ± 0%   27.78k ± 0%       ~ (p=1.000 n=6)
PreemptAction_SmallCluster-4             12.52k ± 0%   12.48k ± 0%  -0.38% (p=0.002 n=6)
PreemptAction_MediumCluster-4            44.37k ± 0%   44.16k ± 0%  -0.45% (p=0.002 n=6)
ConsolidationAction_SmallCluster-4       134.2k ± 0%   132.4k ± 0%  -1.36% (p=0.002 n=6)
ConsolidationAction_MediumCluster-4      1.282M ± 0%   1.273M ± 0%  -0.68% (p=0.002 n=6)
FullSchedulingCycle_SmallCluster-4       21.27k ± 0%   20.82k ± 0%  -2.12% (p=0.002 n=6)
FullSchedulingCycle_MediumCluster-4      164.4k ± 0%   162.2k ± 0%  -1.33% (p=0.002 n=6)
FullSchedulingCycle_LargeCluster-4       665.9k ± 0%   659.9k ± 0%  -0.90% (p=0.002 n=6)
ManyQueues_MediumCluster-4               340.3k ± 0%   335.9k ± 0%  -1.29% (p=0.002 n=6)
GangScheduling_MediumCluster-4           551.1k ± 0%   548.0k ± 0%  -0.57% (p=0.002 n=6)
geomean                                  120.6k        119.4k       -1.00%

pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/integration_tests/reclaim
                            │ main-bench.txt │           pr-bench.txt            │
                            │     sec/op     │   sec/op     vs base              │
ReclaimLargeJobs_10Node-4        106.0m ± 1%   106.0m ± 1%       ~ (p=0.818 n=6)
ReclaimLargeJobs_50Node-4        138.3m ± 1%   139.2m ± 2%       ~ (p=0.310 n=6)
ReclaimLargeJobs_100Node-4       203.1m ± 2%   208.0m ± 2%  +2.45% (p=0.026 n=6)
ReclaimLargeJobs_200Node-4       416.9m ± 2%   437.6m ± 3%  +4.96% (p=0.002 n=6)
ReclaimLargeJobs_500Node-4        1.712 ± 6%    1.793 ± 2%  +4.76% (p=0.041 n=6)
ReclaimLargeJobs_1000Node-4       6.873 ± 3%    6.972 ± 1%       ~ (p=0.065 n=6)
geomean                          494.4m        506.1m       +2.35%

                            │ main-bench.txt │            pr-bench.txt            │
                            │      B/op      │     B/op      vs base              │
ReclaimLargeJobs_10Node-4       2.088Mi ± 3%   2.090Mi ± 2%       ~ (p=0.394 n=6)
ReclaimLargeJobs_50Node-4       16.35Mi ± 0%   16.27Mi ± 0%  -0.46% (p=0.002 n=6)
ReclaimLargeJobs_100Node-4      37.18Mi ± 0%   36.93Mi ± 0%  -0.68% (p=0.002 n=6)
ReclaimLargeJobs_200Node-4      86.38Mi ± 0%   85.48Mi ± 0%  -1.05% (p=0.002 n=6)
ReclaimLargeJobs_500Node-4      262.3Mi ± 0%   258.1Mi ± 0%  -1.60% (p=0.002 n=6)
ReclaimLargeJobs_1000Node-4     674.5Mi ± 0%   657.4Mi ± 0%  -2.53% (p=0.002 n=6)
geomean                         51.83Mi        51.29Mi       -1.04%

                            │ main-bench.txt │           pr-bench.txt            │
                            │   allocs/op    │  allocs/op   vs base              │
ReclaimLargeJobs_10Node-4        23.35k ± 2%   23.22k ± 2%  -0.55% (p=0.039 n=6)
ReclaimLargeJobs_50Node-4        212.0k ± 0%   210.3k ± 0%  -0.80% (p=0.002 n=6)
ReclaimLargeJobs_100Node-4       511.0k ± 0%   507.1k ± 0%  -0.77% (p=0.002 n=6)
ReclaimLargeJobs_200Node-4       1.273M ± 0%   1.264M ± 0%  -0.71% (p=0.002 n=6)
ReclaimLargeJobs_500Node-4       4.319M ± 0%   4.295M ± 0%  -0.54% (p=0.002 n=6)
ReclaimLargeJobs_1000Node-4      12.54M ± 0%   12.49M ± 0%  -0.42% (p=0.002 n=6)
geomean                          747.5k        742.8k       -0.63%

pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/reclaim
                                             │ main-bench.txt │            pr-bench.txt            │
                                             │     sec/op     │    sec/op     vs base              │
ReclaimUnschedulableDistributedJob_10Node-4      135.7m ±  2%   136.4m ±  1%       ~ (p=0.699 n=6)
ReclaimUnschedulableDistributedJob_50Node-4       11.50 ±  2%    11.68 ±  1%  +1.54% (p=0.009 n=6)
ReclaimUnschedulableDistributedJob_100Node-4      53.76 ±  2%    53.71 ±  1%       ~ (p=0.818 n=6)
ReclaimWithMissingPVCJobs-4                      3.426m ± 16%   3.215m ± 24%       ~ (p=0.485 n=6)
geomean                                          732.2m         724.3m        -1.09%

                                             │ main-bench.txt │            pr-bench.txt            │
                                             │      B/op      │     B/op      vs base              │
ReclaimUnschedulableDistributedJob_10Node-4      13.86Mi ± 5%   13.67Mi ± 5%  -1.39% (p=0.041 n=6)
ReclaimUnschedulableDistributedJob_50Node-4      3.431Gi ± 0%   3.211Gi ± 0%  -6.42% (p=0.002 n=6)
ReclaimUnschedulableDistributedJob_100Node-4     18.03Gi ± 0%   16.47Gi ± 0%  -8.64% (p=0.002 n=6)
ReclaimWithMissingPVCJobs-4                      8.023Ki ± 2%   8.023Ki ± 7%       ~ (p=0.697 n=6)
geomean                                          51.52Mi        49.37Mi       -4.18%

                                             │ main-bench.txt │           pr-bench.txt            │
                                             │   allocs/op    │  allocs/op   vs base              │
ReclaimUnschedulableDistributedJob_10Node-4       217.4k ± 4%   214.7k ± 4%  -1.25% (p=0.041 n=6)
ReclaimUnschedulableDistributedJob_50Node-4       98.88M ± 0%   97.58M ± 0%  -1.31% (p=0.002 n=6)
ReclaimUnschedulableDistributedJob_100Node-4      615.4M ± 0%   609.9M ± 0%  -0.89% (p=0.002 n=6)
ReclaimWithMissingPVCJobs-4                        153.0 ± 1%    153.0 ± 3%       ~ (p=1.000 n=6)
geomean                                           1.193M        1.182M       -0.86%

Legend

  • 📉 Negative delta = Performance improvement (faster)
  • 📈 Positive delta = Performance regression (slower)
  • p-value < 0.05 indicates statistically significant change
Raw benchmark data

PR branch:

goos: linux
goarch: amd64
pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkAllocateAction_SmallCluster-4         	      10	 108953075 ns/op	 2342511 B/op	   34859 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108784843 ns/op	 2356160 B/op	   34850 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108782119 ns/op	 2341776 B/op	   34849 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108947359 ns/op	 2340728 B/op	   34845 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108527352 ns/op	 2342130 B/op	   34843 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108874516 ns/op	 2340832 B/op	   34847 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 135124690 ns/op	11580402 B/op	  298067 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 136870131 ns/op	11582882 B/op	  298066 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 136301573 ns/op	11582026 B/op	  298085 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 134868816 ns/op	11583772 B/op	  298098 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 133607006 ns/op	11583476 B/op	  298091 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 134150605 ns/op	11580853 B/op	  298081 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 201833101 ns/op	37310305 B/op	 1253872 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 199193065 ns/op	37317440 B/op	 1253876 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 199453216 ns/op	37312710 B/op	 1253855 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 199601753 ns/op	37318586 B/op	 1253902 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 202551423 ns/op	37315348 B/op	 1253927 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 201495509 ns/op	37314488 B/op	 1253933 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 104174867 ns/op	  961682 B/op	    8634 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103730182 ns/op	  962189 B/op	    8635 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103882021 ns/op	  958527 B/op	    8634 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103807764 ns/op	  962384 B/op	    8635 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103838948 ns/op	  963757 B/op	    8634 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103907802 ns/op	  954812 B/op	    8634 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106472566 ns/op	 3232047 B/op	   27777 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106480065 ns/op	 3228512 B/op	   27778 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106860524 ns/op	 3228719 B/op	   27776 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106754185 ns/op	 3228188 B/op	   27776 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106903349 ns/op	 3228364 B/op	   27777 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 107010727 ns/op	 3232560 B/op	   27777 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104751166 ns/op	 1220661 B/op	   12479 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104555164 ns/op	 1220464 B/op	   12477 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104546088 ns/op	 1216444 B/op	   12475 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104687352 ns/op	 1226869 B/op	   12476 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104699777 ns/op	 1220503 B/op	   12478 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104786799 ns/op	 1220370 B/op	   12476 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 112805519 ns/op	 4944417 B/op	   44166 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 113041050 ns/op	 4935720 B/op	   44164 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 112499782 ns/op	 4939944 B/op	   44165 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 112533594 ns/op	 4943592 B/op	   44163 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 112177976 ns/op	 4940215 B/op	   44167 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 112964725 ns/op	 4939717 B/op	   44164 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 123800293 ns/op	10723826 B/op	  132407 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 123412799 ns/op	10736872 B/op	  132436 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 123910964 ns/op	10724880 B/op	  132417 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 123750594 ns/op	10724922 B/op	  132420 allocs/op

Main branch:

goos: linux
goarch: amd64
pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkAllocateAction_SmallCluster-4         	      10	 108782756 ns/op	 2436960 B/op	   35763 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108799228 ns/op	 2420144 B/op	   35753 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108840992 ns/op	 2424235 B/op	   35744 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108978535 ns/op	 2408952 B/op	   35746 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108847763 ns/op	 2415020 B/op	   35754 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108525736 ns/op	 2416987 B/op	   35740 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 138770342 ns/op	12517033 B/op	  302470 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 136264320 ns/op	12516454 B/op	  302506 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 137171926 ns/op	12517940 B/op	  302437 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 137185242 ns/op	12517582 B/op	  302492 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 135020830 ns/op	12516805 B/op	  302468 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 134525817 ns/op	12516098 B/op	  302484 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 211027295 ns/op	41948916 B/op	 1265862 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 214026419 ns/op	41950288 B/op	 1265979 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 201143132 ns/op	41951676 B/op	 1265900 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 202398114 ns/op	41954380 B/op	 1265916 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 201052838 ns/op	41949193 B/op	 1265837 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       5	 203958466 ns/op	41956056 B/op	 1265933 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 104007292 ns/op	  961604 B/op	    8634 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103874286 ns/op	  958631 B/op	    8635 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 104047413 ns/op	  962322 B/op	    8635 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 104142277 ns/op	  958488 B/op	    8634 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 104138593 ns/op	  962288 B/op	    8635 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103765172 ns/op	  967277 B/op	    8636 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106349807 ns/op	 3232135 B/op	   27777 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106391808 ns/op	 3232709 B/op	   27778 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106426655 ns/op	 3232215 B/op	   27778 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106436285 ns/op	 3228239 B/op	   27776 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106579612 ns/op	 3228212 B/op	   27776 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106294066 ns/op	 3228666 B/op	   27776 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104671431 ns/op	 1219468 B/op	   12526 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104615931 ns/op	 1222727 B/op	   12527 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104614030 ns/op	 1222551 B/op	   12525 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104420215 ns/op	 1210920 B/op	   12522 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104521825 ns/op	 1221472 B/op	   12524 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104321052 ns/op	 1218541 B/op	   12523 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 112211459 ns/op	 4953911 B/op	   44367 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 112086697 ns/op	 4944944 B/op	   44362 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 112220002 ns/op	 4949703 B/op	   44366 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 112035465 ns/op	 4949688 B/op	   44366 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 112013378 ns/op	 4953717 B/op	   44366 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 112409556 ns/op	 4953893 B/op	   44367 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 123183985 ns/op	10858717 B/op	  134231 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 123324142 ns/op	10860759 B/op	  134237 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 123436529 ns/op	10863815 B/op	  134264 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 122974850 ns/op	10872387 B/op	  134258 allocs/op

@github-actions

Copy link
Copy Markdown

Total coverage: 50.0% -> 50.0% (delta 0.00%)

Merging this branch will decrease overall coverage

Impacted Packages Coverage Δ 🤖
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/framework 34.06% (-0.66%) 👎
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/log 59.42% (-0.87%) 👎
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/proportion/capacity_policy 98.68% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/framework/session_plugins.go 14.47% (-3.37%) 159 (+2) 23 (-5) 136 (+7) 👎
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/log/log.go 59.42% (-0.87%) 69 (+1) 41 28 (+1) 👎
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/plugins/proportion/capacity_policy/quota_check.go 96.30% (ø) 27 26 1

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@kshitizlohia1994

kshitizlohia1994 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

Can you change the description wording so that it will not be "fixes .. " - github will close the issue with this current wording.

@enoodle thanks for catching that! updated to Part of #1653. please let me know if this is ok?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants