From: Jens Axboe <jaxboe@fusionio.com>
To: Steven Lang <tirea@google.com>
Cc: fio@vger.kernel.org
Subject: Re: A commented out optimization...
Date: Wed, 1 Feb 2012 09:22:06 +0100 [thread overview]
Message-ID: <4F28F62E.4060708@fusionio.com> (raw)
In-Reply-To: <CAAUT-yNTJGUircBV+P3CD3FuozBfTfwLgLwu+JpsED4dTMnNKA@mail.gmail.com>
On 02/01/2012 02:40 AM, Steven Lang wrote:
> In comparing the performance between older versions of fio and newer
> versions, I noticed right away that pattern writes were slower in fio
> 2.0.1. Running perf showed that most of the time spent in fio was in
> fill_pattern (Over 50% of the CPU time), which was not the case in the
> past.
>
> This seems like it is worth it to have around, however a year ago it
> was commented out with the following commit log:
>
> Author: Jens Axboe <jaxboe@fusionio.com> 2011-01-14 06:32:30
> Committer: Jens Axboe <jaxboe@fusionio.com> 2011-01-14 06:32:30
> Parent: 9a793c2f91a47df348237f1a9b778253ca87ec2e (Fix race in exit of
> eta/util thread)
> Child: 69204d6e8830464bc98fcc28ca91412d6d360775 (Eta/disk thread uses
> more than the minimum stack)
> Branches: continue_on_error_type_2, master, remotes/origin/master,
> remotes/origin/stable-1.x
> Follows: fio-1.50-rc2
> Precedes: fio-1.50-rc3
>
> Comment out ->buf_filled_len in pattern fill
>
> It's buggy, needs to be debugged. Disable for now. It can cause
> verify failures.
>
> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
>
> And in the code the comments say "We need to ensure that the pattern
> stores are seen before the fill length store, or we could observe
> headers that aren't valid to the extent notified by the fill length".
>
> However I'm having trouble imaging a case when that will happen, given
> that buffers are filled and consumed within the context of a single
> thread.
That's not always the case, if you are using async verifies you can have
multiple threads/CPUs looking at the same buffers.
> Do you happen to remember what sort of case was buggy and causing this
> to fail?
Let me see if I can find the thread... OK, here it is:
http://www.spinics.net/lists/fio/msg00538.html
I think the issue just dropped off the debug todo. I'd appreciate your
input :-)
--
Jens Axboe
next prev parent reply other threads:[~2012-02-01 8:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 1:40 A commented out optimization Steven Lang
2012-02-01 8:22 ` Jens Axboe [this message]
2012-02-01 21:46 ` Steven Lang
2012-02-02 8:03 ` Jens Axboe
2012-02-02 19:13 ` Steven Lang
2012-02-02 19:16 ` Jens Axboe
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=4F28F62E.4060708@fusionio.com \
--to=jaxboe@fusionio.com \
--cc=fio@vger.kernel.org \
--cc=tirea@google.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