From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Christoph Lameter <cl@linux.com>,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
linux-mm@kvack.org, Konstantin Khlebnikov <koct9i@gmail.com>,
Rik van Riel <riel@redhat.com>
Subject: Re: [PATCH] mm: use PageAnon() and PageKsm() helpers in page_anon_vma()
Date: Wed, 1 Apr 2015 14:50:54 +0300 [thread overview]
Message-ID: <20150401115054.GB17153@node.dhcp.inet.fi> (raw)
In-Reply-To: <20150331133338.ed4ab6cc9a5ab6f6ad4301eb@linux-foundation.org>
On Tue, Mar 31, 2015 at 01:33:38PM -0700, Andrew Morton wrote:
> On Tue, 31 Mar 2015 17:35:34 +0300 "Kirill A. Shutemov" <kirill@shutemov.name> wrote:
>
> > On Tue, Mar 31, 2015 at 08:11:02AM -0500, Christoph Lameter wrote:
> > > On Tue, 31 Mar 2015, Kirill A. Shutemov wrote:
> > >
> > > > Let's use PageAnon() and PageKsm() helpers instead. It helps readability
> > > > and makes page_anon_vma() work correctly on tail pages.
> > >
> > > But it adds a branch due to the use of ||.
> >
> > Which caller is hot enough to care?
> >
>
> It's a surprisingly expensive patch.
>
> text data bss dec hex filename
>
> 19984 1153 15192 36329 8de9 mm/ksm.o-before
> 20028 1153 15216 36397 8e2d mm/ksm.o-after
>
> 14728 116 5168 20012 4e2c mm/rmap.o-before
> 14763 116 5192 20071 4e67 mm/rmap.o-after
>
> 25723 1417 9776 36916 9034 mm/swapfile.o-before
> 25769 1417 9800 36986 907a mm/swapfile.o-after
>
> 197 bytes more text+bss, 125 bytes more text.
>
> (Why the heck do changes like this allegedly affect bss size?)
What about this?
next prev parent reply other threads:[~2015-04-01 11:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-31 11:50 [PATCH] mm: use PageAnon() and PageKsm() helpers in page_anon_vma() Kirill A. Shutemov
2015-03-31 13:11 ` Christoph Lameter
2015-03-31 14:35 ` Kirill A. Shutemov
2015-03-31 20:33 ` Andrew Morton
2015-04-01 11:50 ` Kirill A. Shutemov [this message]
2015-04-01 19:57 ` Andrew Morton
2015-04-01 22:02 ` Kirill A. Shutemov
2015-04-01 22:06 ` Andrew Morton
2015-04-02 11:34 ` Kirill A. Shutemov
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=20150401115054.GB17153@node.dhcp.inet.fi \
--to=kirill@shutemov.name \
--cc=akpm@linux-foundation.org \
--cc=cl@linux.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=koct9i@gmail.com \
--cc=linux-mm@kvack.org \
--cc=riel@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 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.