Tru64 Unix
1753638 會員
5846 線上
108798 解決方案
發表新文章

What's the difference between paging and swaping?

 
watermelonyu
教授

What's the difference between paging and swaping?

paging 和 swaping 定義有何不同?
2則回覆 2
watermelonyu
教授

What's the difference between paging and swaping?

單位不同

paging:once one page

To provide more physical memory, the vm subsystem monitors

the amount of available physical memory and might transfer pages to a

secondary memory device called a swap device .A swap device is a block device in a configurable section of a disk. The kernel retrieves pages from a swap device on demand when a process references the pages. This memory

management policy is called paging.



swapping:one several pages

Under heavy loads, an entire process might be transferred to a swap device.

Aprocess called the swapper manages the transfer of pages between physical

memory and a swap device. This memory management policy is called

watermelonyu
教授

What's the difference between paging and swaping?

Swapping and paging are not precisely the same

thing. A swap or a page fault occurs when a

chunk of data is required but that chunk is not

in memory. The chunk of data is then retrieved

from swap space on disk and exchanged with

something else if there is not enough space in

RAM. Thus the information is swapped between

RAM and a swap file on disk.