Re: [PATCH v6 10/12] thp: implement refcounting for huge zero page

2012-11-19 Thread Jaegeuk Hanse
On 11/19/2012 07:09 PM, Kirill A. Shutemov wrote: On Mon, Nov 19, 2012 at 07:02:22PM +0800, Jaegeuk Hanse wrote: On 11/19/2012 06:23 PM, Kirill A. Shutemov wrote: On Mon, Nov 19, 2012 at 06:20:01PM +0800, Jaegeuk Hanse wrote: On 11/19/2012 05:56 PM, Kirill A. Shutemov wrote: On Sun, Nov 18, 2

Re: [PATCH v6 10/12] thp: implement refcounting for huge zero page

2012-11-19 Thread Kirill A. Shutemov
On Mon, Nov 19, 2012 at 07:02:22PM +0800, Jaegeuk Hanse wrote: > On 11/19/2012 06:23 PM, Kirill A. Shutemov wrote: > >On Mon, Nov 19, 2012 at 06:20:01PM +0800, Jaegeuk Hanse wrote: > >>On 11/19/2012 05:56 PM, Kirill A. Shutemov wrote: > >>>On Sun, Nov 18, 2012 at 02:23:44PM +0800, Jaegeuk Hanse wro

Re: [PATCH v6 10/12] thp: implement refcounting for huge zero page

2012-11-19 Thread Jaegeuk Hanse
On 11/19/2012 06:23 PM, Kirill A. Shutemov wrote: On Mon, Nov 19, 2012 at 06:20:01PM +0800, Jaegeuk Hanse wrote: On 11/19/2012 05:56 PM, Kirill A. Shutemov wrote: On Sun, Nov 18, 2012 at 02:23:44PM +0800, Jaegeuk Hanse wrote: On 11/16/2012 03:27 AM, Kirill A. Shutemov wrote: From: "Kirill A.

Re: [PATCH v6 10/12] thp: implement refcounting for huge zero page

2012-11-19 Thread Kirill A. Shutemov
On Mon, Nov 19, 2012 at 06:20:01PM +0800, Jaegeuk Hanse wrote: > On 11/19/2012 05:56 PM, Kirill A. Shutemov wrote: > >On Sun, Nov 18, 2012 at 02:23:44PM +0800, Jaegeuk Hanse wrote: > >>On 11/16/2012 03:27 AM, Kirill A. Shutemov wrote: > >>>From: "Kirill A. Shutemov" > >>> > >>>H. Peter Anvin doesn

Re: [PATCH v6 10/12] thp: implement refcounting for huge zero page

2012-11-19 Thread Jaegeuk Hanse
On 11/19/2012 05:56 PM, Kirill A. Shutemov wrote: On Sun, Nov 18, 2012 at 02:23:44PM +0800, Jaegeuk Hanse wrote: On 11/16/2012 03:27 AM, Kirill A. Shutemov wrote: From: "Kirill A. Shutemov" H. Peter Anvin doesn't like huge zero page which sticks in memory forever after the first allocation. H

Re: [PATCH v6 10/12] thp: implement refcounting for huge zero page

2012-11-19 Thread Kirill A. Shutemov
On Sun, Nov 18, 2012 at 02:23:44PM +0800, Jaegeuk Hanse wrote: > On 11/16/2012 03:27 AM, Kirill A. Shutemov wrote: > >From: "Kirill A. Shutemov" > > > >H. Peter Anvin doesn't like huge zero page which sticks in memory forever > >after the first allocation. Here's implementation of lockless refcoun

Re: [PATCH v6 10/12] thp: implement refcounting for huge zero page

2012-11-17 Thread Jaegeuk Hanse
On 11/16/2012 03:27 AM, Kirill A. Shutemov wrote: From: "Kirill A. Shutemov" H. Peter Anvin doesn't like huge zero page which sticks in memory forever after the first allocation. Here's implementation of lockless refcounting for huge zero page. We have two basic primitives: {get,put}_huge_zero

[PATCH v6 10/12] thp: implement refcounting for huge zero page

2012-11-15 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" H. Peter Anvin doesn't like huge zero page which sticks in memory forever after the first allocation. Here's implementation of lockless refcounting for huge zero page. We have two basic primitives: {get,put}_huge_zero_page(). They manipulate reference counter. If coun