Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758191AbcDAG2D (ORCPT ); Fri, 1 Apr 2016 02:28:03 -0400 Received: from ipmail07.adl2.internode.on.net ([150.101.137.131]:40375 "EHLO ipmail07.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751280AbcDAG2B (ORCPT ); Fri, 1 Apr 2016 02:28:01 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BcBwCXE/5W/zGaLHldgzOBUIJxpBUBAQEBAQEGjBKFY4QPhgcEAgKBRU0BAQEBAQFmJ4RCAQEEJxMcIxAIAxgJJQ8FJQMhE4gmw1kBAQEHAh4ZhT2FDooUBZd1iGWFGY8XXo46YoIEGYFeKDCIZgEBAQ Date: Fri, 1 Apr 2016 17:27:45 +1100 From: Dave Chinner To: Jens Axboe Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCHSET v3][RFC] Make background writeback not suck Message-ID: <20160401062745.GY11812@dastard> References: <1459350477-16404-1-git-send-email-axboe@fb.com> <20160331082433.GO11812@dastard> <56FD344F.70908@fb.com> <20160401004623.GT11812@dastard> <56FDEA2D.2030207@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56FDEA2D.2030207@fb.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1106 Lines: 36 On Thu, Mar 31, 2016 at 09:25:33PM -0600, Jens Axboe wrote: > On 03/31/2016 06:46 PM, Dave Chinner wrote: > >>>virtio in guest, XFS direct IO -> no-op -> scsi in host. > >> > >>That has write back caching enabled on the guest, correct? > > > >No. It uses virtio,cache=none (that's the "XFS Direct IO" bit above). > >Sorry for not being clear about that. > > That's fine, it's one less worry if that's not the case. So if you > cat the 'write_cache' file in the virtioblk sysfs block queue/ > directory, it says 'write through'? Just want to confirm that we got > that propagated correctly. No such file. But I did find: $ cat /sys/block/vdc/cache_type write back Which is what I'd expect it to safe given the man page description of cache=none: Note that this is considered a writeback mode and the guest OS must handle the disk write cache correctly in order to avoid data corruption on host crashes. To make it say "write through" I need to use cache=directsync, but I have no need for such integrity guarantees on a volatile test device... Cheers, Dave. -- Dave Chinner david@fromorbit.com