- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- What is the difference between page-in & page-out ...
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
Discussions
Discussions
Discussions
Forums
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
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
тАО06-08-2010 02:40 AM
тАО06-08-2010 02:40 AM
I would like to know the difference between page-in & page-out and swap-in & swap-out.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2010 03:37 AM - last edited on тАО01-10-2021 03:56 PM by Ramya_Heera
тАО06-08-2010 03:37 AM - last edited on тАО01-10-2021 03:56 PM by Ramya_Heera
Re: What is the difference between page-in & page-out and swap-in & swap-out
A good place to start is
http://www.learnlinux.org.za/courses/build/internals/ch05s03.html
there are many links there to follow up
Jean-Pierre Huc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2010 04:37 AM
тАО06-08-2010 04:37 AM
Re: What is the difference between page-in & page-out and swap-in & swap-out
Some more links -
http://www.linux-tutorial.info/modules.php?name=MContent&pageid=89
http://learnlinux.tsf.org.za/courses/build/internals/ch05s03.html
Hope this helps.
Regards,
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2010 07:39 PM
тАО06-08-2010 07:39 PM
SolutionSplit the address space needed to run your process into pages, they are called virtual pages. Now try to map the virtual pages into the physical memory you have. If you process bigger then you won't be able to map all your pages to physical pages.
No problem, page-in and page-out will help you. This is what paging aligorithm does.
Only the virtual pages needed to me mapped into physical memory are those which are needed are referenced by your process at any point of time.
Assume there are pages which stores data which can't be stored in the disk for example your static/global variables which modified. So when this pages are removed from physical memory they are paged out to a page file.
When you reference those variable again and they were earlier paged out you read them in .. i.e page-in.
Swap-in and swap-out involves when entire process memory is written something called swapfile.
I belive with the amount of physical memory we have now a days swap-in or swap-out happens very rarely.
-Regards,
Pramod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2010 02:13 AM
тАО06-10-2010 02:13 AM
Re: What is the difference between page-in & page-out and swap-in & swap-out
page-out === The system's free memory is less than a threhsold "lotsfree" and vhand daemon used "LFU" algorithm to move some unused / least used pages to the swap area.
page-in === One process which is running requested for a page that is not in the current memory (page-fault), vhand daemon is bringing it's pages to memory.
swap-out === System is thrashing and swapper daemon has de-activated a process and it's memory pages are moved into the swap area.
swap-in === A deactivated process is back to work and it's pages are being brought into the memory.
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2010 02:14 AM
тАО06-10-2010 02:14 AM
Re: What is the difference between page-in & page-out and swap-in & swap-out
swapin and swapout is used to swap files/devices to or from swap memory devices / location.
They are the counts of swap IO to do swaping of the files/devices operation to or from swap memory.
pagein and pageout are used for the Virtual Memory initiated IO and operation on file-system memory.
They are the counts for VMIO without considering where the operation is done at file-system memory or swap memory.
Rgds-Kranti