linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Daniel Lowengrub <lowdanie@gmail.com>,
	linux-mm@kvack.org, a.p.zijlstra@chello.nl,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] mm: use list.h for vma list
Date: Wed, 11 Mar 2009 11:52:10 +0100	[thread overview]
Message-ID: <20090311105210.GB2282@elte.hu> (raw)
In-Reply-To: <20090311104018.GA2376@x200.localdomain>


* Alexey Dobriyan <adobriyan@gmail.com> wrote:

> On Wed, Mar 11, 2009 at 11:55:48AM +0200, Daniel Lowengrub wrote:
> > Use the linked list defined list.h for the list of vmas that's stored
> > in the mm_struct structure.  Wrapper functions "vma_next" and
> > "vma_prev" are also implemented.  Functions that operate on more than
> > one vma are now given a list of vmas as input.
> 
> > Signed-off-by: Daniel Lowengrub
> 
> That's not how S-o-b line should look like.
> 
> > --- linux-2.6.28.7.vanilla/arch/alpha/kernel/osf_sys.c
> > +++ linux-2.6.28.7/arch/alpha/kernel/osf_sys.c
> > @@ -1197,7 +1197,7 @@
> >  		if (!vma || addr + len <= vma->vm_start)
> >  			return addr;
> >  		addr = vma->vm_end;
> > -		vma = vma->vm_next;
> > +		vma = vma_next(vma);
> 
> Well, this bloats both mm_struct and vm_area_struct.

here's some hard numbers from an earlier submission:

| I made a script that runs 'time ./mmap-perf' 100 times and 
| outputs the average.
|
| The output on the standard kernel was:
|
|   real: 1.022600
|   user: 0.135900
| system: 0.852600
|
| The output after the patch was:
|
|   real: 0.815400
|   user: 0.113200
| system: 0.622200

Which is a 25% speedup in MM performance - which looks very 
significant.

Note: i have not repeated the measurements, and it still looks a 
bit too good - i'd have expected if there's such a low hanging 
25% fruit in the MM we'd have fixed it already.

( Daniel - please preserve such measurements in changelogs. )

	Ingo

--
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>

  reply	other threads:[~2009-03-11 10:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-11  9:55 Daniel Lowengrub
2009-03-11 10:40 ` Alexey Dobriyan
2009-03-11 10:52   ` Ingo Molnar [this message]
2009-03-11 11:54 ` Nick Piggin
2009-03-11 13:25   ` Daniel Lowengrub
2009-03-12  3:00     ` Nick Piggin
2009-03-12  8:32   ` KOSAKI Motohiro
2009-03-12  9:58 ` Peter Zijlstra
2009-04-02  9:56   ` Daniel Lowengrub

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=20090311105210.GB2282@elte.hu \
    --to=mingo@elte.hu \
    --cc=a.p.zijlstra@chello.nl \
    --cc=adobriyan@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lowdanie@gmail.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