diff for duplicates of <877eym1l4m.fsf@linux.vnet.ibm.com> diff --git a/a/1.txt b/N1/1.txt index c70010c..65357b8 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -2,35 +2,27 @@ Christophe LEROY <christophe.leroy@c-s.fr> writes: > Hi, > -> Le 28/07/2017 =C3=A0 07:01, Aneesh Kumar K.V a =C3=A9crit : ->> With commit aa888a74977a8 ("hugetlb: support larger than MAX_ORDER") we = -added +> Le 28/07/2017 à 07:01, Aneesh Kumar K.V a écrit : +>> With commit aa888a74977a8 ("hugetlb: support larger than MAX_ORDER") we added >> support for allocating gigantic hugepages via kernel command line. Switch >> ppc64 arch specific code to use that. ->>=20 ->> W.r.t FSL support, we now limit our allocation range using BOOTMEM_ALLOC= -_ACCESSIBLE. ->>=20 ->> We use the kernel command line to do reservation of hugetlb pages on pow= -ernv ->> platforms. On pseries hash mmu mode the supported gigantic huge page siz= -e is ->> 16GB and that can only be allocated with hypervisor assist. For pseries = -the ->> command line option doesn't do the allocation. Instead pseries does giga= -ntic +>> +>> W.r.t FSL support, we now limit our allocation range using BOOTMEM_ALLOC_ACCESSIBLE. +>> +>> We use the kernel command line to do reservation of hugetlb pages on powernv +>> platforms. On pseries hash mmu mode the supported gigantic huge page size is +>> 16GB and that can only be allocated with hypervisor assist. For pseries the +>> command line option doesn't do the allocation. Instead pseries does gigantic >> hugepage allocation based on hypervisor hint that is specified via >> "ibm,expected#pages" property of the memory node. > > It looks like it doesn't work on the 8xx: > > root@vgoip:~# dmesg | grep -i huge -> [ 0.000000] Kernel command line: console=3DttyCPM0,115200N8=20 -> ip=3D172.25.231.25:172.25.231.1::255.0.0.0:vgoip:eth0:off hugepagesz=3D8M= -=20 -> hugepages=3D4 -> [ 0.416722] HugeTLB registered 8.00 MiB page size, pre-allocated 4 pag= -es +> [ 0.000000] Kernel command line: console=ttyCPM0,115200N8 +> ip=172.25.231.25:172.25.231.1::255.0.0.0:vgoip:eth0:off hugepagesz=8M +> hugepages=4 +> [ 0.416722] HugeTLB registered 8.00 MiB page size, pre-allocated 4 pages > [ 0.423184] HugeTLB registered 512 KiB page size, pre-allocated 0 pages > root@vgoip:~# cat /proc/meminfo > MemTotal: 123388 kB @@ -78,6 +70,12 @@ changed that in kernel command line. What does /sys/kernel/mm/hugepages/<hugepages-size>/nr_hugepages show ? To change the default hugepage size you may want to use -default_hugepagesz=3D8M +default_hugepagesz=8M -aneesh + +-- +To unsubscribe, send a message with 'unsubscribe linux-mm' in +the body to majordomo@kvack.org. For more info on Linux MM, +see: http://www.linux-mm.org/ . +Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> diff --git a/a/content_digest b/N1/content_digest index dab96a8..1b464c7 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -17,35 +17,27 @@ "\n" "> Hi,\n" ">\n" - "> Le 28/07/2017 =C3=A0 07:01, Aneesh Kumar K.V a =C3=A9crit :\n" - ">> With commit aa888a74977a8 (\"hugetlb: support larger than MAX_ORDER\") we =\n" - "added\n" + "> Le 28/07/2017 \303\240 07:01, Aneesh Kumar K.V a \303\251crit :\n" + ">> With commit aa888a74977a8 (\"hugetlb: support larger than MAX_ORDER\") we added\n" ">> support for allocating gigantic hugepages via kernel command line. Switch\n" ">> ppc64 arch specific code to use that.\n" - ">>=20\n" - ">> W.r.t FSL support, we now limit our allocation range using BOOTMEM_ALLOC=\n" - "_ACCESSIBLE.\n" - ">>=20\n" - ">> We use the kernel command line to do reservation of hugetlb pages on pow=\n" - "ernv\n" - ">> platforms. On pseries hash mmu mode the supported gigantic huge page siz=\n" - "e is\n" - ">> 16GB and that can only be allocated with hypervisor assist. For pseries =\n" - "the\n" - ">> command line option doesn't do the allocation. Instead pseries does giga=\n" - "ntic\n" + ">> \n" + ">> W.r.t FSL support, we now limit our allocation range using BOOTMEM_ALLOC_ACCESSIBLE.\n" + ">> \n" + ">> We use the kernel command line to do reservation of hugetlb pages on powernv\n" + ">> platforms. On pseries hash mmu mode the supported gigantic huge page size is\n" + ">> 16GB and that can only be allocated with hypervisor assist. For pseries the\n" + ">> command line option doesn't do the allocation. Instead pseries does gigantic\n" ">> hugepage allocation based on hypervisor hint that is specified via\n" ">> \"ibm,expected#pages\" property of the memory node.\n" ">\n" "> It looks like it doesn't work on the 8xx:\n" ">\n" "> root@vgoip:~# dmesg | grep -i huge\n" - "> [ 0.000000] Kernel command line: console=3DttyCPM0,115200N8=20\n" - "> ip=3D172.25.231.25:172.25.231.1::255.0.0.0:vgoip:eth0:off hugepagesz=3D8M=\n" - "=20\n" - "> hugepages=3D4\n" - "> [ 0.416722] HugeTLB registered 8.00 MiB page size, pre-allocated 4 pag=\n" - "es\n" + "> [ 0.000000] Kernel command line: console=ttyCPM0,115200N8 \n" + "> ip=172.25.231.25:172.25.231.1::255.0.0.0:vgoip:eth0:off hugepagesz=8M \n" + "> hugepages=4\n" + "> [ 0.416722] HugeTLB registered 8.00 MiB page size, pre-allocated 4 pages\n" "> [ 0.423184] HugeTLB registered 512 KiB page size, pre-allocated 0 pages\n" "> root@vgoip:~# cat /proc/meminfo\n" "> MemTotal: 123388 kB\n" @@ -93,8 +85,14 @@ "/sys/kernel/mm/hugepages/<hugepages-size>/nr_hugepages show ?\n" "\n" "To change the default hugepage size you may want to use\n" - "default_hugepagesz=3D8M\n" + "default_hugepagesz=8M\n" "\n" - -aneesh + "-aneesh\n" + "\n" + "--\n" + "To unsubscribe, send a message with 'unsubscribe linux-mm' in\n" + "the body to majordomo@kvack.org. For more info on Linux MM,\n" + "see: http://www.linux-mm.org/ .\n" + "Don't email: <a href=mailto:\"dont@kvack.org\"> email@kvack.org </a>" -4aaedd3cd6c08fbe8ae763b683e414759cbc07e0f62606ad8c24dd9685c30950 +2fb7bc3bdd9849e8dfdfafa1105d6071cf8b93c3ae1925eb7a4104ed8b467ce4
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.