linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] add support for a lazytime mount option
@ 2014-11-21 19:59 Theodore Ts'o
  2014-11-21 19:59 ` [PATCH 1/4] fs: split update_time() into update_time() and write_time() Theodore Ts'o
                   ` (3 more replies)
  0 siblings, 4 replies; 33+ messages in thread
From: Theodore Ts'o @ 2014-11-21 19:59 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Ext4 Developers List, Theodore Ts'o, linux-btrfs, xfs

This is an updated version of what had originally been an
ext4-specific patch which significantly improves performance by lazily
writing timestamp updates (and in particular, mtime updates) to disk.
The in-memory timestamps are always correct, but they are only written
to disk when required for correctness.

This provides a huge performance boost for ext4 due to how it handles
journalling, but it's valuable for all file systems running on flash
storage or drive-managed SMR disks by reducing the metadata write
load.  So upon request, I've moved the functionality to the VFS layer.
Once the /sbin/mount program adds support for MS_LAZYTIME, all file
systems should be able to benefit from this optimization.

There is still an ext4-specific optimization, which may be applicable
for other file systems which store more than one inode in a block, but
it will require file system specific code.  It is purely optional,
however.

Please note the changes to update_time() and the new write_time() inode
operations functions, which impact btrfs and xfs.  The changes are
fairly simple, but I would appreciate confirmation from the btrfs and
xfs teams that I got things right.   Thanks!!

Theodore Ts'o (4):
  fs: split update_time() into update_time() and write_time()
  vfs: add support for a lazytime mount option
  vfs: don't let the dirty time inodes get more than a day stale
  ext4: add support for a lazytime mount option

 fs/btrfs/inode.c        | 10 ++++++
 fs/ext4/inode.c         | 46 +++++++++++++++++++++++++-
 fs/ext4/super.c         |  9 +++++
 fs/fs-writeback.c       | 39 +++++++++++++++++++++-
 fs/inode.c              | 88 ++++++++++++++++++++++++++++++++++++++++++-------
 fs/proc_namespace.c     |  1 +
 fs/sync.c               |  7 ++++
 fs/xfs/xfs_iops.c       | 39 +++++++++-------------
 include/linux/fs.h      |  5 +++
 include/uapi/linux/fs.h |  1 +
 10 files changed, 209 insertions(+), 36 deletions(-)

-- 
2.1.0

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2014-11-26 22:39 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-21 19:59 [PATCH 0/4] add support for a lazytime mount option Theodore Ts'o
2014-11-21 19:59 ` [PATCH 1/4] fs: split update_time() into update_time() and write_time() Theodore Ts'o
2014-11-21 20:08   ` Chris Mason
2014-11-21 21:42     ` Theodore Ts'o
2014-11-24 16:38       ` David Sterba
2014-11-24 17:22         ` Theodore Ts'o
2014-11-24 18:09           ` David Sterba
2014-11-24 15:21   ` Christoph Hellwig
2014-11-24 15:56     ` Theodore Ts'o
2014-11-24 17:34     ` David Sterba
2014-11-25 15:51       ` David Sterba
2014-11-25 17:01         ` Christoph Hellwig
2014-11-21 19:59 ` [PATCH 2/4] vfs: add support for a lazytime mount option Theodore Ts'o
2014-11-25  1:52   ` Dave Chinner
2014-11-25  4:33     ` Theodore Ts'o
2014-11-25 15:32       ` Boaz Harrosh
2014-11-25 17:19       ` Jan Kara
2014-11-25 17:57         ` Theodore Ts'o
2014-11-25 20:18           ` Jan Kara
2014-11-25 17:30       ` Jan Kara
2014-11-25 19:26         ` Theodore Ts'o
2014-11-26  0:24       ` Dave Chinner
2014-11-21 19:59 ` [PATCH 3/4] vfs: don't let the dirty time inodes get more than a day stale Theodore Ts'o
2014-11-21 20:19   ` Andreas Dilger
2014-11-21 21:36     ` Theodore Ts'o
2014-11-25  1:53   ` Dave Chinner
2014-11-25  4:45     ` Theodore Ts'o
2014-11-25 23:48       ` Dave Chinner
2014-11-26 10:20         ` Theodore Ts'o
2014-11-26 22:39           ` Dave Chinner
2014-11-25 17:31   ` Jan Kara
2014-11-21 19:59 ` [PATCH 4/4] ext4: add support for a lazytime mount option Theodore Ts'o
2014-11-25 17:34   ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).