Skip to content
Discussion options

You must be logged in to vote

Hey @roberto-sebastiano, I don't really understand your calculation: used = total - (buff+cache) ?

Please compare the percentage values from kubectl top node with the memory shown in kubectl describe node. That should match:

# kubectl describe node <node>
Capacity:
  memory:             3907104Ki
Allocatable:
  memory:             2063904Ki

Capacity based:

# kubectl top node <node> --show-capacity=true
NAME      CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%   
<node>    130m         6%     1723Mi          45%       

Allocatable based:

# kubectl top node <node>
NAME      CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%   
<node>    130m         8%     1723Mi          85%  

Capacity based memory u…

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@mysticaltech
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mysticaltech
Comment options

Comment options

You must be logged in to vote
4 replies
@roberto-sebastiano
Comment options

@mysticaltech
Comment options

@roberto-sebastiano
Comment options

@M4t7e
Comment options

M4t7e Feb 28, 2024
Collaborator

Answer selected by mysticaltech
Comment options

You must be logged in to vote
3 replies
@mysticaltech
Comment options

@roberto-sebastiano
Comment options

@mysticaltech
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1248 on February 27, 2024 23:59.