public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Mike Galbraith <mikeg@wen-online.de>
Cc: Andrew Morton <akpm@zip.com.au>, lkml <linux-kernel@vger.kernel.org>
Subject: Re: -aa VM splitup
Date: Mon, 1 Apr 2002 20:02:02 +0200	[thread overview]
Message-ID: <20020401200202.Q1331@dualathlon.random> (raw)
In-Reply-To: <20020401030207.N1331@dualathlon.random> <Pine.LNX.4.10.10204011405360.270-100000@mikeg.wen-online.de>

On Mon, Apr 01, 2002 at 02:07:23PM +0200, Mike Galbraith wrote:
> On Mon, 1 Apr 2002, Andrea Arcangeli wrote:
> 
> > On Sun, Mar 31, 2002 at 02:26:14PM +0200, Mike Galbraith wrote:
> > > #!/bin/sh
> > > # testo
> > > # /tmp is tmpfs
> > > 
> > > for i in 1 2 3 4 5
> > > do
> > > 	mv /test/linux-2.5.7 /tmp/.
> > > 	mv /tmp/linux-2.5.7 /test/.
> > > done
> > 
> > It would be important to see the /tmp and /test tests benchmarked
> > separately, the way tmpfs and normal filesystem writes to disk is very
> > different and involves different algorithms, so it's not easy to say
> > which one could go wrong by looking at the global result. Just in case:
> > it is very important that the tmpfs contents are exactly the same before
> > starting the two tests. If you load something into /tmp before starting
> > the test performance will be different due the need of additional
> > swapouts.
> > 
> > So I would suggest moving linux-2.5.7 over two normal fs and then just
> > moving it over two tmpfs, so we know what's running slower.
> 
> 2.5.7.virgin
> 
> time testo (mv tree between /test and /usr/local partitions)
> real    10m42.697s
> user    0m5.110s
> sys     1m16.240s
> 
> Bonnie -s 1000
>      -------Sequential Output-------- ---Sequential Input-- --Random--
>      -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
>   MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
> 1000  7197 27.4  8557 12.0  4273  7.3  8049 40.6  9049  8.0 111.5  1.3
> 
> 2.5.7.aa
> 
> time testo
> real    51m17.577s
> user    0m5.680s
> sys     1m15.320s
> 
> Bonnie -s 1000
>      -------Sequential Output-------- ---Sequential Input-- --Random--
>      -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
>   MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
> 1000  5184 19.6  5965  8.9  3081  4.4  8936 45.5  9049  8.1  98.2  1.0
> 
> Egad.  Before I gallop off to look for a merge booboo, let me show you
> what I was looking for with the aa writeout changes ;-)
> 
> 2.4.6.virgin
> 
> time testo
> real    12m12.384s
> user    0m5.280s
> sys     0m54.110s
> 
>      -------Sequential Output-------- ---Sequential Input-- --Random--
>      -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
>   MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
> 1000  8377 31.3 10560 12.3  3236  5.2  7289 36.1  8974  6.7 113.3  1.0
> 
> 2.4.6.flushto
> 
> time testo
> real    9m5.801s
> user    0m5.060s
> sys     0m59.310s
> 
> Bonnie -s 1000
>      -------Sequential Output-------- ---Sequential Input-- --Random--
>      -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
>   MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
> 1000 10553 37.6 11785 13.5  4174  6.5  6785 33.7  8964  6.9 115.7  1.2
> 
> 	pittypatterpittypatter...

comparing 2.4 with 2.5 is a bit unfair, can you try 2.4.19pre5aa1
first? Note that you didn't applied all the vm patches, infact I've no
idea how they apply to 2.5 in the first place (I assume they applied
cleanly).

Also it would be interesting to know how much memory you have in use
before starting the benchmark, it maybe you're triggering some swap
because the VM understand lots of your mappings are unused and that
so you're swapping out during the I/O benchmark because of that. the
anon pages in the lru are meant exactly for that purpose. If you want a
vm that never ever swaps during an I/O benchmark all mapped pages should
not be considered by the vm until we run out of unmapped pages, it's
quite equivalent to raising vm_mapped_ratio to 10000, you can try with
vm_mapped_ratio set to 10000 too infact.

Andrea

  reply	other threads:[~2002-04-01 18:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-20  3:53 -aa VM splitup Andrew Morton
2002-03-31 12:26 ` Mike Galbraith
2002-04-01  1:02   ` Andrea Arcangeli
2002-04-01  1:52     ` Andrew Morton
2002-04-01  2:29       ` Andrea Arcangeli
2002-04-01 12:07     ` Mike Galbraith
2002-04-01 18:02       ` Andrea Arcangeli [this message]
2002-04-01 19:02         ` Mike Galbraith
2002-04-01 23:25           ` Marcelo Tosatti
2002-04-02  4:06             ` Mike Galbraith
2002-04-02  7:28         ` Mike Galbraith
2002-04-02 19:25           ` Andrea Arcangeli
2002-04-03  5:28             ` Mike Galbraith
  -- strict thread matches above, loose matches on Subject: below --
2002-04-03  0:37 Andreas Möller

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=20020401200202.Q1331@dualathlon.random \
    --to=andrea@suse.de \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikeg@wen-online.de \
    /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