From patchwork Thu Aug 30 20:39:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sage Weil X-Patchwork-Id: 1389561 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 2355BDF264 for ; Thu, 30 Aug 2012 20:39:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751776Ab2H3Ujh (ORCPT ); Thu, 30 Aug 2012 16:39:37 -0400 Received: from cobra.newdream.net ([66.33.216.30]:42467 "EHLO cobra.newdream.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751784Ab2H3Ujg (ORCPT ); Thu, 30 Aug 2012 16:39:36 -0400 Received: from cobra.newdream.net (localhost [127.0.0.1]) by cobra.newdream.net (Postfix) with ESMTP id 81F2780446; Thu, 30 Aug 2012 13:39:36 -0700 (PDT) Received: by cobra.newdream.net (Postfix, from userid 1031) id 6E8AD8133E; Thu, 30 Aug 2012 13:39:36 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by cobra.newdream.net (Postfix) with ESMTP id 5C42980446; Thu, 30 Aug 2012 13:39:36 -0700 (PDT) Date: Thu, 30 Aug 2012 13:39:36 -0700 (PDT) From: Sage Weil X-X-Sender: sage@cobra.newdream.net To: Noah Watkins cc: Gregory Farnum , ceph-devel Subject: Re: CephFS mount delay In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org What about this: If that doesn't do it, can you reproduce with 'debug client = 20' and 'debug monc = 20'? Thanks! sage On Thu, 30 Aug 2012, Noah Watkins wrote: > Here ya go: > > https://dl.dropbox.com/u/7899675/client.log > https://dl.dropbox.com/u/7899675/mds.a.log > https://dl.dropbox.com/u/7899675/mds.b.log > https://dl.dropbox.com/u/7899675/mds.c.log > > - Noah > > On Thu, Aug 30, 2012 at 1:15 PM, Sage Weil wrote: > > I see that Server::handle_client_session is calling mdlog->flush(), so > > it's a bit odd. Can you generate a log with 'debug ms = 1' on the client > > (and maybe mds) side? > > > > s > > > > On Thu, 30 Aug 2012, Noah Watkins wrote: > > > >> On Thu, Aug 30, 2012 at 1:06 PM, Gregory Farnum wrote: > >> > On Thu, Aug 30, 2012 at 12:55 PM, Noah Watkins wrote: > >> >> Using a tick interval of 1 drops the cost down to 3 seconds, but still > >> >> a long time for running many unit tests that use fresh mounts. > >> > > >> > Are you using ceph-fuse or the kernel client? And how many of each daemon type? > >> > >> I'm using the C api, and there are 3 mon, 3 mds, 1 osd. > >> > >> > That said; I'm seeing broadly similar numbers ? with one of each > >> > daemon (but otherwise the vstart defaults) "time sudo ceph-fuse mnt" > >> > reports 3.1 seconds. > >> > >> > > --- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/src/client/Client.cc b/src/client/Client.cc index 3333966..003e3f8 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -294,6 +294,7 @@ int Client::init() monclient->set_want_keys(CEPH_ENTITY_TYPE_MDS | CEPH_ENTITY_TYPE_OSD); monclient->sub_want("mdsmap", 0, 0); monclient->sub_want("osdmap", 0, CEPH_SUBSCRIBE_ONETIME); + monclient->renew_subs(); // logger PerfCountersBuilder plb(cct, "client", l_c_first, l_c_last);