Received: from eggs.gnu.org ([2001:4830:134:3::10]:49474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMeAd-0006st-5P for qemu-devel@nongnu.org; Wed, 27 Aug 2014 10:25:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMeAY-0007r5-NW for qemu-devel@nongnu.org; Wed, 27 Aug 2014 10:25:55 -0400 Received: from xes-mad.com ([216.165.139.218]:8597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMeAY-0007qq-GY for qemu-devel@nongnu.org; Wed, 27 Aug 2014 10:25:50 -0400 Date: Wed, 27 Aug 2014 09:23:45 -0500 (CDT) From: Andrew Martin Message-ID: <731385877.87249.1409149425950.JavaMail.zimbra@xes-inc.com> In-Reply-To: <53FC3136.50900@redhat.com> References: <1009168463.49610.1408133034828.JavaMail.zimbra@xes-inc.com> <985931631.51123.1408133895894.JavaMail.zimbra@xes-inc.com> <20140819145925.GB13680@stefanha-thinkpad.redhat.com> <838926932.102908.1408490438455.JavaMail.zimbra@xes-inc.com> <280510069.69184.1408990389981.JavaMail.zimbra@xes-inc.com> <53FC3136.50900@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Using cache=writeback safely on qemu 1.4.0 and later List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Stefan Hajnoczi , qemu-devel ----- Original Message ----- > From: "Paolo Bonzini" > To: "Andrew Martin" , "Stefan Hajnoczi" > Cc: "qemu-devel" > Sent: Tuesday, August 26, 2014 2:03:18 AM > Subject: Re: Using cache=writeback safely on qemu 1.4.0 and later > > > In the case of the files uploaded by apache2, they were added to the server > > days > > before the power outage, so it seems like there would have been ample time > > for > > those changes to have been flushed. > > Remember that cache=writeback has a huge cache, whose size is several > gigabytes. > > At some point there was a QEMU bug that caused the guest not to do > fsyncs. It was fixed by commit ef5bc96268. Paolo, Thanks for the info about this bug - I am using QEMU 1.4.0 (released on 02/15/13) and ef5bc96268 was added on 09/20/13, so the bug had not been fixed in the version of QEMU I am using. I have had trouble reproducing it on-demand - was there specific behavior you used to reproduce it, or just the lack of fsyncs or fdatasyncs when stracing the QEMU process when using cache=writeback? Thanks, Andrew