linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Subject: Re: [PATCH trivial] mm: make get_mm_counter static-inline
Date: Fri, 20 Jan 2012 11:42:38 +0200	[thread overview]
Message-ID: <20120120094238.GA16009@shutemov.name> (raw)
In-Reply-To: <20120119124005.21946.18651.stgit@zurg>

On Thu, Jan 19, 2012 at 04:40:05PM +0400, Konstantin Khlebnikov wrote:
> This patch makes get_mm_counter() always static inline,
> it is simple enough for that. And remove unused set_mm_counter()
> 
> bloat-o-meter:
> 
> add/remove: 0/1 grow/shrink: 4/12 up/down: 99/-341 (-242)
> function                                     old     new   delta
> try_to_unmap_one                             886     952     +66
> sys_remap_file_pages                        1214    1230     +16
> dup_mm                                      1684    1700     +16
> do_exit                                     2277    2278      +1
> zap_page_range                               208     205      -3
> unmap_region                                 304     296      -8
> static.oom_kill_process                      554     546      -8
> try_to_unmap_file                           1716    1700     -16
> getrusage                                    925     909     -16
> flush_old_exec                              1704    1688     -16
> static.dump_header                           416     390     -26
> acct_update_integrals                        218     187     -31
> do_task_stat                                2986    2954     -32
> get_mm_counter                                34       -     -34
> xacct_add_tsk                                371     334     -37
> task_statm                                   172     118     -54
> task_mem                                     383     323     -60
> 
> try_to_unmap_one() grows because update_hiwater_rss() now completely inline.
> 
> Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>

Acked-by: Kirill A. Shutemov <kirill@shutemov.name>

-- 
 Kirill A. Shutemov

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2012-01-20  9:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-19 12:40 [PATCH trivial] mm: make get_mm_counter static-inline Konstantin Khlebnikov
2012-01-20  9:42 ` Kirill A. Shutemov [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=20120120094238.GA16009@shutemov.name \
    --to=kirill@shutemov.name \
    --cc=akpm@linux-foundation.org \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=khlebnikov@openvz.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).