Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Usage not working on MacBook M2 Pro #22

Closed
FarukBuldur opened this issue Mar 26, 2024 · 5 comments
Closed

Memory Usage not working on MacBook M2 Pro #22

FarukBuldur opened this issue Mar 26, 2024 · 5 comments

Comments

@FarukBuldur
Copy link

  • 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
@2kai2kai2
Copy link
Owner

2kai2kai2 commented Mar 30, 2024

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
Copy link
Owner

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.

@shahargl
Copy link

any workaround for that?

@2kai2kai2
Copy link
Owner

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.

@FarukBuldur
Copy link
Author

Great to hear, thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants