lkml.org 
[lkml]   [2016]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: A question about transparent hugepages
On Thu, Aug 04, 2016 at 12:02:29PM +0800, zhong jiang wrote:
> according to the total_mapcount, Different process can map any subpages of the
> transparent hugepages. How it can happen to ?

For anonymous memory it can only happen over copy-on-write via fork() +
munmap() or something in one of the processes.

Now we have tmpfs/shmem with huge pages in mainline. In this case you can
map any subpage directly from file.

--
Kirill A. Shutemov

\
 
 \ /
  Last update: 2016-08-04 12:01    [W:0.050 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site