Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp648314pxb; Thu, 21 Oct 2021 06:55:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1wESbLHqSEDX15KWtLgpWX6+mRiQeSuoeDOy3iat1fZ5JpjN8nT52R1SlLAUhcVH/IbSp X-Received: by 2002:a05:6402:d61:: with SMTP id ec33mr6822686edb.133.1634824558796; Thu, 21 Oct 2021 06:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634824558; cv=none; d=google.com; s=arc-20160816; b=1BjHF0wmD0p/2l2SpR/QFrbsv3ThMX+QAfNfXhxEyazu5JgAWJUGMig6yTE0IWItIx SKurmCjX04uYI2hzNvCJ+wFUcZhsDk3863RvvFD+THl8JFlLpNjbILkUqU/Hptv0VHPV cXzQBXmCDi3aCmIHbe3UKqrJsvP6pKt6Y0eQSPajOoKn8AlqNSptp/PTZOE5Gf3s1TtV gX1t9OimnVVEKk/memCmbgC3VfSxWmbHmKf6VA9XZoAVV3vWtuym7tXGyglvM7Ik2uPS d3T4QQ8GRwaY6xTgDzRney8iMYkEguGOmNaJ9Bs5Y0I3gec30vqeyZsnGZITtE68pSdn YJwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=uRKlQVP5q9wu9q0KFDh68sx4zgVOkV7V7+M/iuIu2a0=; b=wKdOyCvSZOnUrGdc7Cmy1S2rUxYDrKMeL2xfnwBMcjdVhxrVd4eOYIOyhM9lYqEXRp 7U3nnT6uvOzr4v7udBwEx80ulfjDocb3yMiz5G31rKxZhSKwf5NHxLlfAB+qpknvPS18 3KrpcGMUa7L+d8QTxQoVYf+hVdvQsyN8R4srjnjm4YCgCQ9Pnj3zoY94ya8npeZ6v4rD bt0rWOPB2hUlveYcKh8WIf8g0mgpMW7/56mtDUCO2ZjYci4zpjbxes7tP6TIzi9edGhQ v1kYmkfLEECvy+YmA2k9iDutc2aZKNHzhtA6HLQ23Uub5oD/Ff0s9DMX37lOvVu/89Hn S+NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cKSYADJ6; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec48si605505edb.505.2021.10.21.06.55.34; Thu, 21 Oct 2021 06:55:58 -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=@redhat.com header.s=mimecast20190719 header.b=cKSYADJ6; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230463AbhJUNzS (ORCPT + 99 others); Thu, 21 Oct 2021 09:55:18 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:34109 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230390AbhJUNzQ (ORCPT ); Thu, 21 Oct 2021 09:55:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634824380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uRKlQVP5q9wu9q0KFDh68sx4zgVOkV7V7+M/iuIu2a0=; b=cKSYADJ68lrlU40/LLhuj24v6XzJL1FghGlDo1tXhaS+DZisaBXqAeX7DCtxaAPWTPBTgb +mhF9ys/0ITHLRyNy/VklS69kuXouH9Pd4E4fEPGzqKfLkxMy4oKxdQjm089cJlomu2XEK h7cvTUWm8iKeb76Bz7JgiykS7Q1Hvv0= Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-408-82zrNFDMMqOW6K2PkbTosA-1; Thu, 21 Oct 2021 09:52:59 -0400 X-MC-Unique: 82zrNFDMMqOW6K2PkbTosA-1 Received: by mail-io1-f71.google.com with SMTP id l17-20020a05660227d100b005d6609eb90eso462894ios.16 for ; Thu, 21 Oct 2021 06:52:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=uRKlQVP5q9wu9q0KFDh68sx4zgVOkV7V7+M/iuIu2a0=; b=YnfearEY75Cxtgb+NMBZh3XArpGS4rkUverRgEJhDGO32rq4FQaGEyCZTTKS9AXcLg fEXo4pFbU+romA3Jjzpywm/3xZFbiQTJcZhVVT7aGyanEz7gkBlm7jtF92btnpfaW2rq rDXd/NUYZxMNmJB9ADnQFhqZP3s7aMPeZ8nw77e5OPKeTzjXygdVRXokggWm3vXbL0vX cjt3OVGb/muBFNNKF0t8hz5RVFpeNbPCXuNpj1GOu6E+1l1YJdh10L9er+Sf0PoYMzTB TXFmY87GoOWXe5kmYOKIac8JJCvBON9tygFUrcTqQ4l/FtkkG9jmQ6A38n9TCgdt1pvu CcZA== X-Gm-Message-State: AOAM533DsjORMeKfC0cgQ8slBhtiex/arrBV5jiqjiBPvMbjQIq/w41J NjDjZ+ye264YqDGBfn7z0jfAED/eGOQekZstzM5zr+/BCUkE3BfEla83CGugJwBfa+q4SKd2e1p J73ewXoyT7yxMSsh5ajRw/UvB5PcWUeGW10/CW0Fe X-Received: by 2002:a05:6e02:120f:: with SMTP id a15mr3766392ilq.109.1634824378754; Thu, 21 Oct 2021 06:52:58 -0700 (PDT) X-Received: by 2002:a05:6e02:120f:: with SMTP id a15mr3766386ilq.109.1634824378574; Thu, 21 Oct 2021 06:52:58 -0700 (PDT) MIME-Version: 1.0 References: <20211020143708.14728-1-lhenriques@suse.de> <34e379f9dec1cbdf09fffd8207f6ef7f4e1a6841.camel@kernel.org> In-Reply-To: <34e379f9dec1cbdf09fffd8207f6ef7f4e1a6841.camel@kernel.org> From: Patrick Donnelly Date: Thu, 21 Oct 2021 09:52:32 -0400 Message-ID: Subject: Re: [RFC PATCH] ceph: add remote object copy counter to fs client To: Jeff Layton Cc: =?UTF-8?Q?Lu=C3=ADs_Henriques?= , Ilya Dryomov , Ceph Development , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 12:27 PM Jeff Layton wrote: > > On Wed, 2021-10-20 at 15:37 +0100, Lu=C3=ADs 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=C3=ADs 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 wa= y > > to provide the functionality Patrick requested. Anyway, this is just t= o > > get some feedback, hence the RFC. > > > > Cheers, > > -- > > Lu=C3=ADs > > > > [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? --=20 Patrick Donnelly, Ph.D. He / Him / His Principal Software Engineer Red Hat, Inc. GPG: 19F28A586F808C2402351B93C3301A3E258DD79D