xfs
[Top] [All Lists]

Re: concurrent direct IO write in xfs

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: concurrent direct IO write in xfs
From: Zheng Da <zhengda1936@xxxxxxxxx>
Date: Mon, 16 Jan 2012 14:44:30 -0500
Cc: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=M862dDcAjIpALZXjhxVqoMN+tJgsdBkTqIrc1Otlghw=; b=qHI5cv7XaYg5f6GcZZ4G55Ry+gG8EMjk5abv8Yks/vzSCizacYYN6mqPRZAqshlllP e6dyNta3MBpUbPKSr5tSMI1HPhqiE+EVohQqizGCGb1MKdSzFVTeZBXyvYkFhtJx+ZN1 GUEA8ROE1YOJ/bTZAI+xdcfSxN0dBUhuJykMI=
In-reply-to: <20120116174819.GA19417@xxxxxxxxxxxxx>
References: <CAFLer83FBZG9ZCrT2jUZBcTC2a2tx_CDmykyPF4cTP0dbHGw7Q@xxxxxxxxxxxxxx> <20120116174819.GA19417@xxxxxxxxxxxxx>
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@xxxxxxxxxxxxx> 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?


<Prev in Thread] Current Thread [Next in Thread>