Skip to content

Commit e3fd45d

Browse files
committed
Update linux auto-pause result with improved method
1 parent 6f03917 commit e3fd45d

File tree

3 files changed

+18
-7
lines changed
  • hack/benchmark/cpu_usage/auto_pause
  • site
    • content/en/docs/benchmarks/cpuUsage/linux
    • static/images/benchmarks/cpuUsage/autoPause

3 files changed

+18
-7
lines changed

hack/benchmark/cpu_usage/auto_pause/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ These scripts are for the benchmark of cpu usage, minikube vs kind vs k3d.
55
* `update_summary.sh`: create one summary csv file of each drivers and products
66
* `chart.go`: create bar chart graph as a png file
77

8-
In `benchmark_local_k8s.sh`, we compare minikube drivers(hyperkit, virtualbox, docker) and kind, k3d, Docker for Mac Kubernetes in case of macOS.
9-
In `benchmark_local_k8s.sh`, we compare minikube drivers(kvm2, virtualbox, docker) and kind, k3d in case of Linux.
8+
In `benchmark_local_k8s.sh`, we compare minikube drivers(hyperkit, virtualbox, docker with auto-pause addon) and kind, k3d, Docker for Mac Kubernetes in case of macOS.
9+
In `benchmark_local_k8s.sh`, we compare minikube drivers(kvm2, virtualbox, docker with auto-pause addon) and kind, k3d in case of Linux.
1010
`benchmark_local_k8s.sh` take these steps to measure `auto-pause` vs. `non auto-pause`.
1111

1212
1. start each local kubernetes tool

site/content/en/docs/benchmarks/cpuUsage/linux/_index.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ This chart was measured only after the start without deploying any pods.
1212

1313
![idleOnly](/images/benchmarks/cpuUsage/idleOnly/linux.png)
1414

15+
NOTE: the benchmark environment uses GCE with nested virtualization. This may affect virtual machine's overhead.
16+
https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances
17+
1518
## CPU% Busy Overhead - With Auto Pause vs. Non Auto Pause
1619

1720
This chart shows each tool's CPU busy overhead percentage with auto-pause addon.
@@ -20,11 +23,19 @@ This chart was measured with the following steps.
2023
By these steps, we compare CPU usage with auto-pause vs. non-auto-pause.
2124

2225
1. start each local kubernetes tool
23-
2. deploy sample application(nginx deployment)
26+
2. deploy sample application(nginx deployment) to each tool
2427
3. wait 1 minute without anything
2528
4. measure No.3 idle CPU usage with [cstat](https://github.com/tstromberg/cstat)
26-
5. enable auto-pause addons(only if tool is minikube)
27-
6. wait 3 minute without anything
28-
7. measure No.6 idle CPU usage with [cstat](https://github.com/tstromberg/cstat)
29+
5. if tool is minikube, enable auto-pause addon which pause control plane
30+
6. if tool is minikube, wait 1 minute so that control plane will become Paused status(It takes 1 minute to become Pause status from Stopped status)
31+
7. if tool is minikube, verify if minikube control plane is paused
32+
8. if tool is minikube, wait 3 minute without anything
33+
9. if tool is minikube, measure No.8 idle CPU usage with [cstat](https://github.com/tstromberg/cstat)
34+
35+
No.1-4: Initial start CPU usage with sample(nginx) deployment
36+
No.5-9: Auto Paused CPU usage with sample(nginx) deployment
2937

30-
![autopause](/images/benchmarks/cpuUsage/autoPause/linux.png)
38+
![autopause](/images/benchmarks/cpuUsage/autoPause/linux.png)
39+
40+
NOTE: the benchmark environment uses GCE with nested virtualization. This may affect virtual machine's overhead.
41+
https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances
-129 Bytes
Loading

0 commit comments

Comments
 (0)