Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp748934pxb; Thu, 21 Oct 2021 08:46:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwwI5hhq9i2zvuiJNBTLORwQmk4ZIrIjfcy+UQvkLeeWMmbXdrhYb/ThtU0szskGUPlvVk X-Received: by 2002:a17:907:1c89:: with SMTP id nb9mr8338716ejc.441.1634831175752; Thu, 21 Oct 2021 08:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634831175; cv=none; d=google.com; s=arc-20160816; b=mOvdIiLodzcfw0bPvm+Iy2gBPwtpmKQVRN4ZfhovGijijh9lchXWHVICK/BIUOwFjX vOX220uC8c0mfS/Nd2VcDAjP984tBNIeO/D3kBvWlap5Img4zb3GBgn6Psz2qYn+FrZD iYEcsiE+9teixb5ppjFRceTK1pKV2KmfQgDJEFgCBHEU964kwULqZ78HiR9rmHYRLCJ6 qfV0r1bzremE+Xm6HWVpxzPQn84vYgMZwHjD0lCN/B/h59/tdo+68thuk3MB8iWmKKjK OyL3omN0raAQp3TyWpeA7lk3cLAd/SQFmqW0SbR0y6xhsBnwFQrwu8Kw1wdJhE60s2ne zP/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=GduWGEuaN37zABFKSDzrb3eejhWNhsXl2pv6x5y+NmI=; b=oe6L4ebidwGArauLYRGFf5vtweArTiYTPu8IY/kHykoF79ayNIJEhey31QxcBt1Qj1 HI4Vl8eiayCMCwu7IZEx2bANfclr58KvKg1rZK8tRIGSYGGY7wZtxSZ8Mhezp7XPWBNk QmbhXTyVLTlob8rtCCykBwLAoVZVLy2J8br27hEMCZRgbmUn4Cv32L+RByvQG+8yTmMZ KPQu/ILqG4+GnCX+/C+nHtlvMWHjvDjK3SmWOnhE96Z2VMZ4tcKTnDeZm/yXqyolpir7 zGH2bIg/jJ3iegCWuPi3hAG/3gmC+Hv4DkLtmccsYCph4qBXQ6iY+EeuwVoBBaxnX1ZD sKwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bkTNF90T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id he31si2332939ejc.285.2021.10.21.08.45.50; Thu, 21 Oct 2021 08:46:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bkTNF90T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231770AbhJUPqP (ORCPT + 99 others); Thu, 21 Oct 2021 11:46:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:55110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231659AbhJUPqO (ORCPT ); Thu, 21 Oct 2021 11:46:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 97A6C611CE; Thu, 21 Oct 2021 15:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634831038; bh=Mfzu0VeAcXV8EZu1YMCp1rSP47OywZ890ZlNdLAJD68=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=bkTNF90TOvPQ/PHBRLeztWLd0SErJ1bPNnEVsfif7/tlOSw1rrRV5tETTDIljROVA ILezFzTnVeupMBTFZ90w/EBbYJP8n6oC8qtYuSErOMx0g5BjGGF8ZRmdxkgQaS3XTd Ls76sbMEMxeoyPOgCQ4diiDyrw4NHkfx0acskDPMCJ9vJsOKOl3QhAQOiZ4vtAszXY mcqjTpNJHpvGCDpvZVEaCbuRV6gvCSkhy2EOogS79Fr1KQ1wP+NDkzullfWzMCEIq9 385Qf+mhgJumHqtKZHlyA0LcBZxBjeTpnhp8II+AiNIdOVK6A87Maose9dC9OUZVJS 364Ifch4amotw== Message-ID: <99209198dd9d8634245f153a90e4091851635a16.camel@kernel.org> Subject: Re: [RFC PATCH] ceph: add remote object copy counter to fs client From: Jeff Layton To: Patrick Donnelly Cc: =?ISO-8859-1?Q?Lu=EDs?= Henriques , Ilya Dryomov , Ceph Development , linux-kernel@vger.kernel.org Date: Thu, 21 Oct 2021 11:43:55 -0400 In-Reply-To: References: <20211020143708.14728-1-lhenriques@suse.de> <34e379f9dec1cbdf09fffd8207f6ef7f4e1a6841.camel@kernel.org> Content-Type: text/plain; charset="ISO-8859-15" User-Agent: Evolution 3.40.4 (3.40.4-2.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-10-21 at 09:52 -0400, Patrick Donnelly wrote: > On Wed, Oct 20, 2021 at 12:27 PM Jeff Layton wrote: > > > > On Wed, 2021-10-20 at 15:37 +0100, Lu?s Henriques wrote: > > > This counter will keep track of the number of remote object copies done on > > > copy_file_range syscalls. This counter will be filesystem per-client, and > > > can be accessed from the client debugfs directory. > > > > > > Cc: Patrick Donnelly > > > Signed-off-by: Lu?s Henriques > > > --- > > > This is an RFC to reply to Patrick's request in [0]. Note that I'm not > > > 100% sure about the usefulness of this patch, or if this is the best way > > > to provide the functionality Patrick requested. Anyway, this is just to > > > get some feedback, hence the RFC. > > > > > > Cheers, > > > -- > > > Lu?s > > > > > > [0] https://github.com/ceph/ceph/pull/42720 > > > > > > > I think this would be better integrated into the stats infrastructure. > > > > Maybe you could add a new set of "copy" stats to struct > > ceph_client_metric that tracks the total copy operations done, their > > size and latency (similar to read and write ops)? > > I think it's a good idea to integrate this into "stats" but I think a > local debugfs file for some counters is still useful. The "stats" > module is immature at this time and I'd rather not build any qa tests > (yet) that rely on it. > > Can we generalize this patch-set to a file named "op_counters" or > similar and additionally add other OSD ops performed by the kclient? > Tracking this sort of thing is the main purpose of the stats code. I'm really not keen on adding a whole separate set of files for reporting this.? What's the specific problem with relying on the data in debugfs "metrics" file? -- Jeff Layton