Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1800984pxb; Thu, 4 Nov 2021 08:40:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyAI1kgENaeihs68deLv3KAHjAvd0HoUoyHeRqQEKGOiAzQyMs4tVhDCs1o6l4eodD7J4b X-Received: by 2002:a92:c569:: with SMTP id b9mr19982535ilj.39.1636040420024; Thu, 04 Nov 2021 08:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636040420; cv=none; d=google.com; s=arc-20160816; b=h+Scn2XyyAPxOTU4C84vr1qcLjL6+sn5D+oK7ZpSGprFzNYPNUaD3EZrgSWJGUkT+Z 7mQWWVkAlQTfIaqcfgXvZJ8FQ+OE7GNUJRAh2VUDWpmu50dUrbZBPDFAPC1rWKoIdRqe 6z2YI3uMZC4UmwhirJT+fpCWgjPwDP2+mGg90weinhSUZH15shVpgDjDAnTXwWk85GlH N4Aq0DR37RLGoF6hKI96TEMNnUnj5sIL3VaBjWMz4KQe+iJzCdHShLlp8/FbUK0PgFAD xMPRT68XLrMulMvOlKDBr6M/HWMpWZSxYU3DIhSbhtU7eUmz8VIh4mAsB4LXrI9Ts4VL UvvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=uHXKCb2m4aN3DGGo3TS/BoeovESLndRU28nc5R+Ezi4=; b=R4JTbK2pNV1CfgvwzQOhmdcDIPM4l0KfuOvcCSHbe9g0JZLx2sUeT+K1jI7q+64bu8 qYD6pJiQ96cejCTBPLE67XHgikezKr/3eBLsfoqogBtoSVKIDPcHw0YOcLuCFmAooV7t WSTpfehS1q28dw7vLt8Qur3xJJlXuknscPOWuiDTqkg7Fe7Cr2rCQiaVtRUm/Bmx7zf3 1xa2wQi9U0El/D9aqieIoEVwmFEubHdkUGz9MWiTiYpDfiJQ7Td6QAAMDbyQLhUaMvhZ S6HZIequDxTKYmUleipD6CeFekvKFrNpfevuimdgJq38TDKFd1InuRxEe9vuUTUgteTo afTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=q74Jbwjn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="ZBnnY/Sj"; 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=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k22si11108689jad.13.2021.11.04.08.40.05; Thu, 04 Nov 2021 08:40:20 -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=@suse.de header.s=susede2_rsa header.b=q74Jbwjn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="ZBnnY/Sj"; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231523AbhKDPj4 (ORCPT + 99 others); Thu, 4 Nov 2021 11:39:56 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:33566 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbhKDPjy (ORCPT ); Thu, 4 Nov 2021 11:39:54 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id BCE3D212BB; Thu, 4 Nov 2021 15:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1636040235; h=from:from:reply-to: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=uHXKCb2m4aN3DGGo3TS/BoeovESLndRU28nc5R+Ezi4=; b=q74JbwjnA8QAd8JclRaVWkB8KdUJB9SAHd64vcm2cn3kViB0IvoPBuT6usdLrE6kDFZQ48 gcJJZMecREa3Ov2rF5QuZLBGB6gvNe9VkHbQe65z56xbgYrl6Dgpzwohit6Z1i5d9eUoZW fDRqUTksVVVyGBukIPKVE1vB5HvT284= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1636040235; h=from:from:reply-to: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=uHXKCb2m4aN3DGGo3TS/BoeovESLndRU28nc5R+Ezi4=; b=ZBnnY/Sj6shJlRHAq13K4UblSQPcZWW/v96CVCvg40A/Q1QwU1G862FWhF5+GUOroeMJX0 T21cXxBLmFDAy7CQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5947C13BD4; Thu, 4 Nov 2021 15:37:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 20THEiv+g2HScgAAMHmgww (envelope-from ); Thu, 04 Nov 2021 15:37:15 +0000 Received: from localhost (brahms [local]) by brahms (OpenSMTPD) with ESMTPA id 9e2b5671; Thu, 4 Nov 2021 15:37:14 +0000 (UTC) Date: Thu, 4 Nov 2021 15:37:14 +0000 From: =?iso-8859-1?Q?Lu=EDs?= Henriques To: Jeff Layton Cc: Ilya Dryomov , Xiubo Li , Patrick Donnelly , ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/2] ceph: metrics for remote object copies Message-ID: References: <20211104123147.1632-1-lhenriques@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 04, 2021 at 11:09:32AM -0400, Jeff Layton wrote: > On Thu, 2021-11-04 at 12:31 +0000, Lu?s Henriques wrote: > > Hi! > > > > Here's v2 of this patchset. The differences from v1: > > > > * Instead of changing ceph_osdc_copy_from() in libceph.ko to return an > > osd request, move that function into the cephfs code instead. > > > > Other than that, the 2nd patch is quite similar to the one from v1: it > > effectively hooks the 'copyfrom' metrics infrastructure. > > > > Lu?s Henriques (2): > > ceph: libceph: move ceph_osdc_copy_from() into cephfs code > > ceph: add a new metric to keep track of remote object copies > > > > fs/ceph/debugfs.c | 3 +- > > fs/ceph/file.c | 78 ++++++++++++++++++++++++++++----- > > fs/ceph/metric.h | 8 ++++ > > include/linux/ceph/osd_client.h | 19 ++++---- > > net/ceph/osd_client.c | 60 ++++--------------------- > > 5 files changed, 94 insertions(+), 74 deletions(-) > > > > Looks good. Thanks, Luis. Merged into testing branch. Awesome, thanks. I'll wait until this is merged into mainline (which will take a while, of course) before I push changes to the fstests. Adding further checks to the tests that use remote copies was the drive for these new metrics, and I've already some patches for doing that. They'll need some cleanup but it doesn't make sense to push them before this is available upstream. Cheers, -- Lu?s