All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Paul Mackerras <paulus@ozlabs.org>
Cc: benh@kernel.crashing.org, mpe@ellerman.id.au,
	linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 00/16] Remove hash page table slot tracking from linux PTE
Date: Mon, 30 Oct 2017 18:44:47 +0530	[thread overview]
Message-ID: <87r2tk22wo.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <87tvyg26us.fsf@linux.vnet.ibm.com>

"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> writes:


> I looked at the perf data and with the test, we are doing larger number
> of hash faults and then around 10k flush_hash_range. Can the small
> improvement in number be due to the fact that we are not storing slot
> number when doing an insert now?. Also in the flush path we are now not
> using real_pte_t.
>

With THP disabled I am finding below.

Without patch

    35.62%  a.out    [kernel.vmlinux]            [k] clear_user_page
     8.54%  a.out    [kernel.vmlinux]            [k] __lock_acquire
     3.86%  a.out    [kernel.vmlinux]            [k] native_flush_hash_range
     3.38%  a.out    [kernel.vmlinux]            [k] save_context_stack
     2.98%  a.out    a.out                       [.] main
     2.59%  a.out    [kernel.vmlinux]            [k] lock_acquire
     2.29%  a.out    [kernel.vmlinux]            [k] mark_lock
     2.23%  a.out    [kernel.vmlinux]            [k] native_hpte_insert
     1.87%  a.out    [kernel.vmlinux]            [k] get_mem_cgroup_from_mm
     1.71%  a.out    [kernel.vmlinux]            [k] rcu_lockdep_current_cpu_online
     1.68%  a.out    [kernel.vmlinux]            [k] lock_release
     1.47%  a.out    [kernel.vmlinux]            [k] __handle_mm_fault
     1.41%  a.out    [kernel.vmlinux]            [k] validate_sp


With patch
    35.40%  a.out    [kernel.vmlinux]            [k] clear_user_page
     8.82%  a.out    [kernel.vmlinux]            [k] __lock_acquire
     3.66%  a.out    a.out                       [.] main
     3.49%  a.out    [kernel.vmlinux]            [k] save_context_stack
     2.77%  a.out    [kernel.vmlinux]            [k] lock_acquire
     2.45%  a.out    [kernel.vmlinux]            [k] mark_lock
     1.80%  a.out    [kernel.vmlinux]            [k] get_mem_cgroup_from_mm
     1.80%  a.out    [kernel.vmlinux]            [k] native_hpte_insert
     1.79%  a.out    [kernel.vmlinux]            [k] rcu_lockdep_current_cpu_online
     1.78%  a.out    [kernel.vmlinux]            [k] lock_release
     1.73%  a.out    [kernel.vmlinux]            [k] native_flush_hash_range
     1.53%  a.out    [kernel.vmlinux]            [k] __handle_mm_fault

That is we are now spending less time in native_flush_hash_range.

-aneesh

  reply	other threads:[~2017-10-30 13:15 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-27  4:08 [PATCH 00/16] Remove hash page table slot tracking from linux PTE Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 01/16] powerpc/mm/hash: Remove the superfluous bitwise operation when find hpte group Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 02/16] powerpc/mm: Update native_hpte_find to return hash pte Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 03/16] powerpc/pseries: Update hpte find helper to take hash value Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 04/16] powerpc/mm: Add hash invalidate callback Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 05/16] powerpc/mm: use hash_invalidate for __kernel_map_pages() Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 06/16] powerpc/mm: Switch flush_hash_range to not use slot Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 07/16] powerpc/mm: Add hash updatepp callback Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 08/16] powerpc/mm/hash: Don't track hash pte slot number in linux page table Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 09/16] powerpc/mm: Add new firmware feature HASH API Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 10/16] powerpc/kvm/hash: Implement HASH_REMOVE hcall Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 11/16] powerpc/kvm/hash: Implement HASH_PROTECT hcall Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 12/16] powerpc/kvm/hash: Implement HASH_BULK_REMOVE hcall Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 13/16] powerpc/mm/pseries: Use HASH_PROTECT hcall in guest Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 14/16] powerpc/mm/pseries: Use HASH_REMOVE " Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 15/16] powerpc/mm/pseries: Move slot based bulk remove to helper Aneesh Kumar K.V
2017-10-27  4:08 ` [PATCH 16/16] powerpc/mm/pseries: Use HASH_BULK_REMOVE hcall in guest Aneesh Kumar K.V
2017-10-27  4:34 ` [PATCH 00/16] Remove hash page table slot tracking from linux PTE Paul Mackerras
2017-10-27  5:27   ` Aneesh Kumar K.V
2017-10-27  5:41     ` Paul Mackerras
2017-10-30  7:57       ` Aneesh Kumar K.V
2017-10-30 11:49       ` Aneesh Kumar K.V
2017-10-30 13:14         ` Aneesh Kumar K.V [this message]
2017-10-30 13:49           ` Aneesh Kumar K.V
2017-11-21  8:41       ` Aneesh Kumar K.V
2017-10-28 22:35     ` Ram Pai
2017-10-29 14:05       ` Aneesh Kumar K.V
2017-10-29 22:04       ` Paul Mackerras
2017-10-30  0:51         ` Ram Pai
2017-11-01  4:46           ` Michael Ellerman
2017-11-01 11:02           ` Paul Mackerras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r2tk22wo.fsf@linux.vnet.ibm.com \
    --to=aneesh.kumar@linux.vnet.ibm.com \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mpe@ellerman.id.au \
    --cc=paulus@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.