From patchwork Mon May 11 16:39:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel Krisman Bertazi X-Patchwork-Id: 11541307 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 053CE81 for ; Mon, 11 May 2020 16:39:40 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B609D20714 for ; Mon, 11 May 2020 16:39:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bJoIuGhf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B609D20714 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dm-devel-bounces@redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589215178; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=A16N+1hAqt+Af6FkZlmVqo5rf4isGpO+6svI8bemrQQ=; b=bJoIuGhfA/ej0A7cksBrFRCquED56BPlgJrguhcj7+AEU9dEH+IkJ1WvQXhc18qPXDcPLf t9pXBleURLKOn0paAvf5iK+7dKVKGa2uC7oz8yaqCsUPoXyHeWNI6kf6XSjBzosFoTSf54 BKFC+wiDz5tSorudf8NqRYxjFI2SM4A= 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-381-wvb1K_pfNSmDEACRiluVUg-1; Mon, 11 May 2020 12:39:36 -0400 X-MC-Unique: wvb1K_pfNSmDEACRiluVUg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C47781054F8B; Mon, 11 May 2020 16:39:29 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F14F01000320; Mon, 11 May 2020 16:39:28 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C91D01809543; Mon, 11 May 2020 16:39:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04BGdOFZ015513 for ; Mon, 11 May 2020 12:39:24 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5D8392156A3B; Mon, 11 May 2020 16:39:24 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 59EAE2156A22 for ; Mon, 11 May 2020 16:39:22 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6685F8007AC for ; Mon, 11 May 2020 16:39:22 +0000 (UTC) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-345-ENZrl-jhMY6k7WTrQodSnA-1; Mon, 11 May 2020 12:39:17 -0400 X-MC-Unique: ENZrl-jhMY6k7WTrQodSnA-1 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 5BD812A07F2 From: Gabriel Krisman Bertazi To: agk@redhat.com, snitzer@redhat.com Date: Mon, 11 May 2020 12:39:08 -0400 Message-Id: <20200511163910.3778467-1-krisman@collabora.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 04BGdOFZ015513 X-loop: dm-devel@redhat.com Cc: breeves@redhat.com, linux-kernel@vger.kernel.org, khazhy@google.com, song@kernel.org, dm-devel@redhat.com, mpatocka@redhat.com, kernel@collabora.com, Gabriel Krisman Bertazi Subject: [dm-devel] [PATCH v4 0/2] Historical Service Time Path Selector X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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 Gabriel Krisman Bertazi (1): md: mpath: Pass IO start time to path selector Khazhismel Kumykov (1): md: mpath: Add Historical Service Time Path Selector drivers/md/Kconfig | 11 + drivers/md/Makefile | 1 + drivers/md/dm-historical-service-time.c | 561 ++++++++++++++++++++++++ drivers/md/dm-mpath.c | 12 +- drivers/md/dm-path-selector.h | 2 +- drivers/md/dm-queue-length.c | 2 +- drivers/md/dm-service-time.c | 2 +- 7 files changed, 585 insertions(+), 6 deletions(-) create mode 100644 drivers/md/dm-historical-service-time.c