[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120129111645.GA5839@localhost>
Date: Sun, 29 Jan 2012 19:16:45 +0800
From: Wu Fengguang <wfg@...ux.intel.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Herbert Poetzl <herbert@...hfloor.at>,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>,
Jens Axboe <axboe@...nel.dk>, Tejun Heo <tj@...nel.org>
Subject: Re: Bad SSD performance with recent kernels
On Sun, Jan 29, 2012 at 11:03:00AM +0100, Eric Dumazet wrote:
> Le dimanche 29 janvier 2012 à 13:59 +0800, Wu Fengguang a écrit :
>
> > What's the block size? If it's < 4k, performance might be hurt.
> >
> > blockdev --getbsz /dev/sda
> >
>
> # blockdev --getbsz /dev/sda
> 4096
OK, it's normal value.
> > > FYI, I started a bisection.
> >
> > Thank you! If the bisection would take much human time, it should be
> > easier to collect some blktrace data on reading /dev/sda for analyzes.
> >
>
> Very strange, my bissection ended on following commit :
>
> commit 805f6b5e1cbfedfb9b3d354013e7f4b13a79270f
> Author: Tao Ma <boyu.mt@...bao.com>
> Date: Fri Mar 11 20:11:59 2011 +0100
>
> blktrace: Use rq->cmd_flags directly in blk_add_trace_rq.
>
>
>
> This makes no sense.
Yup.
> hdparm uses 2MB block reads, so read_ahead (128KB) is too small for best
> perf
Right. In another thread, we are considering raising the default
readahead size to 1MB.
Note that as long as buffered read(2) is used, it makes almost no
difference (well, at least for now) to do "dd bs=128k" or "dd bs=2MB":
the 128kb readahead size will be used underneath to submit read IO.
> # cat /sys/class/block/sda/queue/read_ahead_kb
> 128
>
> # dd if=/dev/sda of=/dev/null bs=128k
> ^C
> 63744+0 enregistrements lus
> 63743+0 enregistrements écrits
> 8354922496 octets (8,4 GB) copiés, 39,975 s, 209 MB/s
>
> # hdparm -t /dev/sda
>
> /dev/sda:
> Timing buffered disk reads: 510 MB in 3.00 seconds = 169.75 MB/sec
Interesting, hdparm gets lower throughput than dd.
> # uname -a
> Linux edumazet-laptop 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20
> 17:23:00 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Thanks,
Fengguang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists