public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* A question about transparent hugepages
@ 2016-08-04  4:02 zhong jiang
  2016-08-04  9:16 ` Kirill A. Shutemov
  0 siblings, 1 reply; 2+ messages in thread
From: zhong jiang @ 2016-08-04  4:02 UTC (permalink / raw)
  To: kirill.shutemov, Mel Gorman, Michal Hocko; +Cc: LKML

according to the total_mapcount,  Different process can map any subpages of the
transparent hugepages.   How it can happen to ? 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: A question about transparent hugepages
  2016-08-04  4:02 A question about transparent hugepages zhong jiang
@ 2016-08-04  9:16 ` Kirill A. Shutemov
  0 siblings, 0 replies; 2+ messages in thread
From: Kirill A. Shutemov @ 2016-08-04  9:16 UTC (permalink / raw)
  To: zhong jiang; +Cc: kirill.shutemov, Mel Gorman, Michal Hocko, LKML

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-04  9:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-04  4:02 A question about transparent hugepages zhong jiang
2016-08-04  9:16 ` Kirill A. Shutemov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox