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

Workaround for memory size as non-root user #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lauri-Nomme
Copy link

No description provided.

@zcalusic
Copy link
Owner

Hello @Lauri-Nomme and thanks for your contribution!

While I understand that some people would prefer to run sysinfo utility without superuser privileges, unfortunately I have not found the way to extract the exact amount of RAM installed in that case. /proc/meminfo was the first thing I consulted, only to find out that it doesn't really show the total RAM installed, but some smaller number (yes, even in MemTotal row).

Using workaround like this would mean that you get completely different values, depending on which user ran the utility, and such kind of indeterminism is not welcome in utility like this, IMHO.

For example, on my desktop I would get size: 15908, instead of the correct size: 16384.

@zcalusic zcalusic force-pushed the master branch 8 times, most recently from d086206 to 5776642 Compare May 28, 2023 17:04
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

Successfully merging this pull request may close these issues.

None yet

2 participants