On Wed, 21 Feb 2001, Jonathan Wilson wrote:

> Howdy,
>
> I was just trying to figure out how much RAM one of our servers has and I keep 
>getting weird answers. I thought it had either 256 or 512, really, I thought 256. But 
>look at the following:
>
> [admin@csc003 admin]$ free -m
>              total       used       free     shared    buffers     cached
> Mem:           505        445         59        212        287         80
> -/+ buffers/cache:         77        427
> Swap:          258          2        256
>
> I thought 505 MB couldn't be right so I tried top:
>
> Mem:   517120K av,  458456K used,   58664K free,  219068K shrd,  294848K buff
>
[snip]
>
> Next I tried a cgi-bin script:
>
> Main Memory     : 511 megabytes
>
> It seems to get it's info from the size of /proc/kcore
>
> Can anyone explain why this isn't working out to exactly 512 MB?
> After all this is a computer - is should be precise right down to
> the byte.
>
> ----------------------------------------------------
> Jonathan Wilson
> System Administrator
>
>
You forgot the memory taken up by the kernel.  This does not show up in
with the free command.  I have seen bigger discrepencys when you have
onboard video - some systems use part of the main memory for video
memory, and you select how much video ram in your BIOS.

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to