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:What kernel version are you using? Also, what is the exact I/O
> 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.
pattern?
_______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs