Re: unified page and buffer cache?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: tytso
Date: Friday, May 7, 2010 - 5:46 pm

On Fri, May 07, 2010 at 11:45:34AM -0400, Phillip Susi wrote:

Ext2 does use the page cache for directories.  Ext3 and Ext4 access
directories via buffer heads because of the journaling requirement.

In *theory* they could be modified to use the page cache, given that
we can do data journaling for files, and files live in the page cache
--- however, for cases where the PAGE_SIZE > FS_BLOCKSIZE, which will
happen if you are using 1k or 2k block filesystems, or on the Power
Architecture or on the Itanic where the page size is 16k, updates to
the directory will be much less efficient, since we journal changes to
data files on page granularity and not buffer granuality.

Furthermore, someone would have to supply me with the patches; it's
pretty low on my priority list.  And people on the Power and ia64
platforms won't be happy....

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

Messages in current thread:
readahead on directories, Phillip Susi, (Mon Apr 19, 8:51 am)
Re: readahead on directories, Jamie Lokier, (Tue Apr 20, 5:44 pm)
Re: readahead on directories, Phillip Susi, (Wed Apr 21, 7:57 am)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 9:12 am)
Re: readahead on directories, Phillip Susi, (Wed Apr 21, 11:10 am)
Re: readahead on directories, Evgeniy Polyakov, (Wed Apr 21, 11:38 am)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 11:51 am)
Re: readahead on directories, Evgeniy Polyakov, (Wed Apr 21, 11:56 am)
Re: readahead on directories, Phillip Susi, (Wed Apr 21, 12:23 pm)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 1:01 pm)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 1:02 pm)
Re: readahead on directories, Phillip Susi, (Wed Apr 21, 1:13 pm)
Re: readahead on directories, Evgeniy Polyakov, (Wed Apr 21, 1:21 pm)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 1:22 pm)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 1:37 pm)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 1:39 pm)
Re: readahead on directories, Phillip Susi, (Wed Apr 21, 1:59 pm)
Re: readahead on directories, Jamie Lokier, (Wed Apr 21, 3:06 pm)
Re: readahead on directories, Brad Boyer, (Thu Apr 22, 12:01 am)
Re: readahead on directories, Phillip Susi, (Thu Apr 22, 7:26 am)
Re: readahead on directories, Jamie Lokier, (Thu Apr 22, 10:53 am)
Re: readahead on directories, Phillip Susi, (Thu Apr 22, 12:23 pm)
Re: readahead on directories, Jamie Lokier, (Thu Apr 22, 1:35 pm)
Re: readahead on directories, Phillip Susi, (Thu Apr 22, 2:22 pm)
Re: readahead on directories, Jamie Lokier, (Thu Apr 22, 3:43 pm)
Re: readahead on directories, Phillip Susi, (Thu Apr 22, 9:13 pm)
Re: unified page and buffer cache?, Matthew Wilcox, (Fri May 7, 11:30 am)
Re: unified page and buffer cache?, tytso, (Fri May 7, 5:46 pm)
Re: unified page and buffer cache?, Phillip Susi, (Fri May 7, 5:50 pm)
Re: unified page and buffer cache?, Phillip Susi, (Fri May 7, 5:54 pm)
Re: unified page and buffer cache?, tytso, (Sat May 8, 5:52 am)