All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] [RFC][PATCH] clustered writeback
@ 2007-08-27 11:21 ` Fengguang Wu
  2007-08-27 12:03   ` Arjan van de Ven
  0 siblings, 1 reply; 7+ messages in thread
From: Fengguang Wu @ 2007-08-27 11:21 UTC (permalink / raw)
  To: Chris Mason; +Cc: Andrew Morton, David Chinner, Michael Rubin, linux-kernel

Chris,

This is one possible implementation of the clustered writeback idea.
It runs OK on ext3 (compiling, syncing, etc.).

The patch is based on 2.6.23-rc3-mm1 and the writeback patches here:
http://lkml.org/lkml/2007/8/19/10

By default, with many dirty inodes, it works as follows:
- store dirty inodes in a radix tree, indexed by their inode numbers
- sweep the whole inode number space in 25s and do it in 5 times
- each time we walk only 1/5 of the inode number space
- pull all inodes with dirty-age larger than 5s to the io dispatching queue

Because it does the work in small batches of 10 inodes, when the system has
<=10 dirty inodes, its behavior will reduce to:
- do a full sweep *at once* on every 25s
Which means the disk will flicker once every 25s, not bad :)


The implications for the majority users could be:
- medium-to-heavy writes becomes less seeky
- dirty inodes are getting synced earlier(before: 30s; now: 5-30s)
- less panic for the 'atime' mount option (a future work)

Fengguang
-- 

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

end of thread, other threads:[~2007-08-27 12:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-27 11:21 [PATCH 0/3] [RFC][PATCH] clustered writeback Fengguang Wu
2007-08-27 11:21 ` Fengguang Wu
2007-08-27 12:03   ` Arjan van de Ven
2007-08-27 12:27     ` Fengguang Wu
2007-08-27 12:27       ` Fengguang Wu
2007-08-27 12:43     ` Chris Mason
2007-08-27 11:21 ` [PATCH 1/3] writeback: introduce queue_dirty() Fengguang Wu
2007-08-27 11:21   ` Fengguang Wu
2007-08-27 11:21 ` [PATCH 2/3] writeback: introduce dirty_volatile_interval Fengguang Wu
2007-08-27 11:21   ` Fengguang Wu
2007-08-27 11:21 ` [PATCH 3/3] writeback: writeback clustering by inode number Fengguang Wu
2007-08-27 11:21   ` Fengguang Wu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.