What is the difference between Swapping and Paging in Solaris 10 OS?

Posted on 2009-04-22
Medium Priority
Last Modified: 2013-12-27
As per my understanding I assume:

Swapping: Moving memory pages from Physical RAM to Swap (Hard disk)
Paging: Moving memory pages from Swap (Hard disk) to Physical RAM.

Please let me know the differences with an example. Many thanks!
Question by:beer9
  • 3
LVL 40

Accepted Solution

omarfarid earned 1000 total points
ID: 24212005
pagging and swapping are both to and from memory and both are part of memory managment. When a process starts, only the required pages (instructions, data, etc) are brought in from disk to memory. When the process requires a page which is not in memory then it is brought in. When the memory becomes nearly full, the system starts pagging out to the swap area the modified pages, and then vacate the space used by these pages. when these pages which are on the swap area are needed again some other pages are vacated and hese required ones are brought to memory. This is called pagging. When the pagging rate (to swap area) is very high then it is no more manageble and the whole process and its pages are written to the swap area to vacate larger memory pages. This is called process swap out. The process execution is then stopped till it is brought back from swap area (by may be swapping out some other process) to memory. This is called process swap in.

In short, pagging takes place as long as available memory it is acceabtable level and pagging rate is also not causing an over head on the CPU. Swapping starts when available memory is not meeting the demand of running processes and pagging rate is high and impacting CPU. Both works together as memory management.

Author Closing Comment

ID: 31573645
Thanks Omar! :-)
LVL 40

Expert Comment

ID: 24235152

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

588 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