- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Swapping and Paging
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 11:30 PM
08-04-2006 11:30 PM
Swapping and Paging
I wan to know that what is the difference between the swapping and paging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2006 12:01 AM
08-05-2006 12:01 AM
Re: Swapping and Paging
The terms are used somewhat loosely to mean the same thing. Strictly speaking they are different.
"Swapping" is an old mechanism where whole process images were moved from memory to disk to free memory for another process.
"Paging" is the deactivation of pages or portions of a process's memory. That is, the least most recently used pages are moved to disk as necessary to create free memory.
HP-UX uses paging, although the disk allocated to hold the deactivated memory pages is called "swap".
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2006 10:15 PM
08-05-2006 10:15 PM
Re: Swapping and Paging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2006 07:12 PM
08-06-2006 07:12 PM
Re: Swapping and Paging
Here is your answer..
In particular, "swapping out a process"
used to be simultaneously a scheduling operating and a memory management
operation.
With paging, there is no explicit connection between how much of a program's
virtual memory is resident and whether that process is schedulable. A
program in a tight loop might only have one or two pages mapped with the
majority of it being paged out. In other words, the OS just grabs pages away
from processes, and doesn't give them back unless the process asks for them
again (via a page fault).
With swapping, the OS guarantees that the program is resident before
scheduling it. The program may also explicitly manage swapping in areas of
memory, by asking the OS to swap the data in before the program uses it, and
telling the OS it's done afterwards. (Windows allows memory to be managed
this way.)
Paging is preferred over swapping because it does a better job of keeping
only the most important data in memory. However, paging requires restartable
instructions, so that an instruction can be restarted after a page fault has
been handled. You also need an MMU or a TLB to handle the
virtual-to-physical address conversions.
regards
Venkat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2006 07:32 PM
08-06-2006 07:32 PM
Re: Swapping and Paging
Swapping occurs when whole process is transfered to disk, while paging is when some part of process is transferred to disk while rest is still in physical memory.
Regards
Sudhakaran.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2006 11:31 PM
08-06-2006 11:31 PM
Re: Swapping and Paging
Also, if you are having issues with memory or want to know more about it this is an excellent document to read,
ftp://eh:spear9@hprc.external.hp.com/memory.htm
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2006 12:01 AM
08-07-2006 12:01 AM
Re: Swapping and Paging
Swapping is one of the Unix mechanisms to accommodate the size limitation of memory by moving entire processes to disk to reclaim memory.
Paging is another Unix machanism to manage the limitations of memory. Unlike swapping, where entire processes are moved in and out of memory, paging moves only individual pages of processes to disk. Paging is not as serious a problem as swapping, as the entire program does not have to reside in memory to run. A small amount of paging may not noticeably affect the performance of a system. However, the performance of a system may degraderapidly as paging activity increases.
Swap space on disk is used to hold pages of memory that have been paged or swapped out. A shortage of swap space may cause symptoms such as system hanging, poor response times, and unsuccessful spawning of new processes.
Hope this helps!
kind regards
yogeeraj