From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ipmail07.adl2.internode.on.net ([150.101.137.131]:19092 "EHLO ipmail07.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752129AbcBOXK1 (ORCPT ); Mon, 15 Feb 2016 18:10:27 -0500 Date: Tue, 16 Feb 2016 10:10:13 +1100 From: Dave Chinner To: Premysl Kouril Cc: Theodore Ts'o , Andi Kleen , linux-fsdevel@vger.kernel.org Subject: Re: EXT4 vs LVM performance for VMs Message-ID: <20160215231012.GV19486@dastard> References: <87twlee9to.fsf@tassilo.jf.intel.com> <20160212133825.GJ11298@thunk.org> <20160212165319.GB7928@thunk.org> <20160213021509.GO19486@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Feb 15, 2016 at 07:56:05PM +0100, Premysl Kouril wrote: > Hello Dave, > > thanks for your suggestion. I've just recreated our tests with the XFS > and preallocated raw files and the results seem almost same as with > the EXT4. I again checked stuff with my Systemtap script and threads > are waiting mostly waiting for locks in following placeS: .... > Looking at this, does it suggest that the bottleneck is locking on the > VFS layer? Or does my setup actually do DirectIO on the host level? > You and Sanidhya mentioned that XFS is good at concurrent DirectIO as > it doesn't hold lock on file, but I do see this in the trace: > > 0xffffffff8176fcaf : mutex_lock+0x1f/0x2f [kernel] > 0xffffffffc073c531 : 0xffffffffc073c531 [xfs] > 0xffffffffc07a788a : 0xffffffffc07a788a [xfs] > 0xffffffffc073dd4c : 0xffffffffc073dd4c [xfs] You need to resolve these addresses to symbols so we can see where this is actually blocking. > So either KVM is not doing directIO or there is some lock xfs must > hold to do the write, right? My guess is that you didn't configure KVM to use direct Io correctly, because if it was XFs blocking on internal locks in direct IO it would be on a rwsem, not a mutex. Cheers, Dave. -- Dave Chinner david@fromorbit.com