ABC Of AIX

Welcome to the World of AIX learning!!!

Posts Tagged ‘paging

AIX Performance Tools

with 2 comments

Top 5 AIX performance tools used are:

1.       Vmstat

2.       Topas

3.       Iostat

4.       Netstat

5.       Ps

Vmstat:

  1. Gives:

i.      Traps

ii.      Virtual memory

iii.      Paging

iv.      CPU

v.      Number of interrupts per second

vi.      Kernel threads

Iostat:

  1. Gives:

i.      CPU usage

ii.      i/o of disk, adapter, ttys

iii.      i/o subsystem

topas:

  1. Gives:

i.      logical partition information (# topas -L)

ii.      processes(# topas -P)

iii.      file system(# topas -F)

iv.      disks(# topas -D)

For CPU Monitoring,

Admin can make use of:

  1. netpmon
  2. sar (sar -u)
  3. topas

For memory monitoring,

Admin can make use of:

  1. svmon
  2. netpmon
  3. filemon

Svmon and filemon are perfagent tools.

For I/O subsystem,

Admin can make use of:

  1. fileplace
  2. filemon

For Network,

  1. tcpdump
  2. netpmon

For processors and threads,

  1. svmon
  2. kdb
  3. fuser
  4. prof
  5. truss

nmon will give entire OS performance information.

Mpstat: this command displays performance statistics of all logical CPU in system.

Lparstat: reports LPAR related information and statistics.

Traced based commands:

CPU Monitoring: tprof, trace, trcrpt

Memory: trace, trcrpt

i/o subsystem: trace, trcrpt

network: iptrace, trace, trcrpt

processes and threads: tprof, trace, trcrpt

SAR: System Activity Records: it collects reports and saves system activity information.

Happy Learning!

Paging Space Administration

leave a comment »

What is Paging Space?

What is Page-in & Page-out?

What is thrashing?

All these questions about paging space will be answered in this very particular post.

What is Paging Space?

In a system, there are multiple processes running. For a new process to be actively running, the process should be loaded into the OS memory. Once the process is loaded, it is then assigned number of 4 KB units called page frames.

Keeping this in view, more number of additional processes is loaded into the memory with each process assigned 4 KB areas. But when the processes are overloaded and the memory is full, OS scans memory to trace frames that are least recently used. When such a frame is discovered, 4 KB block or page of disk space is allocated and the data from least active frame is moved to area on the disk. This area on disk is called Paging Space.

What is Page-in & Page-out?

If the paged out information for the least active process is needed back into the memory, the page is retrieved from the disk and brought back into the memory. This is called page-in.

Similarly, when the least active frame is moved out from the memory on to the disk, the process is called page-out.

What is thrashing?

If the OS is loaded with many active processes and there is no further real memory available to load additional active processes, the OS goes into the constant state of paging called thrashing as no additional real memory is available to load a new process into the memory.

Increasing the amount of paging Space will be of no benefit because the processes involved are all active and thrashing is the result of not enough real memory.

Next post will discuss about the various Paging Space Administration commands.

Till then,

Happy Learning !

P.S: This post is written from various online sources like IBM Red Hat Books, pd’fs and other online content!

Written by RA

February 28, 2012 at 4:50 pm