Support variable-sized huge pages
Hi all,
It seems that Andi's "Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the patch, x86 will support 2MB and 1GB huge pages. But I just see hugepages-2048kB under /sys/kernel/mm/hugepages/ on my x86_32 PAE desktop. Where is 1GB huge pages?
Regards,
Ric
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 7 lines · Ric Mason
Hi all,
It seems that Andi's "Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the patch, x86 will support 2MB and 1GB huge pages. But I just see hugepages-2048kB under
/sys/kernel/mm/hugepages/on myx86_32PAE desktop. Where is 1GB huge pages?
Hi Ric,
By default only has 2M huge pages, you can specify "hugepagesz=1G hugepages=xx" in boot option, then you can see: /sys/kernel/mm/hugepages/hugepages-1048576kB.
Thanks,
Jianguo Wu
Quoted 11 lines
Regards,
Ric--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 7 lines · Ric Mason
Hi all,
It seems that Andi's "Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the patch, x86 will support 2MB and 1GB huge pages. But I just see hugepages-2048kB under
/sys/kernel/mm/hugepages/on myx86_32PAE desktop. Where is 1GB huge pages?
1GB pages are only supported under 64bit kernels, and also only if you allocate them explicitely with boot options.
-Andi
Signature · 7 lines
[email protected] -- Speaking for myself only. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Hi Andi,
Quoted 11 lines · Andi Kleen
Quoted 7 lines · Ric Mason
Hi all,
It seems that Andi's "Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the patch, x86 will support 2MB and 1GB huge pages. But I just see hugepages-2048kB under
/sys/kernel/mm/hugepages/on myx86_32PAE desktop. Where is 1GB huge pages?1GB pages are only supported under 64bit kernels, and also only if you allocate them explicitely with boot options.
I am curious about how can buddy system alloc 1GB huge pages? the most order buddy system supports is 10. Could you explain to me?
Quoted 2 lines
-Andi
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 11 lines · Ric Mason
Hi Andi,
Quoted 9 lines · Andi Kleen
Quoted 7 lines · Ric Mason
Hi all,
It seems that Andi's "Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the patch, x86 will support 2MB and 1GB huge pages. But I just see hugepages-2048kB under
/sys/kernel/mm/hugepages/on myx86_32PAE desktop. Where is 1GB huge pages?
Quoted 5 lines
Quoted 2 lines
1GB pages are only supported under 64bit kernels, and also only if you allocate them explicitely with boot options.
I am curious about how can buddy system alloc 1GB huge pages? the most order buddy system supports is 10. Could you explain to me?
Have a look at setup_hugepagesz & hugetlb_nrpages_setup (in x86 arch code). A short answer is. Bootmem is used for allocation > MAX_ORDER.
Signature · 8 lines
Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 11 lines · Ric Mason
Hi Andi,
Quoted 9 lines · Andi Kleen
Quoted 7 lines · Ric Mason
Hi all,
It seems that Andi's "Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the patch, x86 will support 2MB and 1GB huge pages. But I just see hugepages-2048kB under
/sys/kernel/mm/hugepages/on myx86_32PAE desktop. Where is 1GB huge pages?
Quoted 5 lines
Quoted 2 lines
1GB pages are only supported under 64bit kernels, and also only if you allocate them explicitely with boot options.
I am curious about how can buddy system alloc 1GB huge pages? the most order buddy system supports is 10. Could you explain to me?
It can't, that is why you can only allocate them at boot time.
-Andi
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 10 lines · Andi Kleen
Quoted 7 lines · Ric Mason
Hi all,
It seems that Andi's "Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB" patch has already merged. According to the patch, x86 will support 2MB and 1GB huge pages. But I just see hugepages-2048kB under
/sys/kernel/mm/hugepages/on myx86_32PAE desktop. Where is 1GB huge pages?1GB pages are only supported under 64bit kernels, and also only if you allocate them explicitely with boot options.
It seem that before your patch, we also can set mutiple hugepagesz, but hugetlbfs just mount default size, correct? IIUC, how can different size huge pages be used? If set mutiple hugepagesz, which one is default size?
Quoted 2 lines
-Andi
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>