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

sysinfo not showing correct mem? #1141

Closed
eyberg opened this issue Apr 22, 2020 · 2 comments
Closed

sysinfo not showing correct mem? #1141

eyberg opened this issue Apr 22, 2020 · 2 comments

Comments

@eyberg
Copy link
Contributor

eyberg commented Apr 22, 2020

eyberg@box:~/t$ cat main.c
#include <stdio.h>
#include <sys/sysinfo.h>

int main() {
  struct sysinfo info;

  if (sysinfo(&info) < 0)
    return 0;

  printf("free: %lu\t total: %lu\n", info.freeram, info.totalram);
}
@wjhun
Copy link
Contributor

wjhun commented Apr 22, 2020

Yes, some page.c changes a while back broke physical heap total / allocated reported. It's fixed in now #1140.

@wjhun
Copy link
Contributor

wjhun commented Apr 23, 2020

Resolved in #1140

@wjhun wjhun closed this as completed Apr 23, 2020
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

2 participants