From: yalin wang <yalin.wang2010@gmail.com>
To: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>,
Oleg Nesterov <oleg@redhat.com>,
Andrew Morton <akpm@linux-foundation.org>,
Chen Gang <gang.chen.5i5j@gmail.com>,
mhocko@suse.com, kwapulinski.piotr@gmail.com,
Andrea Arcangeli <aarcange@redhat.com>,
dcashman@google.com,
"open list:MEMORY MANAGEMENT" <linux-mm@kvack.org>,
linux-kernel@vger.kernel.org
Subject: Re: [RFC] mm: change find_vma() function
Date: Tue, 22 Dec 2015 13:31:21 +0800 [thread overview]
Message-ID: <35FEEB7C-1C74-4BF9-B2F2-EDB48996BD4F@gmail.com> (raw)
In-Reply-To: <20151215115342.GB75130@black.fi.intel.com>
> On Dec 15, 2015, at 19:53, Kirill A. Shutemov <kirill.shutemov@linux.intel.com> wrote:
>
> On Tue, Dec 15, 2015 at 02:41:21PM +0800, yalin wang wrote:
>>> On Dec 15, 2015, at 05:11, Kirill A. Shutemov <kirill@shutemov.name> wrote:
>>> Anyway, I don't think it's possible to gain anything measurable from this
>>> optimization.
>>>
>> the advantage is that if addr don’t belong to any vma, we don’t need loop all vma,
>> we can break earlier if we found the most closest vma which vma->end_add > addr,
>
> Do you have any workload which can demonstrate the advantage?
>
> —
i add the log in find_vma() to see the call stack ,
it is very efficient in mmap() / munmap / do_execve() / get_unmaped_area() /
mem_cgroup_move_task()->walk_page_range()->find_vma() call ,
in most time the loop will break after search about 7 vm,
i don’t consider the cache pollution problem in this patch,
yeah, this patch will check the vm_prev->vm_end for every loop,
but this only happened when tmp->vm_end > addr ,
if you don’t not check this , you will continue to loop to check next rb ,
this will also pollute the cache ,
so the question is which one is better ?
i don’t have a better method to test this .
Any good ideas about this ?
how to test it ?
Thanks
--
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>
prev parent reply other threads:[~2015-12-22 5:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-14 11:02 yalin wang
2015-12-14 12:11 ` Kirill A. Shutemov
2015-12-14 17:55 ` Oleg Nesterov
2015-12-14 21:11 ` Kirill A. Shutemov
2015-12-15 6:41 ` yalin wang
2015-12-15 11:47 ` Andrea Arcangeli
2015-12-15 11:53 ` Kirill A. Shutemov
2015-12-22 5:31 ` yalin wang [this message]
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=35FEEB7C-1C74-4BF9-B2F2-EDB48996BD4F@gmail.com \
--to=yalin.wang2010@gmail.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=dcashman@google.com \
--cc=gang.chen.5i5j@gmail.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=kirill@shutemov.name \
--cc=kwapulinski.piotr@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=oleg@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox