bcicen / ctop

Top-like interface for container metrics
https://ctop.sh
MIT License
15.61k stars 528 forks source link

I am getting an mem value from ctop that maybe inconsistent #259

Closed cerealconyogurt closed 3 years ago

cerealconyogurt commented 3 years ago

Hi there,

I am having different memory value when I compare the ctop value and what I get from docker command:

image

The command I run is:

docker stats --no-stream -a --format \ "table {{.Container}}\t{{.Name}}\t{{.MemUsage}}\t{{.CPUPerc}}"

cerealconyogurt commented 3 years ago

well, after a reading of a couple of forums I believe that ctop is showing the mem w/o cache usage, and now the docker is adding both mem stats in the command. I will look into this because I believe something changed in the docker command with the latest update.

I am looking for the mem stat w/o cache/buffer so ctop is showing what I need

bcicen commented 3 years ago

@cerealconyogurt correct, ctop only displays memory usage minus cache. Closing for now.