k3s is consuming 535 mb of memory consistently in a single node cluster on an idle state #3558
Replies: 5 comments 5 replies
-
This doesn't sound unreasonable, have you taken a look at the resource profiling page in the documentation? Also, if you're going to submit logs, please make them an attachment rather than inline to avoid making folks to scroll through pages and pages. |
Beta Was this translation helpful? Give feedback.
-
Please find the attachments which contains the footprint |
Beta Was this translation helpful? Give feedback.
-
I did verify . It claims that K3s cluster with a single agent should be good with 768 M Ram . Below is my system configuration I also Tested the same in Raspberry Pi 3 Model B+ In both the system config I see that "k3s server" process is consuming 535 MB of memory with 15% CPU.
Thanks for that . I did. |
Beta Was this translation helpful? Give feedback.
-
I think you might be misunderstanding; that page says that the k3s server process with a single agent using embedded etcd, is expected to consume 768MB of RAM. It does not mean that the node itself needs only 768 MB of RAM. If you want any memory left for workloads, disk cache, etc you will need to size the nodes appropriately. |
Beta Was this translation helpful? Give feedback.
-
Please reopen this issue as this is still not fixed |
Beta Was this translation helpful? Give feedback.
-
Environmental Info:
K3s Version:
k3s version v1.21.2+k3s1 (5a67e8d)
go version go1.16.4
2GB Ram
Node(s) CPU architecture, OS, and Version:
k3s Single Node cluster setup with default setup
Os : Ubuntu 18.04 and also 20.04
Cluster Configuration:
default k3s configuration
curl -sfL https://get.k3s.io | sh -
Describe the bug:
We ran the below curl command to install k3s for single node k3s cluster setup . Once the cluster came up we could see that the process "k3s server" is consuming 565 mb of memory . There seems to be a serious memory overhead even at the idle State . I have a plan of deploying the k3s in Raspberry pi 3 which is having 1 gb ram and because of the memory overhead of k3s , this may fail in bringing up the k3s cluster in Raspberry pi 3 device.
Please find the attachment for the footprint captured
k3s-memory-cpu.xlsx
k3slog.txt
Below is the command executed
curl -sfL https://get.k3s.io | sh -
Steps To Reproduce:
Command: free -h
total used free shared buff/cache available
<style> </style>Mem: 1.9G 1.6G 77M 20M 256M 154M
Swap: 0B 0B 0B
Command: top -i
PID USER %CPU %MEM TIME+ COMMAND
16800 root 18.6 26.8 1:02.08 k3s-server
16844 root 1.0 3.5 0:11.22 containerd
Command: top -i
PID USER %CPU %MEM TIME+ COMMAND
16800 root 9.3 25.9 1:31.07 k3s-server
16844 root 1.0 3.5 0:13.38 containerd
Command: kubectl top pods -A
NAMESPACE NAME CPU(cores) MEMORY(bytes)
kube-system coredns-7448499f4d-bk7sv 5m 17Mi
kube-system local-path-provisioner-5ff76fc89d-dqqjs 3m 12Mi
kube-system metrics-server-86cbb8457f-4thzp 2m 17Mi
kube-system svclb-traefik-s68d8 0m 2Mi
kube-system traefik-97b44b794-7xxdk 2m 35Mi
Beta Was this translation helpful? Give feedback.
All reactions