Solved

OS paging / swapping

Posted on 2002-03-08
3
433 Views
Last Modified: 2013-12-27
Hi..i;m new to solaris.
i need some clarification on
OS paging / swapping .

1) what it is.
2) how it could affect solaris server
3) how to monitor/control it.


 tq.
0
Comment
Question by:maliksl4141
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
Nisus091197 earned 10 total points
ID: 6851032
Hi,

This is a brief introduction ...

1.

Paging / swapping are related to memory usage.  When a process is created the OS reserves a certain amount of swap space in case the process needs to be written to the swap file/partition if the physical memory runs short.

Paging is part of the normal process of reading in code from programs etc.

2.

If a system is swapping processes out of memory a lot then this is indicative of a shortage in physical memory.  The performance of the system can be drastically effected as accessing swapped processes is around 1000 times slower than from physical memory.  Disk I/O is very slow compared with RAM.

A system that is doing a lot of swapping often appears idle as the CPU is waiting for the process to be reloaded into memory.  Closer examination will reveal that a number of processes are blocked while they await their turn.

3.

Under Solaris, we use 'vmstat' to monitor physical and virtual memory (i.e. swap space).

If you suspect a system of swapping a lot, then run:

vmstat 5

and let it run for several minutes.

The numbers in the middle columns should ideally be 0 but 200-300 is not uncommon on busy database servers.

Have a look at the vmstat man page for more detailed info on this very handy tool.

The best way to improve the situation is to add more RAM and/or reduce the load on the server.  Some processes like database servers and BroadVision instances can take up a lot of memory.

The 'ps' command can tell you how much memory a process is using (see the RES column).

Swap space is modified using the 'swap' command.  'swap -a' can add a new swap file temporarily, 'swap -l' will list the swap devices.

Hope this helps,

Regards, Nisus
http://www.omnimodo.com
0
 

Author Comment

by:maliksl4141
ID: 6851979
thanks for introducing me to 'vmstat'
0
 
LVL 5

Expert Comment

by:Nisus091197
ID: 6852027
my pleasure.

When you get time check out iostat and netstat.  These are very useful also.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question