Re: [PATCHv9 26/36] mm: rework mapcount accounting to enable 4k mapping of THPs

2015-08-03 Thread Jerome Marchand
On 08/03/2015 12:43 PM, Kirill A. Shutemov wrote: > On Fri, Jul 31, 2015 at 05:04:18PM +0200, Jerome Marchand wrote: >> On 07/20/2015 04:20 PM, Kirill A. Shutemov wrote: >>> We're going to allow mapping of individual 4k pages of THP compound. >>> It means we need to track mapcount on per small page

Re: [PATCHv9 26/36] mm: rework mapcount accounting to enable 4k mapping of THPs

2015-08-03 Thread Kirill A. Shutemov
On Fri, Jul 31, 2015 at 05:04:18PM +0200, Jerome Marchand wrote: > On 07/20/2015 04:20 PM, Kirill A. Shutemov wrote: > > We're going to allow mapping of individual 4k pages of THP compound. > > It means we need to track mapcount on per small page basis. > > > > Straight-forward approach is to use

Re: [PATCHv9 26/36] mm: rework mapcount accounting to enable 4k mapping of THPs

2015-07-31 Thread Jerome Marchand
On 07/20/2015 04:20 PM, Kirill A. Shutemov wrote: > We're going to allow mapping of individual 4k pages of THP compound. > It means we need to track mapcount on per small page basis. > > Straight-forward approach is to use ->_mapcount in all subpages to track > how many time this subpage is mapped