On Wed, Dec 02, 2015 at 10:34:14AM +0200, Avi Kivity wrote: > On 12/02/2015 02:13 AM, Brian Foster wrote: > >Metadata is modified in-core and handed off to the logging > >infrastructure via a transaction. The log is flushed to disk some time > >later and metadata writeback occurs asynchronously via the xfsaild > >thread. > > Unless, I expect, if the log is full. Since we're hammering on the > disk quite heavily, the log would be fighting with user I/O and > possibly losing. > > Does XFS throttle user I/O in order to get the log buffers recycled faster? No. XFS tags the metadata IO with REQ_META that the IO schedulers can tell the difference between metadata and data IO, and schedule them appropriately. Further. log buffers are also tagged with REQ_SYNC to indicate they are latency sensitive IOs, whcih the IO schedulers again treat differently to minimise latency in the face of bulk async IO which is not latency sensitive. IOWs, IO prioritisation and dispatch scheduling is the job of the IO scheduler, not the filesystem. The filesystem just tells the scheduler how to treat the different types of IO... > Is there any way for us to keep track of it, and reduce disk > pressure when it gets full? Only if you want to make more problems for yourself - second guessing what the filesystem is going to do will only lead you to dancing the Charlie Foxtrot on a regular basis. :/ Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs