Skip to contentSkip to conversation

fsync performance of reiser 4

DISCUSSION Sandeep Tyagi 6 participants 13 messages Aug 25, 2005 – Aug 29, 2005 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi -
Does anybody any idea whether reiserfs people are working on improvement of fsync performance of Reiser 4.
We have an application in which we use lot of fsyncs so we are planning to Reiser 4 if it gives good performance with fsync.
Thanks

Signature · 3 lines
-----------
S K T
-----------
#1 lore raw

Hello

Quoted 3 lines · Sandeep Tyagi

Hi -
Does anybody any idea whether reiserfs people are working on improvement of fsync performance of Reiser 4.

do you have any measurements already?

Quoted 8 lines

We have an application in which we use lot of fsyncs so we are planning to Reiser 4 if it gives good performance with fsync.
Thanks

Signature · 3 lines
-----------
S K T
-----------
#2 lore raw

I have a file system benchmark that we use to measure synchronous file writing using different synch techniques.

I will be happy to share it if there is interest,

Ric

Quoted 28 lines · Vladimir V. Saveliev

Hello

Quoted 5 lines · Sandeep Tyagi

Hi -
Does anybody any idea whether reiserfs people are working on improvement of fsync performance of Reiser 4.

do you have any measurements already?

Quoted 10 lines

We have an application in which we use lot of fsyncs so we are planning to Reiser 4 if it gives good performance with fsync.
Thanks

Signature · 3 lines
-----------
S K T
-----------
#3 lore raw
Quoted 4 lines · Ric Wheeler

I have a file system benchmark that we use to measure synchronous file writing using different synch techniques.

I will be happy to share it if there is interest,

I am interested.

Thanks,

Grzegorz Kulewski

#4 lore raw
Quoted 6 lines · Grzegorz Kulewski
Quoted 4 lines · Ric Wheeler

I have a file system benchmark that we use to measure synchronous file writing using different synch techniques.

Quoted 7 lines
Quoted 1 line

I will be happy to share it if there is interest,

I am interested.

Thanks,

Grzegorz Kulewski

m2. will it be GPL'ed and put on SF.net or other similar sites?

Thanks!

ming

#5 lore raw

It is GPL'ed and has been posted at the project doubt website (which needs updating, http://developer.osdl.jp/projects/doubt/). I will resend it directly to Ming and Grzegorz, but am not sure how best to share it with the whole list.

Ric

Quoted 32 lines · Ming Zhang
Quoted 6 lines · Grzegorz Kulewski
Quoted 2 lines · Ric Wheeler

I have a file system benchmark that we use to measure synchronous file writing using different synch techniques.

Quoted 10 lines
Quoted 3 lines

I will be happy to share it if there is interest,

I am interested.

Thanks,

Grzegorz Kulewski

m2. will it be GPL'ed and put on SF.net or other similar sites?

Thanks!

ming

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw

Re: fs_mark benchmark - update

I use it to benchmark (mostly) synchronous file writing.

For example, a typical run might be to completely fill a file system with 50k files using the default (write one file, fsync one file) method and then compare that run to one which uses a varying number of concurrent threads.

Data journal mode is slightly faster for small files, but is twice as slow for large files (as expected).

We have observed the best results in 2.6 reiserfs3 when running 4-8 threads per disk, using multiple subdirectories. In 2.4, using a single subdirectory on reiser was better than using multiple subdirectories.

The validation of the write barrier case test is a simple one - if you write single threaded, then a properly configured file system with write barrier enabled should be some reasonable match to the speed of the disk. For us, that is typically around 40 50k files/sec with S-ATA drives or P-ATA drives.

It is also interesting to compare reiserfs vs ext3 when writing single threaded across the life span of a file system - reiserfs typically beats ext3 for most cases, but ext3 eventually catches up as the percentage used grows.

I hope to rerun on reiserfs4 and the new ext3 in the next few weeks,

Regards,

Ric

Quoted 16 lines · Ming Zhang

have a quick check on u site and it is interesting.

but this is more like a validation tool instead of performance benchmark tool. or your code will report how many sync IOPS it gets and then we validate with our own HW spec.

i should ask this after running the code i guess. :) but eager to know answer.

ming

#9 lore raw

Re: fs_mark benchmark - update

Quoted 20 lines · Ric Wheeler

I use it to benchmark (mostly) synchronous file writing.

For example, a typical run might be to completely fill a file system with 50k files using the default (write one file, fsync one file) method and then compare that run to one which uses a varying number of concurrent threads.

Data journal mode is slightly faster for small files, but is twice as slow for large files (as expected).

We have observed the best results in 2.6 reiserfs3 when running 4-8 threads per disk, using multiple subdirectories. In 2.4, using a single subdirectory on reiser was better than using multiple subdirectories.

The validation of the write barrier case test is a simple one - if you write single threaded, then a properly configured file system with write barrier enabled should be some reasonable match to the speed of the disk. For us, that is typically around 40 50k files/sec with S-ATA drives or P-ATA drives.

Quoted 5 lines

It is also interesting to compare reiserfs vs ext3 when writing single threaded across the life span of a file system - reiserfs typically beats ext3 for most cases, but ext3 eventually catches up as the percentage used grows.

this is interesting. looks like a file system aging problem. does this because of the fragmentation?

Quoted 2 lines

I hope to rerun on reiserfs4 and the new ext3 in the next few weeks,

looking forward to seeing.

what u mean new ext3?

thanks!

ming

Quoted 23 lines

Regards,

Ric

Quoted 16 lines · Ming Zhang

have a quick check on u site and it is interesting.

but this is more like a validation tool instead of performance benchmark tool. or your code will report how many sync IOPS it gets and then we validate with our own HW spec.

