[RFC PATCH 4/6] fs/binfmt_elf.c: change the condition of identifying hugetlb vm

2015-06-09 Thread Wenwei Tao
n the same time. Signed-off-by: Wenwei Tao --- fs/binfmt_elf.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 995986b..f529c8e 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1242,7 +1242,7 @@ static unsigned long vma_dump_s

[RFC PATCH 1/6] mm: add defer mechanism to ksm to make it more suitable

2015-06-09 Thread Wenwei Tao
on to KSM. This defer mechanism can automatic lower the scan frequency in the above case. Signed-off-by: Wenwei Tao --- mm/ksm.c | 230 ++ 1 file changed, 203 insertions(+), 27 deletions(-) diff --git a/mm/ksm.c b/mm/ksm.c index 41

[RFC PATCH 2/6] mm: change the condition of identifying hugetlb vm

2015-06-09 Thread Wenwei Tao
n the same time. Signed-off-by: Wenwei Tao --- include/linux/hugetlb_inline.h |2 +- include/linux/mempolicy.h |2 +- mm/gup.c |6 -- mm/huge_memory.c | 17 - mm/madvise.c |6 -- m

[RFC PATCH 6/6] powerpc/kvm: change the condition of identifying hugetlb vm

2015-06-09 Thread Wenwei Tao
n the same time. Signed-off-by: Wenwei Tao --- arch/powerpc/kvm/e500_mmu_host.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/e500_mmu_host.c b/arch/powerpc/kvm/e500_mmu_host.c index cc536d4..d76f518 100644 --- a/arch/powerpc/kvm/e500_mmu_host.c +++ b/ar

[RFC PATCH 5/6] x86/mm: change the condition of identifying hugetlb vm

2015-06-09 Thread Wenwei Tao
n the same time. Signed-off-by: Wenwei Tao --- arch/x86/mm/tlb.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index 3250f23..0247916 100644 --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c @@ -195,7 +195,8 @@ void flush_tlb_mm_ra

[RFC PATCH 0/6] add defer mechanism to ksm to make it more suitable for Android devices

2015-06-09 Thread Wenwei Tao
n scanned twice, we use VM_HUGETLB to indicate new mergeable VMAs since hugetlb vm are not supported by KSM. Wenwei Tao (6): mm: add defer mechanism to ksm to make it more suitable mm: change the condition of identifying hugetlb vm perf: change the condition of identifying hugetlb vm fs/binfmt_el

[RFC PATCH 3/6] perf: change the condition of identifying hugetlb vm

2015-06-09 Thread Wenwei Tao
n the same time. Signed-off-by: Wenwei Tao --- kernel/events/core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index f04daab..6313bdd 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -5624,7 +5624,7 @@ s

Re: [RFC PATCH 6/6] powerpc/kvm: change the condition of identifying hugetlb vm

2015-07-03 Thread wenwei tao
ot;vma->vm_flags & (VM_LOCKED|VM_PFNMAP) || (vma->vm_flags & (VM_HUGETLB|VM_MERGEABLE)) == VM_HUGETLB". I am a newbie to Linux kernel, do you have any good suggestions on this situation? Thank you Wenwei 2015-07-03 5:49 GMT+08:00 Scott Wood : > On Wed, 2015-06-10 at 14:27 +0800, We

Re: [RFC PATCH 6/6] powerpc/kvm: change the condition of identifying hugetlb vm

2015-07-07 Thread wenwei tao
local_flush_tlb(); goto flush_all; } ... } Thank you Wenwei 2015-07-07 5:34 GMT+08:00 Scott Wood : > On Fri, 2015-07-03 at 16:47 +0800, wenwei tao wrote: >> Hi Scott >> >> Thank you for your comments. >> >> Kernel already has that function: is_vm