[vox-tech] Checking amount of memory
ME
vox-tech@lists.lugod.org
Mon, 11 Feb 2002 11:56:21 -0800 (PST)
On Mon, 11 Feb 2002, Jay Strauss wrote:
> I just installed a bunch of memory in my machine (512Mb). How do I check if
> linux is "seeing" it all?
>
> I looked at dmesg but all I see is:
>
> Memory: 64036k/66556k available (1060k kernel code, 420k reserved, 976k
> data, 64k init, 0k bigmem)
>
> When I do top:
>
> 7:52am up 2:40, 2 users, load average: 0.00, 0.00, 0.00
> 45 processes: 44 sleeping, 1 running, 0 zombie, 0 stopped
> CPU states: 0.1% user, 0.7% system, 0.0% nice, 99.0% idle
> Mem: 64100K av, 40552K used, 23548K free, 45312K shrd, 3320K
> buff
> Swap: 265032K av, 0K used, 265032K free 22140K
> cached
>
> PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
> 771 root 11 0 852 852 664 R 0 0.9 1.3 0:00 top
> 1 root 0 0 472 472 400 S 0 0.0 0.7 0:05 init
> 2 root 0 0 0 0 0 SW 0 0.0 0.0 0:00 kflushd
> 3 root 0 0 0 0 0 SW 0 0.0 0.0 0:00 kupdate
> 4 root 0 0 0 0 0 SW 0 0.0 0.0 0:00 kpiod
free is what you prob want.
---
dugan@libfs:~$ free
total used free shared buffers cached
Mem: 971344 508936 462408 30452 279652 103868
-/+ buffers/cache: 125416 845928
Swap: 120480 0 120480
---
If Linux is only seeing 64Mb, try adding an entry to lilo.conf:
append="mem=512M"
run lilo again, and reboot. See if free reports what you want.
(I thought that linux did a better job of detecting available memory +64Mb
since v2.2 kernels. My systems with 128Mb, 1Gb, 2Gb etc seem to find the
memory just fine.)
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/CM$/IT$/LS$/S/O$ !d--(++) !s !a+++(-----) C++$(++++) U++++$(+$) P+$>+++
L+++$(++) E W+++$(+) N+ o K w+$>++>+++ O-@ M+$ V-$>- !PS !PE Y+ !PGP
t@-(++) 5+@ X@ R- tv- b++ DI+++ D+ G--@ e+>++>++++ h(++)>+ r*>? z?
------END GEEK CODE BLOCK------
decode: http://www.ebb.org/ungeek/ about: http://www.geekcode.com/geek.html
Systems Department Operating Systems Analyst for the SSU Library