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

RAM size shown is incorrect (Debian 9.2) #14

Closed
OneCDOnly opened this issue Nov 4, 2017 · 10 comments
Closed

RAM size shown is incorrect (Debian 9.2) #14

OneCDOnly opened this issue Nov 4, 2017 · 10 comments

Comments

@OneCDOnly
Copy link

Linux Version 4.9.0-4-amd64, Compiled #1 SMP Debian 4.9.51-1 (2017-09-28)
Four 2.13GHz Intel Atom Processors, 128TB RAM, 17068 Bogomips Total

The display above is from a machine with only 3GB RAM,

Linux Version 4.9.0-4-amd64, Compiled #1 SMP Debian 4.9.51-1 (2017-09-28)
Eight 800MHz Intel i7 Processors, 128TB RAM, 67207 Bogomips Total

And this one has 32GB RAM.

Thank you. :)

@aaronfranke
Copy link

aaronfranke commented Nov 6, 2017

My system reads "128TB RAM" with this tool, too, but it only has 16 GB RAM.

Ubuntu 16.04 64-bit.

@deater
Copy link
Owner

deater commented Nov 7, 2017

This is because on recent Linux /proc/iomem is filled with zeros for security reasons.

When I get a chance I'll see what the best alternative to use is.

@silvernode
Copy link

I wonder what inxi reads to display RAM size? Might be a good place to get ideas.

@aaronfranke
Copy link

aaronfranke commented Feb 26, 2018

I decided to do some research on my own. Neofetch, a similar program, grabs memory from /proc/meminfo. Seems simple enough. On my system:

$ cat /proc/meminfo
MemTotal:       16381696 kB
MemFree:         2334052 kB
MemAvailable:    3471604 kB

This should be incredibly easy to pull the info from, it's just string parsing. Here's their code.

@thegreyshadow
Copy link

Confirmed in Slackware -current 64bit (post 14.2).

@TedHartDavis
Copy link

Also true on current Arch.

@wbraswell
Copy link

This 128TB RAM bug is also present in Ubuntu 16.04.1 running Linux Logo Version 5.11 using libsysinfo 0.2.1

@deater
Copy link
Owner

deater commented Apr 27, 2020

should be fixed with 714bb13

@deater deater closed this as completed Apr 27, 2020
@wbraswell
Copy link

@deater
What is the best and easiest way to access this fix? Should I just wait for Ubuntu packages to update?

$ cat /etc/issue
Ubuntu 16.04.1 LTS

$ uname -a
Linux starman 4.4.0-177-generic #207-Ubuntu SMP Mon Mar 16 01:16:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

$ dpkg -s linuxlogo
Package: linuxlogo
Status: install ok installed
Priority: extra
Section: misc
Installed-Size: 350
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Version: 5.11-8
Depends: libc6 (>= 2.7), lsb-base
Conffiles:
 /etc/init.d/linuxlogo c1341159da0a73ae24a94c4ad115a79e
 /etc/linux_logo.conf 168d10482a20036fd79be254d0430e37
Description: Color ANSI System Logo
 A Color ANSI Logo with some system information that can be displayed at system
 boot time or, with some local configuration, at the login prompt. Four
 different Logos are available:
 .
  * Debian Swirl(default)
  * Debian Banner
  * Tux Classic and Banner
 .
 The Classic and Banner Logos are based on Larry Ewing's Penguin. Monochrome
 ASCII versions of all the logos are included.
Original-Maintainer: Dariusz Dwornikowski <dariusz.dwornikowski@cs.put.poznan.pl>
Homepage: http://www.deater.net/weave/vmwprod/linux_logo/

@aaronfranke
Copy link

@wbraswell The updated version of this package will be included in future versions of Ubuntu, and it definitely will not be added to 16.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

No branches or pull requests

7 participants