public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paolo Ornati <ornati@lycos.it>
To: Ram Pai <linuxram@us.ibm.com>, Andrew Morton <akpm@osdl.org>
Cc: gandalf@wlug.westbo.se, linux-kernel@vger.kernel.org
Subject: Re: Strange IDE performance change in 2.6.1-rc1 (again)
Date: Sat, 10 Jan 2004 15:48:33 +0100	[thread overview]
Message-ID: <200401101548.33458.ornati@lycos.it> (raw)
In-Reply-To: <1073675705.14637.8.camel@dyn319250.beaverton.ibm.com>

On Friday 09 January 2004 20:15, Ram Pai wrote:
> On Thu, 2004-01-08 at 17:17, Andrew Morton wrote:
> > Ram Pai <linuxram@us.ibm.com> wrote:
> > > Well this is my theory, somebody should validate it,
> >
> > One megabyte seems like far too litte memory to be triggering the
> > effect which you describe.  But yes, the risk is certainly there.
> >
> > You could verify this with:
>
> I cannot exactly reproduce what Pualo Ornati is seeing.
>
> Pualo: Request you to validate the following,
>
> 1) see whether you see a regression with files replacing the
>    cat command in your script with
>        dd if=big_file of=/dev/null bs=1M count=256
>
> 2) and if you do, check if you see a bunch of 'eek' with Andrew's
>         following patch. (NOTE: without reverting the changes
>         in filemap.c)
>
> -------------------------------------------------------------------------
>-
>
> --- 25/mm/filemap.c~a   Thu Jan  8 17:15:57 2004
> +++ 25-akpm/mm/filemap.c        Thu Jan  8 17:16:06 2004
> @@ -629,8 +629,10 @@ find_page:
>                         handle_ra_miss(mapping, ra, index);
>                         goto no_cached_page;
>                 }
> -               if (!PageUptodate(page))
> +               if (!PageUptodate(page)) {
> +                       printk("eek!\n");
>                         goto page_not_up_to_date;
> +               }
>  page_ok:
>                 /* If users can be writing to this page using arbitrary
>                  * virtual addresses, take care about potential aliasing
>
> -------------------------------------------------------------------------

Ok, this patch seems for -mm tree... I have applied it by hand (on a vanilla 
2.6.1-rc1).

For my tests I've used this script:

#!/bin/sh

RA_VALS="256 128 64"
FILE="/big_file"
SIZE=`stat -c '%s' $FILE`
NR_TESTS="3"
LINUX=`uname -r`

echo "HD test for Penguin $LINUX"

killall5
sync
sleep 3

for ra in $RA_VALS; do
    hdparm -a $ra /dev/hda
    for i in `seq $NR_TESTS`; do
    echo "_ _ _ _ _ _ _ _ _"
	./fadvise $FILE 0 $SIZE dontneed
	time dd if=$FILE of=/dev/null bs=1M count=256
    done
    echo "________________________________"
done


RESULTS (2.6.0 / 2.6.1-rc1)

HD test for Penguin 2.6.0

/dev/hda:
 setting fs readahead to 256
 readahead    = 256 (on)
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m11.427s
user	0m0.002s
sys	0m1.722s
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m11.963s
user	0m0.000s
sys	0m1.760s
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m11.291s
user	0m0.001s
sys	0m1.713s
________________________________

/dev/hda:
 setting fs readahead to 128
 readahead    = 128 (on)
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m9.910s
user	0m0.003s
sys	0m1.882s
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m9.693s
user	0m0.003s
sys	0m1.860s
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m9.733s
user	0m0.004s
sys	0m1.922s
________________________________

/dev/hda:
 setting fs readahead to 64
 readahead    = 64 (on)
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m9.107s
user	0m0.000s
sys	0m2.026s
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m9.227s
user	0m0.004s
sys	0m1.984s
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m9.152s
user	0m0.002s
sys	0m2.013s
________________________________


HD test for Penguin 2.6.1-rc1

/dev/hda:
 setting fs readahead to 256
 readahead    = 256 (on)
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m11.984s
user	0m0.002s
sys	0m1.751s
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m11.704s
user	0m0.002s
sys	0m1.766s
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m11.886s
user	0m0.002s
sys	0m1.731s
________________________________

/dev/hda:
 setting fs readahead to 128
 readahead    = 128 (on)
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m11.120s
user	0m0.001s
sys	0m1.830s
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m11.596s
user	0m0.005s
sys	0m1.764s
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m11.481s
user	0m0.002s
sys	0m1.727s
________________________________

/dev/hda:
 setting fs readahead to 64
 readahead    = 64 (on)
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m11.361s
user	0m0.006s
sys	0m1.782s
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m11.655s
user	0m0.002s
sys	0m1.778s
_ _ _ _ _ _ _ _ _
256+0 records in
256+0 records out

real	0m11.369s
user	0m0.004s
sys	0m1.798s
________________________________


As you can see 2.6.0 performances increase setting readahead from 256 to 64 
(64 seems to be the best value) while 2.6.1-rc1 performances don't change 
too much.

I noticed that on 2.6.0 with readahead setted at 256 the HD LED blinks 
during the data transfer while with lower values (128 / 64) it stays on.
Instead on 2.6.1-rc1 HD LED blinks with almost any values (I must set it at 
8 to see it stable on).

ANSWERS:

1) YES... I see a regression with files ;-(

2) YES, I see also a bunch of "eek!" (a mountain of "eek!")

Bye

-- 
	Paolo Ornati
	Linux v2.4.24


  parent reply	other threads:[~2004-01-10 14:49 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-02 16:02 Strange IDE performance change in 2.6.1-rc1 (again) Paolo Ornati
2004-01-02 18:08 ` Ed Sweetman
2004-01-02 21:04   ` Paolo Ornati
2004-01-02 21:27     ` Valdis.Kletnieks
2004-01-03 10:20       ` Paolo Ornati
2004-01-02 21:32     ` Mike Fedyk
2004-01-02 22:34       ` Martin Josefsson
2004-01-03 11:13         ` Paolo Ornati
2004-01-03 22:40           ` Andrew Morton
2004-01-04 14:30             ` Paolo Ornati
2004-01-05 23:19               ` Ram Pai
2004-01-07 14:59                 ` Paolo Ornati
2004-01-07 19:23                   ` Ram Pai
2004-01-07 20:12                     ` Paolo Ornati
2004-01-07 23:57                       ` Andrew Morton
2004-01-08  7:31                         ` Ram Pai
2004-01-09  1:05                         ` Ram Pai
2004-01-09  1:17                           ` Andrew Morton
2004-01-09 19:15                             ` Ram Pai
2004-01-09 19:44                               ` Andrew Morton
2004-01-10 14:48                               ` Paolo Ornati [this message]
2004-01-10 16:00                                 ` Ed Sweetman
2004-01-10 16:19                                   ` Ed Sweetman
2004-01-10 17:29                                     ` Paolo Ornati
2004-01-10 17:29                                   ` Paolo Ornati
2004-03-29 15:45               ` Ram Pai
2004-01-04 17:15             ` Buffer and Page cache coherent? was: " Mike Fedyk
2004-01-04 22:10               ` Andrew Morton
2004-01-04 23:22                 ` Mike Fedyk
2004-01-04 23:32                   ` Andrew Morton
2004-01-04 23:45                     ` Mike Fedyk
2004-01-05  0:23                       ` Andrew Morton
2004-01-03 10:20       ` Paolo Ornati
2004-01-03  3:33     ` Tobias Diedrich
2004-01-03  4:15       ` Valdis.Kletnieks
2004-01-03 13:39         ` Tobias Diedrich
2004-01-03 20:56           ` Tobias Diedrich
2004-01-04  3:02         ` jw schultz

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=200401101548.33458.ornati@lycos.it \
    --to=ornati@lycos.it \
    --cc=akpm@osdl.org \
    --cc=gandalf@wlug.westbo.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxram@us.ibm.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