Skip to contentSkip to conversation

A question about transparent hugepages

DISCUSSION zhong jiang 2 participants 2 messages Aug 4, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines · zhong jiang

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.

Signature · 1 line
 Kirill A. Shutemov