VSCode-Python-Resource-Monitor icon indicating copy to clipboard operation
VSCode-Python-Resource-Monitor copied to clipboard

Memory Usage not working on MacBook M2 Pro

Open FarukBuldur opened this issue 1 year ago • 2 comments

  • Memory Usage seems to be broken on MBP M2 Pro, Apple Silicon.
  • Python Version 3.10.11
  • Extension is up-to-date.
  • VS Code Version Version: 1.87.1 (Universal)
image

FarukBuldur avatar Mar 26 '24 08:03 FarukBuldur

Yes, this is a known issues with Mac. Unfortunately, it is (technically) correct, since if you go to your activity monitor, you will get the same number. The reason seems to be that it allocates a large amount of virtual memory (~~I think using disk space~~ it is the address space), which never actually gets used. image

However, in the future, I would like to add options to control or separate the view of virtual and physical memory (or the equivalents on each operating system)

2kai2kai2 avatar Mar 30 '24 20:03 2kai2kai2

Actually, I think it might be best just to exclude all virtual memory. I don't know for sure how accurate that will be, but it is a lot more useful to be looking at things affected by memory pressure.

2kai2kai2 avatar Mar 30 '24 20:03 2kai2kai2

any workaround for that?

shahargl avatar Aug 20 '24 12:08 shahargl

Hi, I've finally gotten around to finishing this fix. The newest version v0.3.0 should not use the resident/working set size for memory (basically only what is in physical RAM), eliminating the bloated size from virtual memory or address space. My testing on MacOS now shows the expected values.

2kai2kai2 avatar Aug 29 '24 21:08 2kai2kai2

Great to hear, thanks a lot.

FarukBuldur avatar Aug 30 '24 18:08 FarukBuldur