Hi all,

This post is a request for clarification on some features of libhugetlbfs.
I realize that this mailing list is not intended for this kind of help
demand, but after searching unsuccessfully in the mailing list archive,
reading the man pages of hugetlbfs, hugeadm and hugectl, as well as the
excellent article series on LWN.net (the second one in particular :
http://lwn.net/Articles/375096/), I didn't find any other relevant place to
ask for help. So sorry if I bother you with my noob questions, and thanks
in advance to anyone who would take a little time to answer.

My questions are related to automatic backing of memory regions, when the
system supports multiple page sizes. Say for instance 4, 16, 64, 256 KB, 1,
4, 16, 64, 256 MB, 1, 4 GB page sizes. We also make the assumption that
pools of each page size have been configured (hugeadm), and that the
application has been pre-linked to libhugetlbfs.

Question 1:

Does libhugetlbfs optimally back text, data and bss segments ? I mean, if a
text segment is 5,259,264 bytes, will it be mapped with a combination of "4
MB + 1 MB + 16 KB" page sizes ?... In other words maybe : when using
hugectl, is it allowed to repeat the "--text", "--data", "--bss" options
with different page sizes, or does it only work with a given page size ?

Question 2:
Same question for the heap.

Question 3:
Is it possible to limit the number of huge pages to be allocated per
process for the heap (knowing that once this limit is reached, next
allocations will fallback to the default page size, 4 KB) ?

Regards,
Telenn
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to