From: Mark Nelson Subject: Re: RBD client wallclock profile during 4k random writes Date: Wed, 10 May 2017 18:24:42 -0500 Message-ID: <59cdc3c9-e6b0-bd9f-9826-33874a7423e1@redhat.com> References: <9e13c0f0-cde1-b8ec-d469-da5d87c5ba74@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com ([209.132.183.28]:59256 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753990AbdEJXYp (ORCPT ); Wed, 10 May 2017 19:24:45 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6A20488E60 for ; Wed, 10 May 2017 23:24:45 +0000 (UTC) In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: dillaman@redhat.com Cc: ceph-devel On 05/10/2017 05:31 PM, Jason Dillaman wrote: > On Wed, May 10, 2017 at 6:10 PM, Mark Nelson wrote: >> 1) 7 - tp_librbd, line 82 >> >> Lots of stuff going on here, but the big thing is all the time spent in >> librbd::ImageCtx::write_to_cache. 70.2% of the total time in this thread is >> spent in ObjectCacher::writex with lots of nested stuff, but if you look all >> the way down on line 1293, another 11.8% of the time is spent in Locker() >> and 1.5% of the time spent in ~Locker(). > > Yes -- the ObjectCacher is long overdue for a re-write since it's > single threaded. It looks like you were essentially performing > writethrough as well. I'd imagine you would just be better off > disabling the rbd cache when doing high-performance random write > workloads since you are going to get zero benefit from the cache with > that workload -- at least that's what I usually recommend. > Often I do turn rbd cache off for bluestore testing. This was an older conf file where I inadvertently hadn't disabled it. Still, it's an unfortunate choice that has to be made, potentially by someone other than the user running the workload. :/ Mark