aristocratos / btop

A monitor of resources
Apache License 2.0
21.36k stars 655 forks source link

[BUG] Invalid RAM usage on MacBook Pro M3 Pro #834

Closed corentinjuvigny closed 6 months ago

corentinjuvigny commented 7 months ago

Describe the bug

Quantity of RAM used is vastly underestimated by btop on MacOs compared with what the activity monitor actually reports.

To Reproduce

Launch a program using a huge quantity of RAM (surpassing the physical quantity of RAM of the computer, forcing it to use swap memory). In my case I notice the bug while launching cplex, that can reach 50G of memory consumption for 18G of physical RAM.

Expected behavior

Both btop and the macos activity monitor should indicate the same amount of RAM used.

Screenshots

Screenshot 2024-04-30 at 15 13 27

Info

nicolasbauw commented 6 months ago
image

Same observation here on MacOS.

k2662 commented 6 months ago

Me too on MacOS Ventura x86_64. OS Version: Ventura 13.6.6 22G630 Kernel Version: 22.6.0

aristocratos commented 6 months ago

@corentinjuvigny @nicolasbauw @k2662

See #291

marianokamp commented 4 months ago

When using btop on Mac OS and run a program that is very large I get first a yellow then red indication in the activity monitor. Going into the red slows down the system and will make programs force close. These colors are based on how small the gap between "Physical Memory" and "Memory Used" is. The color is actionable to me and I start closing apps or wait for something to finish before I launch something else.

With btop, even when the Mac OS activity monitor is red, all looks good, like 50% available and I don't see any threshold that I need to keep an eye on.

How do other Mac OS users interpret what btop shows?