i should ask this after running the code i guess. :) but eager to know answer.

ming

#10 lore raw

Re: fs_mark benchmark - update

Quoted 13 lines · Ming Zhang
Quoted 10 lines · Ric Wheeler

I use it to benchmark (mostly) synchronous file writing.

For example, a typical run might be to completely fill a file system with 50k files using the default (write one file, fsync one file) method and then compare that run to one which uses a varying number of concurrent threads.

Data journal mode is slightly faster for small files, but is twice as slow for large files (as expected).

We have observed the best results in 2.6 reiserfs3 when running 4-8 threads per disk, using multiple subdirectories. In 2.4, using a single subdirectory on reiser was better than using multiple subdirectories.

The validation of the write barrier case test is a simple one - if you write single threaded, then a properly configured file system with write barrier enabled should be some reasonable match to the speed of the disk. For us, that is typically around 40 50k files/sec with S-ATA drives or P-ATA drives.

Quoted 9 lines
Quoted 4 lines

It is also interesting to compare reiserfs vs ext3 when writing single threaded across the life span of a file system - reiserfs typically beats ext3 for most cases, but ext3 eventually catches up as the percentage used grows.

this is interesting. looks like a file system aging problem. does this because of the fragmentation?

I think that this is because of the depth and size of the tree. We have very large volumes (up to 300GB) - if your file systems are smaller, then the degradation is not as large.

Quoted 12 lines
Quoted 6 lines

I hope to rerun on reiserfs4 and the new ext3 in the next few weeks,

looking forward to seeing.

what u mean new ext3?

I should have said "new patches to ext3". At OLS, there was a talk describing this work - you can get the proceedings from linuxsymposium.org:

http://www.linuxsymposium.org/2005/view_abstract.php?content_key=90

Quoted 5 lines

thanks!

ming

#11 lore raw

Re: fs_mark benchmark - update

Quoted 13 lines · Ric Wheeler
Quoted 10 lines · Ming Zhang
Quoted 7 lines · Ric Wheeler

It is also interesting to compare reiserfs vs ext3 when writing single threaded across the life span of a file system - reiserfs typically beats ext3 for most cases, but ext3 eventually catches up as the percentage used grows.

Quoted 9 lines
Quoted 4 lines

this is interesting. looks like a file system aging problem. does this because of the fragmentation?

I think that this is because of the depth and size of the tree. We have very large volumes (up to 300GB) - if your file systems are smaller, then the degradation is not as large.

so will this be a scalability problem? all because we have 4KB block size instead of using 64KB block size and pack small data using that "tail" option?

500GB SATA is easy to buy and TB storage is not a dream at all. so this will be a problem.

Quoted 10 lines
Quoted 4 lines

what u mean new ext3?

I should have said "new patches to ext3". At OLS, there was a talk describing this work - you can get the proceedings from linuxsymposium.org:

http://www.linuxsymposium.org/2005/view_abstract.php?content_key=90

ic. thanks!

ming

#12 lore raw

Re: fs_mark benchmark - update

In reply to Ric Wheeler

reiser4 will suck at fsync performance, I guarantee it. fsync is completely unoptimized. It works reliably, but it will be slow.

The suckage is all eminently fixable, but not before vanilla inclusion is resolved will we address it.

#13 lore raw

Re: fs_mark benchmark - update

Since you still are in the thinking stage, there are some neat tricks that you might be able to do in this space ;-)

One thing that I think might be very interesting is to export some of the transaction like semantics explicitely to applications to allow a type of bulk async fsync. For example, I am untarring a 10,000 file set into a directory - you want a hard promise that it is all on disk, but you really don't need that promise until the end of the application. If the application could flag the start of this kind of batch and then wait or kick off a group fsync at the end, you could really boost your performance.

The benchmark has some kludgy support for testing this kind of sync performance through the "-S X" flag. When X==0, you don't sync, when it is 1 you do the file at a time fsync, and then it does some other combinations that work well on reiserfs. By simply delaying the fsync() stage into a separate iteration over the file set, you can approach the non-fsynced behavior ;-)

ric

Quoted 7 lines · Hans Reiser

reiser4 will suck at fsync performance, I guarantee it. fsync is completely unoptimized. It works reliably, but it will be slow.

The suckage is all eminently fixable, but not before vanilla inclusion is resolved will we address it.

#14 lore raw

Re: fs_mark benchmark - update

Quoted 4 lines · Ric Wheeler

Since you still are in the thinking stage, there are some neat tricks that you might be able to do in this space ;-)

Quoted 8 lines

One thing that I think might be very interesting is to export some of the transaction like semantics explicitely to applications to allow a type of bulk async fsync. For example, I am untarring a 10,000 file set into a directory - you want a hard promise that it is all on disk, but you really don't need that promise until the end of the application. If the application could flag the start of this kind of batch and then wait or kick off a group fsync at the end, you could really boost your performance.

Yes, that was our idea. It needs just a little bit of API coding.... and it will be there..... but of course we are all focused on getting ready for the merge.

Quoted 21 lines

The benchmark has some kludgy support for testing this kind of sync performance through the "-S X" flag. When X==0, you don't sync, when it is 1 you do the file at a time fsync, and then it does some other combinations that work well on reiserfs. By simply delaying the fsync() stage into a separate iteration over the file set, you can approach the non-fsynced behavior ;-)

ric

Quoted 6 lines · Hans Reiser

reiser4 will suck at fsync performance, I guarantee it. fsync is completely unoptimized. It works reliably, but it will be slow. The suckage is all eminently fixable, but not before vanilla inclusion is resolved will we address it.