Does a pager move or copy a page when handling a page fault?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
When a process accesses a page not in the main memory but in the swap space, a page fault happens, and the pager reads a page from swap space to main memory.
Is the read a move or copy? In other words, is there still a copy of the page in the swap space?
If it is a copy, does it mean that the pager has to update the copy in the swap space whenever there is a change to the copy of the page in the main space?
Thanks.
Operating System Concepts says:
We ï¬Ând a free frame (by taking one from the free-frame list, for example).
We schedule a disk operation to read the desired page into the newly allocated frame.
and this figure also shows copies of some pages (A, C and F) are in both swap space and main memory, and no page only exists in main memory but not in swap space:

linux virtual-memory
add a comment |Â
up vote
0
down vote
favorite
When a process accesses a page not in the main memory but in the swap space, a page fault happens, and the pager reads a page from swap space to main memory.
Is the read a move or copy? In other words, is there still a copy of the page in the swap space?
If it is a copy, does it mean that the pager has to update the copy in the swap space whenever there is a change to the copy of the page in the main space?
Thanks.
Operating System Concepts says:
We ï¬Ând a free frame (by taking one from the free-frame list, for example).
We schedule a disk operation to read the desired page into the newly allocated frame.
and this figure also shows copies of some pages (A, C and F) are in both swap space and main memory, and no page only exists in main memory but not in swap space:

linux virtual-memory
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When a process accesses a page not in the main memory but in the swap space, a page fault happens, and the pager reads a page from swap space to main memory.
Is the read a move or copy? In other words, is there still a copy of the page in the swap space?
If it is a copy, does it mean that the pager has to update the copy in the swap space whenever there is a change to the copy of the page in the main space?
Thanks.
Operating System Concepts says:
We ï¬Ând a free frame (by taking one from the free-frame list, for example).
We schedule a disk operation to read the desired page into the newly allocated frame.
and this figure also shows copies of some pages (A, C and F) are in both swap space and main memory, and no page only exists in main memory but not in swap space:

linux virtual-memory
When a process accesses a page not in the main memory but in the swap space, a page fault happens, and the pager reads a page from swap space to main memory.
Is the read a move or copy? In other words, is there still a copy of the page in the swap space?
If it is a copy, does it mean that the pager has to update the copy in the swap space whenever there is a change to the copy of the page in the main space?
Thanks.
Operating System Concepts says:
We ï¬Ând a free frame (by taking one from the free-frame list, for example).
We schedule a disk operation to read the desired page into the newly allocated frame.
and this figure also shows copies of some pages (A, C and F) are in both swap space and main memory, and no page only exists in main memory but not in swap space:

linux virtual-memory
linux virtual-memory
asked 36 mins ago
Tim
23.9k67232418
23.9k67232418
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474605%2fdoes-a-pager-move-or-copy-a-page-when-handling-a-page-fault%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password