New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
For Debian family:
free | awk 'NR==3{print $3, $3+$4}'
For CentOS family:
free | awk 'NR==2{print $3, $2}'
The first column is used memory, the second column is total memory.
I see its display same as htop so in phpsysinfo why show more?
I have no idea how phpsysinfo works. Essentially the cached and shared memory should not be counted as used.
ds total used free shared buff/cache available Mem: 1953 326 1110 16 516 1443 Swap: 0 0 0
In phpsysinfo write 900 MB used hm?
My first guess is that phpsysinfo only shows "actual free" memory, while htop calculates "buffers/cache" in the free memory also, that's why it shows more memory via htop.
Try to type "free -h" in your console and you will see the info.
Check the picture for example (yellow is the total free memory that your system can use, but the actual free memory that is not used is marked red):
http://i.imgur.com/P00hKlF.png
Best regards!
OK, I guess phpsysinfo counted the buff/cache 516 as used, which is incorrect.
http://www.linuxatemyram.com/
Aye
ds total used free shared buff/cache available Mem: 1.9G 340M 1.1G 16M 518M 1.4G Swap: 0B 0B 0B
so now that buff/cache is used or not lol?
Depends on your definition of 'used' - did you read the link above?
Depends on your definition of 'used' - did you read the link above?
Thanks!
Duplicate post man :P
Why would Linux eat my ram? If I were Linux, I would prefer burgers more.
Because it's too lazy to go to mcdonalds, and it can't afford high end delivery foods.
you don't have to worry about the "missing" ram that you see. The buff/cache is counted as available in reality. So you are not losing your ram. Read the link @Hidden_Refuge provided, it's a great explanation