Re: [PATCH 5/5] mm: mark stable page dirty in KSM

2015-10-26 Thread Minchan Kim
On Mon, Oct 26, 2015 at 07:23:12PM -0700, Hugh Dickins wrote: > On Mon, 19 Oct 2015, Minchan Kim wrote: > > > Stable page could be shared by several processes and last process > > could own the page among them after CoW or zapping for every process > > except last process happens. Then, page table

Re: [PATCH 5/5] mm: mark stable page dirty in KSM

2015-10-26 Thread Hugh Dickins
On Mon, 19 Oct 2015, Minchan Kim wrote: > Stable page could be shared by several processes and last process > could own the page among them after CoW or zapping for every process > except last process happens. Then, page table entry of the page > in last process can have no dirty bit and PG_dirty

[PATCH 5/5] mm: mark stable page dirty in KSM

2015-10-18 Thread Minchan Kim
Stable page could be shared by several processes and last process could own the page among them after CoW or zapping for every process except last process happens. Then, page table entry of the page in last process can have no dirty bit and PG_dirty flag in page->flags. In this case, MADV_FREE coul