linux-pinenote/fs/ext4
Theodore Ts'o 0ae45f63d4 vfs: add support for a lazytime mount option
Add a new mount option which enables a new "lazytime" mode.  This mode
causes atime, mtime, and ctime updates to only be made to the
in-memory version of the inode.  The on-disk times will only get
updated when (a) if the inode needs to be updated for some non-time
related change, (b) if userspace calls fsync(), syncfs() or sync(), or
(c) just before an undeleted inode is evicted from memory.

This is OK according to POSIX because there are no guarantees after a
crash unless userspace explicitly requests via a fsync(2) call.

For workloads which feature a large number of random write to a
preallocated file, the lazytime mount option significantly reduces
writes to the inode table.  The repeated 4k writes to a single block
will result in undesirable stress on flash devices and SMR disk
drives.  Even on conventional HDD's, the repeated writes to the inode
table block will trigger Adjacent Track Interference (ATI) remediation
latencies, which very negatively impact long tail latencies --- which
is a very big deal for web serving tiers (for example).

Google-Bug-Id: 18297052

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2015-02-05 02:45:00 -05:00
..
acl.c
acl.h
balloc.c
bitmap.c
block_validity.c
dir.c
ext4.h Lots of bugs fixes, including Zheng and Jan's extent status shrinker 2014-12-12 09:28:03 -08:00
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
extents.c Revert "ext4: fix suboptimal seek_{data,hole} extents traversial" 2015-01-02 15:16:00 -05:00
extents_status.c ext4: introduce aging to extent status tree 2014-11-25 11:55:24 -05:00
extents_status.h ext4: introduce aging to extent status tree 2014-11-25 11:55:24 -05:00
file.c Revert "ext4: fix suboptimal seek_{data,hole} extents traversial" 2015-01-02 15:16:00 -05:00
fsync.c
hash.c
ialloc.c ext4: fix oops when loading block bitmap failed 2014-10-30 10:53:16 -04:00
indirect.c
inline.c ext4: ext4_da_convert_inline_data_to_extent drop locked page after error 2014-12-05 21:37:15 -05:00
inode.c vfs: add support for a lazytime mount option 2015-02-05 02:45:00 -05:00
ioctl.c ext4: move handling of list of shrinkable inodes into extent status code 2014-11-25 11:49:25 -05:00
Kconfig
Makefile
mballoc.c ext4: Remove an unnecessary check for NULL before iput() 2014-11-25 20:01:37 -05:00
mballoc.h
migrate.c ext4: update comments regarding ext4_delete_inode() 2014-11-25 16:17:29 -05:00
mmp.c
move_extent.c move_extent_per_page(): get rid of unused w_flags 2014-12-17 06:43:56 -05:00
namei.c ext4: remove unneeded code in ext4_unlink 2014-11-25 16:34:38 -05:00
page-io.c
resize.c ext4: prevent online resize with backup superblock 2014-12-26 23:58:21 -05:00
super.c Revert a potential seek_data/hole regression which shows up when using 2015-01-06 14:05:40 -08:00
symlink.c
truncate.h
xattr.c
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c