Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2035094ybk; Mon, 11 May 2020 10:16:04 -0700 (PDT) X-Google-Smtp-Source: APiQypK+DV4nICNQan6OpMeNYFwAig3Rj8kaTvTJevIEKbc70uKhfJCsGJBvYv6WE6gMUmnPg/uJ X-Received: by 2002:a17:906:48c:: with SMTP id f12mr14665545eja.93.1589217363968; Mon, 11 May 2020 10:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589217363; cv=none; d=google.com; s=arc-20160816; b=YEmAyR1ErGCBxHnxjNb0i1YVza+sMRB8YIO/cLnaxh62p4hxJ7ZIA3gnNoxDRdrMCJ 8BS11nDSM1ItCnyiv727Wh33ziW7cPHtAzhxYMq1GDIoi67He8IKO7P7K4M/RVr8mrrs GV1oSlwGU3q+lRfNEZC+wClvuP3rj+1Hj29DoeUtccBsGNZ3SX6W4f1WTL/Ai2fX9FuK plMMpWBIkYIxYnNRCduAALuphDBs9xWdUpTYY5xWioAdrBbccqZFb8TjHdMQ1LjsJyYJ h2jk94BghTq+mdYV8bvxZ6PZLz00N6lP91pNwSXaPNFUY69jb5FQTuh3H8PoInRiNZLR U/CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:subject:cc:to:from; bh=0C10SHobpoe+2374YWtqriD61BXgZpUEXzvqetuf2Zg=; b=1Hnl9IFmgKZEa2/2OHtY2aZMRFY99lpBp7Auao5KFQY5nDJTUrZ1IDrzKQwtYWo1HC LbXrk1S02R97qZO+KgzQfo+Wm30AiRPDLhvVCkAjxKKMAGsier5y8zhENr9WKm0jU+yI oqjZ/Apvd/auq0rjx4pALpnMNgVVu34hOXnOt4sPg8xIRsZNMMrGBb4KI5qVMdYonkFb Ly/C7QCcBM2seucmf0fet8Lz1Gla8kmrKU87uFqD4+qu9p+pWrbn2Ufdf/w3KMisGCxs OOXbHow3C6ASoXe7VFVuJ2oiTfC2JE/x1mNhki7gGDsGLdFpPYHcsFJzIad12+Ui9bed +vPg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox5si6596288ejb.530.2020.05.11.10.15.40; Mon, 11 May 2020 10:16:03 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730887AbgEKRLu (ORCPT + 99 others); Mon, 11 May 2020 13:11:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730800AbgEKRLt (ORCPT ); Mon, 11 May 2020 13:11:49 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0EEDC061A0C for ; Mon, 11 May 2020 10:11:49 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 53C852A0CAC From: Gabriel Krisman Bertazi To: Mike Snitzer Cc: agk@redhat.com, dm-devel@redhat.com, linux-kernel@vger.kernel.org, song@kernel.org, breeves@redhat.com, mpatocka@redhat.com, khazhy@google.com, kernel@collabora.com Subject: Re: [PATCH v4 0/2] Historical Service Time Path Selector Organization: Collabora References: <20200511163910.3778467-1-krisman@collabora.com> <20200511170235.GA7719@redhat.com> Date: Mon, 11 May 2020 13:11:44 -0400 In-Reply-To: <20200511170235.GA7719@redhat.com> (Mike Snitzer's message of "Mon, 11 May 2020 13:02:35 -0400") Message-ID: <85ftc6l7lb.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mike Snitzer writes: > On Mon, May 11 2020 at 12:39pm -0400, > Gabriel Krisman Bertazi wrote: > >> Hi, >> >> This fourth version of HST applies the suggestion from Mikulas Patocka >> to do the ktime_get_ns inside the mpath map_bio instead of generic >> device-mapper code. This means that struct dm_mpath_io gained another >> 64bit field. For the request-based case, we continue to use the block >> layer start time information. >> >> With this modification, I was able obtain similar performance on BIO >> to request-based multipath with HST on the benchmarks shared in v1. >> >> v3: https://www.redhat.com/archives/dm-devel/2020-April/msg00308.html >> v2: https://www.redhat.com/archives/dm-devel/2020-April/msg00270.html >> v1: https://www.redhat.com/archives/dm-devel/2020-April/msg00176.html > > I already staged your v3 in linux-next. Please provide an incremental > patch that layers on this git branch: > > https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/log/?h=dm-5.8 > > I was hopeful for a flag to be set (e.g. in 'struct path_selector') to > reflect whether the path selector expects highres start_time. Makes > little sense to incur that extra cost of providing the time if the path > selector doesn't even use it. > > Alternatively, could split out the setting of the time needed by .end_io > to a new path_selector_type method (e.g. .set_start_time). And then > only use ktime_get_ns() for bio-based if .set_start_time is defined. > Would get a little fiddly needing to make sure a stale start_time isn't > used... also, makes more sense to conditionally call this > .set_start_time just after .start_io is. Oh, my apologies, I hadn't noticed it was merged. I will make the time fetch conditional and submit a new patch based on that branch. Thanks, -- Gabriel Krisman Bertazi