Re: [PATCH] mm: Reuse only-pte-mapped KSM page in do_wp_page()

2018-12-30 Thread Kirill Tkhai
On 30.12.2018 00:40, Andrew Morton wrote: > On Thu, 13 Dec 2018 18:29:08 +0300 Kirill Tkhai wrote: > >> This patch adds an optimization for KSM pages almost >> in the same way, that we have for ordinary anonymous >> pages. If there is a write fault in a page, which is >> mapped to an only pte, an

Re: [PATCH] mm: Reuse only-pte-mapped KSM page in do_wp_page()

2018-12-29 Thread Andrew Morton
On Thu, 13 Dec 2018 18:29:08 +0300 Kirill Tkhai wrote: > This patch adds an optimization for KSM pages almost > in the same way, that we have for ordinary anonymous > pages. If there is a write fault in a page, which is > mapped to an only pte, and it is not related to swap > cache; the page may

Re: [PATCH] mm: Reuse only-pte-mapped KSM page in do_wp_page()

2018-12-29 Thread Kirill Tkhai
Hi, Andrew! How do you look at this patch? It had been reviewed. Thanks, Kirill On 13.12.2018 18:29, Kirill Tkhai wrote: > This patch adds an optimization for KSM pages almost > in the same way, that we have for ordinary anonymous > pages. If there is a write fault in a page, which is > mapped t

Re: [PATCH] mm: Reuse only-pte-mapped KSM page in do_wp_page()

2018-12-15 Thread Kirill Tkhai
On 14.12.2018 21:06, Yang Shi wrote: > > > On 12/14/18 1:26 AM, Kirill Tkhai wrote: >> On 13.12.2018 22:15, Yang Shi wrote: >>> >>> On 12/13/18 7:29 AM, Kirill Tkhai wrote: This patch adds an optimization for KSM pages almost in the same way, that we have for ordinary anonymous pag

Re: [PATCH] mm: Reuse only-pte-mapped KSM page in do_wp_page()

2018-12-14 Thread Yang Shi
On 12/14/18 1:26 AM, Kirill Tkhai wrote: On 13.12.2018 22:15, Yang Shi wrote: On 12/13/18 7:29 AM, Kirill Tkhai wrote: This patch adds an optimization for KSM pages almost in the same way, that we have for ordinary anonymous pages. If there is a write fault in a page, which is mapped to an

Re: [PATCH] mm: Reuse only-pte-mapped KSM page in do_wp_page()

2018-12-14 Thread Kirill Tkhai
On 13.12.2018 22:15, Yang Shi wrote: > > > On 12/13/18 7:29 AM, Kirill Tkhai wrote: >> This patch adds an optimization for KSM pages almost >> in the same way, that we have for ordinary anonymous >> pages. If there is a write fault in a page, which is >> mapped to an only pte, and it is not relat

Re: [PATCH] mm: Reuse only-pte-mapped KSM page in do_wp_page()

2018-12-13 Thread Yang Shi
On 12/13/18 7:29 AM, Kirill Tkhai wrote: This patch adds an optimization for KSM pages almost in the same way, that we have for ordinary anonymous pages. If there is a write fault in a page, which is mapped to an only pte, and it is not related to swap cache; the page may be reused without cop

[PATCH] mm: Reuse only-pte-mapped KSM page in do_wp_page()

2018-12-13 Thread Kirill Tkhai
This patch adds an optimization for KSM pages almost in the same way, that we have for ordinary anonymous pages. If there is a write fault in a page, which is mapped to an only pte, and it is not related to swap cache; the page may be reused without copying its content. [Note, that we do not consi