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

Posted on 2009-04-22
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
    LVL 40

    Accepted Solution

    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.
    LVL 40

    Expert Comment


    Author Closing Comment

    Thanks Omar! :-)
    LVL 40

    Expert Comment


    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
    A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
    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…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now