Re: 'free' and 'top' question


Subject: Re: 'free' and 'top' question
From: Paul Schinder (schinder@pobox.com)
Date: Wed Mar 01 2000 - 20:28:47 MST


At 9:11 PM -0600 3/1/00, Robert Fout wrote:
>but the same thing happened on a PIII/500 with RHL 6.1 too, that CAN'T be a
>NW Rom thing.

It's probably just different defintions of "Mb". Sometimes it means
1000000 bytes. Occasionally it means 1000 * 1024 bytes. Sometimes
it means 1024 * 1024 bytes. The man page for free tells you what's
happening (I have 8 + 16 + 64 "Mb"):

linux% free -b
              total used free shared buffers cached
Mem: 89006080 68497408 20508672 9302016 5787648 42102784
-/+ buffers/cache: 20606976 68399104
Swap: 134209536 14827520 119382016
linux% free -m
              total used free shared buffers cached
Mem: 84 65 19 8 5 40
-/+ buffers/cache: 19 65
Swap: 127 14 113
linux% free -k
              total used free shared buffers cached
Mem: 86920 66892 20028 9084 5652 41116
-/+ buffers/cache: 20124 66796
Swap: 131064 14480 116584

As the man page for top(1) says, it shows memory in kb (== 1024 bytes).

>---------------------------------------
>"The knack to flying is learning how to
>throw yourself at the ground and miss."
>
>>>From "Life the Universe and Everything"
>by Douglas Adams
>
>Robert Fout
>MacOS Guru and MkLinux/Yellowdog Linux User
>rfout@damien.edu
>http://osx.damien.edu/rfout/
>ICQ# 48433406
>
>> From: Jack Valois <jvalois@pacbell.net>
>> Reply-To: yellowdog-general@lists.yellowdoglinux.com
>> Date: Wed, 01 Mar 2000 18:54:22 -0800
>> To: yellowdog-general@lists.yellowdoglinux.com
>> Subject: Re: 'free' and 'top' question
>>
>> on 3/1/00 6:15 PM, Robert Fout at rfout@mahi.damien.edu wrote:
>>
>>> How's come free (and top) show my machine as having 124 MB of RAM, when it
>>> has 128 MB? I noticed that RHL 6.1 does the same thing, shows that the
>>> machine has less RAM that what it actually has).
>>>
>>> I'm using YDL CS 1.1 on a B&W G3/400 rev. 2.
>>>
>>> free and top with DR3 on an 8100/80 shows the 'correct' amount of RAM, so
>>> why the diff with YDL and RHL?
>>>
>> I'm not exactly sure, but I bet it has something to do with one being a new
>> world ROM machine and the other is not. My guess would be that OF is
>> changing the amount of ram stored in the device tree.
>>
>> Jack
>>

-- 
--
Paul Schinder
schinder@pobox.com



This archive was generated by hypermail 2a24 : Sun Apr 02 2000 - 21:09:28 MDT