GithubHelp home page GithubHelp logo

Memory not correct shown about linux_logo HOT 4 OPEN

deater avatar deater commented on June 12, 2024
Memory not correct shown

from linux_logo.

Comments (4)

deater avatar deater commented on June 12, 2024

getting a proper memory size value is one of the more difficult things you can do on Linux.

With the 8GB Pi it's harder as a 32-bit OS can only access more than 4GB with hacks so most of the memory reporting mechanisms aren't going to handle it well.

does /proc/meminfo have proper values? Does the top utility report the proper amount of RAM?

from linux_logo.

ragnar76 avatar ragnar76 commented on June 12, 2024

Hi, good morning.

Yes, i know how hard it was to use more than 4gb on a 32-bit system. back in the old days we had to struggle with big and pae kernels but in the raspi... i dont really know how it is managed there.

However, meminfo and top displays (some kind of) the same values
grafik

from linux_logo.

deater avatar deater commented on June 12, 2024

if you edit libsysinfo-0.3.0/Linux/cpuinfo_arm.c

and change the return value of get_arch_specific_mem_size() to be MEM_USE_MEMINFO instead of 0, do you get a better result?

I'll have to think about changing the default, it's probably OK I just worry it will break some other architecture. I forget if sysinfo is the default for a specific reason or not.

from linux_logo.

chtiland avatar chtiland commented on June 12, 2024

Hello,

With version 5.11-9 (Linux Mint packages), I got this :
image

I didn't know i had so much RAM, that's cool 😁

from linux_logo.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.