Re: a question on mapping from PTE to swap entry

2018-11-15 Thread valdis . kletnieks
On Thu, 15 Nov 2018 23:53:56 +0800, "Larry" said: > I'm curious when multiple process has the same PTE which points to the > samepage, > how can kernel differenciate which page from swap space should be swappedin? The PTE tells where in /dev/swap to find the page. If it's a shared page, the

a question on mapping from PTE to swap entry

2018-11-15 Thread Larry
Hi all, It's quoted that "When a page is swapped out, Linux uses the correspondingPTE to store enough information to locate the page on disk again". I'm curious when multiple process has the same PTE which points to the samepage, how can kernel differenciate which page from swap space should