concurrent direct IO write in xfs

Zheng Da zhengda1936 at gmail.com
Mon Jan 16 13:44:30 CST 2012


Hello Christoph,

Right now I'm using kernel 3.2.
My test program writes 4G of data to a file that has been preallocated and
each time it writes a page of data randomly to the file. It's always
overwriting, and no appending. The offset of each write is always aligned
to the page size. There is no overlapping between writes as I said before.
I also tried mixing reads and writes and got the similar result.
Can you write data to a file with multiple threads and the performance can
scale up with more threads?

Thanks,
Da

On Mon, Jan 16, 2012 at 12:48 PM, Christoph Hellwig <hch at infradead.org>wrote:

> On Sun, Jan 15, 2012 at 07:01:42PM -0500, Zheng Da wrote:
> > Hello,
> >
> > I surprisedly found that writing data to a file (no appending) with
> direct
> > IO and with multiple threads has the same performance as a single thread.
> > Actually, it seems there is only one core is working at a time. In my
> case,
> > each time I write a page to a file and the offset is always aligned to
> the
> > page size, so there is no overlapping between writes.
>
> What kernel version are you using?  Also, what is the exact I/O
> pattern?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20120116/2a097a49/attachment.htm>


More information about the xfs mailing list