Re: [PATCH v2 2/2] virtio-mem: Correct default THP size for ARM64

2021-12-03 Thread Gavin Shan
On 12/4/21 5:16 AM, David Hildenbrand wrote: On 03.12.21 04:35, Gavin Shan wrote: The default block size is same as to the THP size, which is either retrieved from "/sys/kernel/mm/transparent_hugepage/hpage_pmd_size" or hardcoded to 2MB. There are flaws in both mechanisms and this intends to fix

Re: [PATCH v2 2/2] virtio-mem: Correct default THP size for ARM64

2021-12-03 Thread David Hildenbrand
On 03.12.21 04:35, Gavin Shan wrote: > The default block size is same as to the THP size, which is either > retrieved from "/sys/kernel/mm/transparent_hugepage/hpage_pmd_size" > or hardcoded to 2MB. There are flaws in both mechanisms and this > intends to fix them up. > > * When "/sys/kernel/mm/

[PATCH v2 2/2] virtio-mem: Correct default THP size for ARM64

2021-12-02 Thread Gavin Shan
The default block size is same as to the THP size, which is either retrieved from "/sys/kernel/mm/transparent_hugepage/hpage_pmd_size" or hardcoded to 2MB. There are flaws in both mechanisms and this intends to fix them up. * When "/sys/kernel/mm/transparent_hugepage/hpage_pmd_size" is used