Friday, June 11, 2010

RAM Size in Solaris Server

The command to find the Ram size in solaris is

#prtconf | grep Mem



Solaris is a virtual memory system. The total physical memory can be seen using prtconf. as said by user . Memory is allocated in units called pages, and you can use the pagesize command to know the number of bytes per page:

% /usr/bin/pagesize

Actually Physical memory usage can be classified into four groups:
Kernel memory mapped into kernel address space
Process memory is mapped into a process address space
Filesystem cache memory that is not mapped into any address space
Free memory that is not mapped into any address space

Let us see how to find the memory usage of each:

The simplest summary of kernel memory usage comes from sar.
% sar -k 1

Process memory consists of an address space divided into segments. The segments can be viewed using /usr/proc/bin/pmap on any system running Solaris 2.5 or later.

% /usr/proc/bin/pmap

File system has cache memory and this is the part of memory that is invisible.
The memps -m command lists the files that are cached in order
# memps -m | more

Free memory that is not mapped into any address space

Wednesday, June 2, 2010

How to check Physical Memory utlization on solaris

To check Physical memory utlization on soalris :-

check Total physical memory:

# prtdiag -v | grep Memory

# prtconf | grep Memory

---

check Free physical Memory:

# top (if available)

# sar -r 5 10
Free Memory=freemen*8 (pagesize=8k)

# vmstat 5 10
Free Memory = free

---

For swap:

# swap -s
# swap -l


or

#prstat -s size --> wil show the memory utlization for each process