Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

os.totalmem() and os.freemem() return incorrect values #121

Open
johnottogood opened this issue Mar 2, 2019 · 3 comments
Open

os.totalmem() and os.freemem() return incorrect values #121

johnottogood opened this issue Mar 2, 2019 · 3 comments
Assignees

Comments

@johnottogood
Copy link

  • Version: 6.14.3
  • Platform: OS/390 MLZ1 26.00 04 2964
  • Subsystem: os

The values returned by os.totalmem() and os.freemem() are very incorrect
On a z/OS 2.3 system system with 100GB of memory, this is what I get from the os calls:

/u/jgood> node

os.totalmem()
443241535480283100
os.freemem()
392770343992819840

@joransiu
Copy link
Member

joransiu commented Mar 3, 2019

Thanks @johnottogood. @ccw-1 recently spotted the same issue; the rcepool field we are dereferencing for the memory values should be treated as unsigned ints.

@sam-github
Copy link

@joransiu will you or @miladfarca PR a fix, or can you point me at the code and I will?

@joransiu
Copy link
Member

joransiu commented Mar 4, 2019

Thanks @sam-github. @ccw-1 has reproduced and identified a prototype fix... looking for him to contribute.

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

No branches or pull requests

5 participants