All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wu Fengguang <fengguang.wu@intel.com>
To: Fernando Silveira <fsilveira@gmail.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: I/O and pdflush
Date: Mon, 31 Aug 2009 22:00:06 +0800	[thread overview]
Message-ID: <20090831140006.GA23668@localhost> (raw)
In-Reply-To: <6afc6d4a0908310624j47f9d8c7h47d98ecd95811883@mail.gmail.com>

Hi Fernando,

What's your SSD's IO parameters? Ie. output of this command:

        grep -r . /sys/block/sda/queue/        

Please replace 'sda' with your SSD device name.

Thanks,
Fengguang

On Mon, Aug 31, 2009 at 09:24:20PM +0800, Fernando Silveira wrote:
> On Sat, Aug 29, 2009 at 07:21, Wu Fengguang<fengguang.wu@intel.com> wrote:
> > On Sat, Aug 29, 2009 at 06:12:47PM +0800, Wu Fengguang wrote:
> >> On Sat, Aug 29, 2009 at 05:48:40AM +0800, Fernando Silveira wrote:
> >> > On Sun, Jul 12, 2009 at 05:04, Wu Fengguang<fengguang.wu@intel.com> wrote:
> >> > > On Sat, Jul 11, 2009 at 02:27:25PM -0300, Fernando Silveira wrote:
> >> > >> I'm having a hard time with an application that writes sequentially
> >> > >> 250GB of non-stop data directly to a solid state disk (OCZ SSD CORE
> >> > >> v2) device and I hope you can help me. The command "dd if=/dev/zero
> >> > >> of=/dev/sdc bs=4M" reproduces the same symptoms I'm having and writes
> >> > >> exactly as that application does.
> >>
> >> Sure. Attached is a writeback debug patch. It will generate lots of
> >> kernel messages. You can just stop your klogd, start your workload
> >> and monitor the SSD writeback throughput via tools like iostat/dstat.
> >
> > Fernando, will you post the output of iostat/dstat too? Thanks!
> > The ssd-no_dirty_buffer_with_random_192mb_writes.png is a good overview,
> > however I'd like to also check out the numbers for each second :)
> >
> >> When it goes into the suboptimal 25MB/s state for several seconds, run
> >>         dmesg > dmesg-writeback
> >> and send me the log.
> >>
> >> And it is advised to turn on the kconfig option CONFIG_PRINTK_TIME=y.
> 
> Thanks for your help.
> 
> You can reach in the URL below a tarball which contains the data I
> logged after patching the kernel with only your last patch.
> 
> http://rootshell.be/~swrh/ssd-tests/log-20090831_0908-MK020903042C0001B-prosar_fcc2-bs_4M.tar.gz
> 
> Each file contained in the tarball is described below:
> 
> - log-20090831_0908-MK020903042C0001B-prosar_fcc2-bs_4M-{0-ddv,1-table,2-plot}.*
>   Logging statistics. The "0-ddv" file is the log of a modified
> version of the dd(1) utility to print writing statistics after every
> write(2), "1-table" is a table version of the "0-ddv" file parsed with
> awk(1) and "2-plot" is the a plot image of the writing statistics.
> 
> - log-20090831_0908-MK020903042C0001B-prosar_fcc2-bs_4M-0-dstat.log
>   The result of "dstat > dstat.log" executed ~3 seconds after "ddv" started.
> 
> - log-20090831_0908-MK020903042C0001B-prosar_fcc2-bs_4M-0-iostat.log
>   The result of "iostat 1 > iostat.log" executed ~15 seconds after
> "ddv" started.
> 
> - log-20090831_0908-MK020903042C0001B-prosar_fcc2-bs_4M-0-dmesg_writeback_{1..67}.log
>   The result of "for i in {1..67}; do dmesg > dmesg-writeback-$i.log;
> sleep 1; done" executed when "ddv" had written about 42GB of data.
> 
> - log-20090831_0908-MK020903042C0001B-prosar_fcc2-bs_4M-0-dmesg_writeback_{100..186}.log
>   The result of "for i in {100..186}; do dmesg >
> dmesg-writeback-$i.log; sleep 1; done" executed when "ddv" had written
> about 51GB of data.
> 
> Please tell me if you need anything else. I could make a more
> synchronized or informative logging output if you need.
> 
> Best regards,
> 
> -- 
> Fernando Silveira <fsilveira@gmail.com>

  reply	other threads:[~2009-08-31 14:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-11 17:27 I/O and pdflush Fernando Silveira
2009-07-12  8:04 ` Wu Fengguang
2009-08-28 21:48   ` Fernando Silveira
2009-08-29 10:12     ` Wu Fengguang
2009-08-29 10:21       ` Wu Fengguang
2009-08-31 13:24         ` Fernando Silveira
2009-08-31 14:00           ` Wu Fengguang [this message]
2009-08-31 14:01             ` Wu Fengguang
2009-08-31 14:07               ` Wu Fengguang
2009-08-31 14:33                 ` Fernando Silveira
2009-09-01  8:14                   ` Wu Fengguang
     [not found]                     ` <6afc6d4a0909010710l2cf77fbbmb1ab192ed12a7efc@mail.gmail.com>
2009-09-02  3:05                       ` Wu Fengguang
     [not found]                         ` <6afc6d4a0909020429l2bfecee9xd00527fcaa323751@mail.gmail.com>
     [not found]                           ` <20090902125057.GA7982@localhost>
     [not found]                             ` <6afc6d4a0909031346qda0b17coe4c60250fcac827f@mail.gmail.com>
2009-09-04  2:21                               ` Wu Fengguang
2009-09-04  2:34                                 ` Wu Fengguang
     [not found] <cWOyL-3Ys-15@gated-at.bofh.it>
2009-08-31 21:57 ` Daniel J Blueman
2009-09-01 14:33   ` Fernando Silveira

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=20090831140006.GA23668@localhost \
    --to=fengguang.wu@intel.com \
    --cc=fsilveira@gmail.com \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.