[Lazarus] GlobalMemoryStatus is Windows only, how to get installed RAM on Linux ?

Michael Van Canneyt michael at freepascal.org
Wed Aug 16 15:09:29 CEST 2017



On Wed, 16 Aug 2017, Landmesser John via Lazarus wrote:

> googled in vain ...
>
> ... and "TsmBios" ( -> Win/Linux https://github.com/RRUZ/tsmbios ) won't 
> compile :-(
>
>
> So how to get Information about installed RAM on Linux for example?
>
> Ok, i could grep "hwinfo" or such in a terminal but thats not what i'm 
> looking for.

Your best options is most likely to read /proc/meminfo and parse the result.
It contains a wealth of information.

Michael.


More information about the Lazarus mailing list