Re: Performance of ext4

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Theodore Tso
Date: Thursday, June 19, 2008 - 10:42 am

On Thu, Jun 19, 2008 at 11:41:17AM -0500, Eric Sandeen wrote:

From what Holger described, it's doubtful that the bug is in the
truncate operation.  It sounds like i_size is actually dropping in
size at some pointer long after the file was written.  If I had to
guess the value in the inode cache is correct; and perhaps so is the
value on the journal.  But somehow, the wrong value is getting written
to disk (remember the jbd layer can keep up to three different
versions of filesystem metadata in memory, because most of the time we
don't block modifications to the filesystem while we are in the middle
of writing a previous commit to disk).  So depending on whether the
inode gets redirtied or not, the inconsistency could self-heal, and if
the inode never gets pushed out of memory due to memory pressure, the
problem might not be noticed until the system reboots or the
filesystem is unmounted.

This is one of the reasons why I'm a bit suspicious that the problem
may lie in the delayed allocation code; changing i_size without first
starting a transaction could lead to this sort of problem, for
example, and the delayed allocation could represent a different code
path where file blocks get allocated and i_size gets changed.

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

Messages in current thread:
Performance of ext4, Holger Kiehl, (Wed Jun 11, 1:02 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Wed Jun 11, 3:59 am)
Re: Performance of ext4, Theodore Tso, (Wed Jun 11, 6:54 am)
Re: Performance of ext4, Holger Kiehl, (Wed Jun 11, 12:58 pm)
Re: Performance of ext4 , Nick Dokos, (Wed Jun 11, 1:17 pm)
Re: Performance of ext4, Holger Kiehl, (Wed Jun 11, 1:21 pm)
Re: Performance of ext4, Theodore Tso, (Wed Jun 11, 6:35 pm)
Re: Performance of ext4 , Holger Kiehl, (Thu Jun 12, 2:02 am)
Re: Performance of ext4 , Solofo.Ramangalahy, (Thu Jun 12, 3:58 am)
Re: Performance of ext4 , Holger Kiehl, (Thu Jun 12, 5:00 am)
Re: Performance of ext4, Theodore Tso, (Thu Jun 12, 6:19 am)
Re: Performance of ext4, Holger Kiehl, (Thu Jun 12, 7:07 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Thu Jun 12, 11:06 am)
Re: Performance of ext4, Holger Kiehl, (Thu Jun 12, 12:50 pm)
Re: Performance of ext4, Holger Kiehl, (Fri Jun 13, 1:05 am)
Re: Performance of ext4, Jan Kara, (Mon Jun 16, 10:54 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 16, 11:13 am)
Re: Performance of ext4, Holger Kiehl, (Tue Jun 17, 4:42 am)
Re: Performance of ext4, Holger Kiehl, (Tue Jun 17, 10:58 pm)
Re: Performance of ext4, Andreas Dilger, (Wed Jun 18, 11:58 pm)
Re: Performance of ext4, Theodore Tso, (Thu Jun 19, 4:09 am)
Re: Performance of ext4, Holger Kiehl, (Thu Jun 19, 8:04 am)
Re: Performance of ext4, Theodore Tso, (Thu Jun 19, 8:56 am)
Re: Performance of ext4, Eric Sandeen, (Thu Jun 19, 9:41 am)
Re: Performance of ext4, Theodore Tso, (Thu Jun 19, 10:42 am)
Re: Performance of ext4, Mingming, (Thu Jun 19, 12:51 pm)
Re: Performance of ext4, Holger Kiehl, (Fri Jun 20, 1:09 am)
Re: Performance of ext4, Holger Kiehl, (Fri Jun 20, 1:32 am)
Re: Performance of ext4, Theodore Tso, (Fri Jun 20, 1:59 am)
Re: Performance of ext4, Holger Kiehl, (Fri Jun 20, 2:21 am)
Re: Performance of ext4, Holger Kiehl, (Sat Jun 21, 8:02 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 23, 10:45 am)
Re: Performance of ext4, Andreas Dilger, (Mon Jun 23, 1:55 pm)
Re: Performance of ext4, Mingming, (Mon Jun 23, 5:31 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 23, 8:07 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 23, 8:28 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Mon Jun 23, 8:33 pm)
Re: Performance of ext4, Holger Kiehl, (Tue Jun 24, 5:57 am)
Re: Performance of ext4, Mingming, (Tue Jun 24, 10:58 am)
Re: Performance of ext4, Holger Kiehl, (Tue Jun 24, 2:12 pm)
Re: Performance of ext4, Mingming, (Tue Jun 24, 3:58 pm)
Re: Performance of ext4, Holger Kiehl, (Wed Jun 25, 2:09 am)
Re: Performance of ext4, Mingming, (Wed Jun 25, 5:46 pm)
Re: Performance of ext4, Aneesh Kumar K.V, (Fri Jun 27, 2:14 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Fri Jun 27, 2:49 am)
Re: Performance of ext4, Jan Kara, (Fri Jun 27, 3:00 am)
Re: Performance of ext4, Aneesh Kumar K.V, (Fri Jun 27, 10:35 am)
Re: Performance of ext4, Holger Kiehl, (Mon Jul 7, 6:13 am)
Re: Performance of ext4, Holger Kiehl, (Thu Jul 10, 1:11 am)