Open SpecLad opened 11 months ago
Experienced the same issues.
minikube version: v1.32.0 (identical to log above) commit: 8220a6eb95f0a4d75f7f2d7b14cef975f050512d (identical to log above) Docker version 24.0.7, build afdd53b
image with 8.7GB in ~/.minikube/cache/image loaded with: minikube image load --daemon=true --remote=false --overwrite=false xxx With "--alsologtostderr" this also occurred during "opening".
Do you get the same memory usage, if you load the image manually with the container runtime?
EDIT: never mind, this looks related to crane and the minikube cache. Probably have to use "docker save" first
I only understand your suggestion after your referenced it in the other post, can confirm the workaround seems to work fine.
Workaround: For others instead of minikube image load IMAGE
use:
docker save --output docker.img IMAGE
minikube image load docker.img
Results:
/usr/bin/time details: minikube image load IMAGE
Command being timed: "minikube image load compiling-environment:2024.01.12_16.08.20"
User time (seconds): 833.21
System time (seconds): 132.44
Percent of CPU this job got: 51%
Elapsed (wall clock) time (h:mm:ss or m:ss): 30:57.30
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 39197588
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 536
Minor (reclaiming a frame) page faults: 11303717
Voluntary context switches: 1579611
Involuntary context switches: 156191
Swaps: 0
File system inputs: 91256
File system outputs: 8738368
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
vs docker image save --output docker.img IMAGE
Command being timed: "docker image save --output current-docker.img compiling-environment:2024.01.12_16.08.20"
User time (seconds): 2.19
System time (seconds): 22.88
Percent of CPU this job got: 3%
Elapsed (wall clock) time (h:mm:ss or m:ss): 10:55.18
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 24712
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 3
Minor (reclaiming a frame) page faults: 2893
Voluntary context switches: 404552
Involuntary context switches: 17983
Swaps: 0
File system inputs: 728
File system outputs: 23612192
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
minikube image load docker.img
Command being timed: "minikube image load --daemon=false --remote=false --overwrite=true current-docker.img"
User time (seconds): 14.12
System time (seconds): 24.48
Percent of CPU this job got: 20%
Elapsed (wall clock) time (h:mm:ss or m:ss): 3:05.68
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 98460
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 275
Minor (reclaiming a frame) page faults: 19528
Voluntary context switches: 775099
Involuntary context switches: 27116
Swaps: 0
File system inputs: 50752
File system outputs: 432
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
What Happened?
Looking at dmesg output, I see this:
It seems like
minikube
is using an excessive amount of memory, more even than the size of the image itself (which is under 3 GB).Attach the log file
log.txt
Operating System
Ubuntu
Driver
Docker