onepub-dev / system_info

Provides easy access to useful information about the system (architecture, bitness, kernel, memory, operating system, CPU, user).
BSD 3-Clause "New" or "Revised" License
19 stars 8 forks source link

Wrong SysInfo.getFreePhysicalMemory() value #4

Open busslina opened 1 year ago

busslina commented 1 year ago

I'm getting bad free physical (and virtual) memory on my server, with huge difference between bad data (125 Mb) and real data (around 470 Mb).

imagen

imagen

busslina commented 1 year ago

Any thoughts on this issue?

bsutton commented 1 year ago

I've had a look on my linux system and it appears to be reporting correctly.

Under the hood, we use cat /proc/meminfo

Can you run the above command and compare it with your results.

Also, can you run dart example/example.dart and compare the results just in case your app has a bug in it.

dev-kasibhatla commented 1 day ago

https://github.com/onepub-dev/system_info/issues/8#issuecomment-2473725900