Re: [RFC v3] ext4: Combine barrier requests coming from fsync

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Dilger
Date: Monday, August 9, 2010 - 2:19 pm

On 2010-08-09, at 15:53, Darrick J. Wong wrote:

You shouldn't use a fixed delay for the thread.  500us _seems_ reasonable, if you have a single HDD.  If you have an SSD, or an NVRAM-backed array, then 2000 IOPS is a serious limitation.

What is done in the JBD2 code is to scale the commit sleep interval based on the average commit time.  In fact, the ext4_force_commit-> ...->jbd2_journal_force_commit() call will itself be waiting in the jbd2 code to merge journal commits.  It looks like we are duplicating some of this machinery in ext4_sync_file() already.

It seems like a better idea to have a single piece of code to wait to merge the IOs.  For the non-journal ext4 filesystems it should implement the wait for merges explicitly, otherwise it should defer the wait to jbd2.

Cheers, Andreas





--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC v3] ext4: Combine barrier requests coming from fsync, Darrick J. Wong, (Mon Aug 9, 12:53 pm)
Re: [RFC v3] ext4: Combine barrier requests coming from fsync, Christoph Hellwig, (Mon Aug 9, 2:07 pm)
Re: [RFC v3] ext4: Combine barrier requests coming from fsync, Andreas Dilger, (Mon Aug 9, 2:19 pm)
[RFC v4] ext4: Coordinate fsync requests, Darrick J. Wong, (Wed Aug 18, 7:14 pm)
Re: [RFC v3] ext4: Combine barrier requests coming from fsync, Christoph Hellwig, (Thu Aug 19, 1:53 am)
Re: Performance testing of various barrier reduction patch ..., Christoph Hellwig, (Tue Oct 12, 7:14 am)
Re: Performance testing of various barrier reduction patch ..., Christoph Hellwig, (Fri Oct 15, 4:40 pm)
Re: Performance testing of various barrier reduction patch ..., Christoph Hellwig, (Tue Oct 19, 11:28 am)