Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2092500ybk; Mon, 11 May 2020 11:43:51 -0700 (PDT) X-Google-Smtp-Source: APiQypLRaQyIPa9MEoYAIWC8qpdCtmIuuT/kT9qIPkyX4ofc1pV7Q/fRHsE3auY6obdhIRbJnLWs X-Received: by 2002:a05:6402:1adc:: with SMTP id ba28mr15139567edb.336.1589222630973; Mon, 11 May 2020 11:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589222630; cv=none; d=google.com; s=arc-20160816; b=k+cOcTpifJufed8/302Ot+gsvVh7yDdiRlagAUf0x8rTEiEpAstmJ75KD+3j8D3in3 +OKHHQn0iZqzYRtbTiDUIuouiae2JAeznuAdChjKkjL4mGgIqH0yB/DyNdWaBIe/QJdP v9H0mvYsA4wMPJ6Jv04bZzSTWN0zHTNLdVoilleOwpzyuCDHwtNzEC/xbc52gZAbs5sR +W8h7Kh6PM5uTFXo1lLOnDas1zkUy2ZmjRfHKz4dRBSc1a2d21LvOvS0hZ4W1xpRXHi8 uiJ0UkkpZ862va1wEZOr1D8BNJuLSzEOZIY5Pw/sk6tMm6CAWs0/br9qZSaj7qlFr6Fo P3Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XWo1dhUmPcxI5RGaFhx3UMrLMTx+OfBASGTN8Q1Mv3g=; b=CvrkJZIvpYuisX/RUuFXUgcfZ9xJ78sQdW3LQdfq3q48YrCKlaAyDOX9Hfj+kZZpt1 by4po2MPkgsPmemRzUFb8G3cZMkmE3/CrF/pJoUe+HLREFS/lQMPjo3tEecu13Vb9xoo kgFRVPZYddrDJed0NXy+E+XJHVBW8Dt15qZhDCexrQLxRD9eCRsgdfxOh1GfJRrgo4ON NW4WLm3bnjrUOd+xOKjfkSK/Z+xvUXW/8VTAR0kqfJwSoflM0KONn1w/LJCpJap8kQ/2 ruY1x0pW3tz9mABRKd7zmDbMdZGV63uA+V8ayqlUdBgkreMYWYaBWKOSNqX+R8dluweh b7aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AULQJavu; 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 qk11si2993316ejb.436.2020.05.11.11.43.26; Mon, 11 May 2020 11:43:50 -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=AULQJavu; 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 S1731027AbgEKSlx (ORCPT + 99 others); Mon, 11 May 2020 14:41:53 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:25864 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729768AbgEKSlx (ORCPT ); Mon, 11 May 2020 14:41:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589222511; 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: in-reply-to:in-reply-to:references:references; bh=XWo1dhUmPcxI5RGaFhx3UMrLMTx+OfBASGTN8Q1Mv3g=; b=AULQJavuqARgzrg41+xex0RyCge8s2uiofyuGjQCTVZKRSJRgS9oQtrbXGF4CEujgrJ73x oypOdwPWM6++F9MTKQYMM7nTOqBGP6mG3NDk9fIGhJ0d/E1hvOMGNjLoYqmu8jFR4aW9nT yvwoG2GWGdBIQQJ0ORROW4RKY9GTpOg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-338-8SlbbwLQOwudMFP9HfDsIA-1; Mon, 11 May 2020 14:41:48 -0400 X-MC-Unique: 8SlbbwLQOwudMFP9HfDsIA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BC7D51005510; Mon, 11 May 2020 18:41:47 +0000 (UTC) Received: from localhost (unknown [10.18.25.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 73487784AF; Mon, 11 May 2020 18:41:44 +0000 (UTC) Date: Mon, 11 May 2020 14:41:43 -0400 From: Mike Snitzer To: Gabriel Krisman Bertazi 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 Message-ID: <20200511184143.GA8274@redhat.com> References: <20200511163910.3778467-1-krisman@collabora.com> <20200511170235.GA7719@redhat.com> <85ftc6l7lb.fsf@collabora.com> <20200511173155.GA7892@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200511173155.GA7892@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 11 2020 at 1:31pm -0400, Mike Snitzer wrote: > On Mon, May 11 2020 at 1:11pm -0400, > Gabriel Krisman Bertazi wrote: > > > 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. > > I don't want to waste your time so please don't run with that idea just yet. > > There is a possibility we really _do_ need higher resolution time. > > I'm about to have a concall to discuss some disk IO stat issues with DM > disk stats vs NVMe disk stats (provided by block core). > > I'll let you know the outcome and we can discuss further. OK, that concall's issue had nothing to do with needing higher resolution time (was about IOPs realized with requested-based vs bio-based). Reality is, DM won't need anything higher resolution than jiffies until block core's interfaces require something other than jiffies (e.g. generic_end_io_acct). So feel free to proceed with the conditional time fetch solution you were going to run with (prior to my previous mail asking you to hold off). Sorry for the noise. Thanks, Mike