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

Incorrect free memory reported by os.freemem() #27183

Closed
oonqt opened this issue Apr 11, 2019 · 2 comments
Closed

Incorrect free memory reported by os.freemem() #27183

oonqt opened this issue Apr 11, 2019 · 2 comments
Labels
os Issues and PRs related to the os subsystem.

Comments

@oonqt
Copy link

oonqt commented Apr 11, 2019

  • 10.15.3:
  • armhf(arm v7):
  • Linux (Raspbian):

So the memory being reported incorrectly by the os modules freemem() method. I've tried various methods to check my memory usage and it's always around the 300MB range, with the freemem() method, it's reporting roughly 800-950MB. I don't know if this is a problem with the arch or operating system, but all I know is the same script reports the correct memory usage on Windows 10 running on x64.

https://paste.memester.cf/ezepivulaz.js
^example code

@bnoordhuis bnoordhuis added the os Issues and PRs related to the os subsystem. label Apr 11, 2019
@bnoordhuis
Copy link
Member

Related: #27170 - Node.js just reports what the operating system reports.

I've tried various methods to check my memory usage and it's always around the 300MB range

Can you elaborate what those methods are?

@oonqt
Copy link
Author

oonqt commented Apr 11, 2019

I found out that the issue was not the os module itself, but the way that different applications checked memory usage. In Webmin for example, it was displaying ONLY the memory being used by programs, not the memory being used for disk cache, but the node.js os module is returning the memory being used by programs AND disk cache.

@oonqt oonqt closed this as completed Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os Issues and PRs related to the os subsystem.
Projects
None yet
Development

No branches or pull requests

2 participants