From: Dave Chinner <david@fromorbit.com>
To: YeYin <eyniy@qq.com>
Cc: xfs <xfs@oss.sgi.com>
Subject: Re: XFS direct IO problem
Date: Wed, 8 Apr 2015 14:49:55 +1000 [thread overview]
Message-ID: <20150408044955.GE15810@dastard> (raw)
In-Reply-To: <tencent_316A3DE769544D99766FE3F1@qq.com>
On Wed, Apr 08, 2015 at 12:21:45PM +0800, YeYin wrote:
> Hi, About 2 months ago, I asked one problem in XFS, see
> here(http://oss.sgi.com/archives/xfs/2015-02/msg00197.html).
>
>
> After that, I use direct IO in MySQL, see
> here(https://dev.mysql.com/doc/refman/5.5/en/innodb-parameters.html#sysvar_innodb_flush_method).
>
>
> However, I found that MySQL performance is still poor sometimes. I
> use some tools(https://github.com/brendangregg/perf-tools) to
> trace the kernel, I found some problems:
<snip>
> This will cause bad performance, even direct IO. I still don't
> understand why not truncate_inode_page called?
Because the cached page must be outside the range of the direct IO
that is in progress - direct IO only tries to flush pages over the
range it is doing the IO over.
> Every time, after I run this: echo 1 > /proc/sys/vm/drop_caches
>
> Immediately enhance performance.
Because that flushes whatever page is in the cache. Can you identify
what offset that cached page is at? Tracing the xfs events will tell
you what pages that operation invalidates on each inode, and knowing
the offset may tell us why that page is not getting flushed.
Alternatively, write a simple C program that deomnstrates the same
problem so we can reproduce it easily, fix the problem and turn it
into a regression test....
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2015-04-08 4:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-08 4:21 XFS direct IO problem YeYin
2015-04-08 4:49 ` Dave Chinner [this message]
2015-04-08 7:05 ` 回复: " YeYin
2015-04-08 21:14 ` Dave Chinner
2015-04-09 2:37 ` 回复: " YeYin
2015-04-09 3:48 ` YeYin
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=20150408044955.GE15810@dastard \
--to=david@fromorbit.com \
--cc=eyniy@qq.com \
--cc=xfs@oss.sgi.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