1830899 Members
1902 Online
110017 Solutions
New Discussion

Paging and Swapping

 
Chakravarthi
Trusted Contributor

Paging and Swapping

Hi,

Please explain me about paging and swapping, What are they, and how they work and what is the difference between them.

Any documents or link on the topic

regards
chakri
8 REPLIES 8
Sajid_1
Honored Contributor

Re: Paging and Swapping

This will be a good starting-
http://www.docs.hp.com/hpux/onlinedocs/5965-4641/5965-4641.html

rgds,
learn unix ..
Sajid_1
Honored Contributor

Re: Paging and Swapping

Hello,

this document will tell you about swapping:

http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000048595137
learn unix ..
V. V. Ravi Kumar_1
Respected Contributor

Re: Paging and Swapping

hi chakri,
any process, if it is to be excecuted, must be loaded in to the memory(RAM). So depending on the size of the RAM it can accommodate limited no. of processes. but when a new process comes RAM has to provide place for it also. then OS identifies any sleeping process or process which is waiting (for other process to be finished) in the RAM, and swaps it to the virtual memory ( a space on the hard disk, which is called SWAP space) tempororily. Earlier entire process used to be swapped to SWAP space which is called Swaping. But now a new technique called Paging is introduced. here the size of the process will be divided into pages (small chunks like 4kb, 8kb) and these pages will be swapped to SWAP space, which is called Paging.
this is a simple explanation, to got indepth knowledge read manuals as others suggested.

regds
Never Say No
S.K. Chan
Honored Contributor

Re: Paging and Swapping

In a nutshell, swapping is the old terminology of memory management which happens when all pages of a process are moved to the physical disk when other processes need the memory (RAM). Paging on the other hand is a more efficient "swapping" mechanism because it doesn't move all pages of a process out to the disk. Instead it moves those "inactive" pages, thus reduce the overhead. So when these pages are moved from memory to disk it's call pageout and later moved back from disk to memory it's call pagein. You can apply the same argument (swapin and swapout) for swap as well.
Animesh Chakraborty
Honored Contributor

Re: Paging and Swapping

 
Did you take a backup?
Justo Exposito
Esteemed Contributor

Re: Paging and Swapping

Thanks Animesh good explanation.

Regards,

Justo.
Help is a Beatiful word
Rita C Workman
Honored Contributor

Re: Paging and Swapping

One of the documents I like can be found at:

/usr/share/doc

..it's called mem_mgt. There are also a number of other papers there that contain an abundance of valuable information to read and learn.

Enjoy,
Rita
Chakravarthi
Trusted Contributor

Re: Paging and Swapping

Thanks for info

regards
chakri