Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Aug 2007 22:00:26 -0600
From:      Modulok <modulok@gmail.com>
To:        "Prakash Poudyal" <bsdprakash@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to know the size of RAM memory
Message-ID:  <64c038660708042100jdf7db91qbb92a6c663857627@mail.gmail.com>
In-Reply-To: <1428d0e80708042023k3b5bec4cs4683a92f84d3f521@mail.gmail.com>
References:  <1428d0e80708042023k3b5bec4cs4683a92f84d3f521@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 8/4/07, Prakash Poudyal <bsdprakash@gmail.com> wrote:
> Hello everybody,
>
> Can any body tell how to see the size of RAM memory in freebsd. ?
> Thank you
>
> Sincerely
>
> Prakash

It should be displayed early in the dmesg(8) output shown during the
boot process. You may review this by executing the dmesg(8) command.
Among the output will be listed:

  dmesg | grep "memory"
    real memory  = 2146304000 (2046 MB)
    avail memory = 2087034880 (1990 MB)


You could also check the appropriate sysctl(8) variables as follows:
  sysctl hw.physmem
  sysctl hw.usermem
  sysctl hw.realmem

To get memory usage statistics you can use ps(1) and top(1):
  ps -u
  top

-Modulok-



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?64c038660708042100jdf7db91qbb92a6c663857627>