From patchwork Fri May 29 17:38:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hannes Reinecke X-Patchwork-Id: 11579423 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 1BA49739 for ; Fri, 29 May 2020 17:40:11 +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 CBD192065F for ; Fri, 29 May 2020 17:40:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="GiTlxn9N" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CBD192065F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de 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=1590774009; 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=wjzWVfYV5+3QxXRiEzmEBbm3EZUdr3Rnlv4BR/p7MgM=; b=GiTlxn9NgY+GpiSl7i2Ek2WVtbIMzyKQyd01OuZCPVFkeLpe/hfwf+XJhgx0gQVNl/YMVZ wZ9ynNX9D+8MwhAKhcAi59sh5GNbdPVWk3B2irsXKAd7IEfha/elSy7lHh2jD/WgOxO1R5 D1ddL0+pds19aXR33/6ZReSda+IV3NI= 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-167-EhY08fWOPh2V5ksEz7sWoA-1; Fri, 29 May 2020 13:39:51 -0400 X-MC-Unique: EhY08fWOPh2V5ksEz7sWoA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 709B2805731; Fri, 29 May 2020 17:39:44 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 562D36298C; Fri, 29 May 2020 17:39:44 +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 2FCC97CCC6; Fri, 29 May 2020 17:39:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04THdRKF004904 for ; Fri, 29 May 2020 13:39:28 -0400 Received: by smtp.corp.redhat.com (Postfix) id C17022029F6F; Fri, 29 May 2020 17:39:27 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9998D20267F2 for ; Fri, 29 May 2020 17:39:21 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (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 9AE8B18A6671 for ; Fri, 29 May 2020 17:39:21 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-170-ZcByxYK5OXqs4CGL3QGstg-1; Fri, 29 May 2020 13:39:17 -0400 X-MC-Unique: ZcByxYK5OXqs4CGL3QGstg-1 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 79003B135; Fri, 29 May 2020 17:39:15 +0000 (UTC) From: Hannes Reinecke To: Mike Snitzer Date: Fri, 29 May 2020 19:38:53 +0200 Message-Id: <20200529173907.40529-1-hare@suse.de> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: dm-devel@redhat.com Cc: Damien LeMoal , dm-devel@redhat.com Subject: [dm-devel] [PATCHv3 00/14] dm-zoned: multiple drive support 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: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Hi all, here's the second version of my patchset to support multiple zoned drives with dm-zoned. This patchset: - Converts the zone array to using xarray for better scalability - Separates out shared structures into per-device structure - Enforce drive-locality for allocating and reclaiming zones - Lifts the restriction of 2 devices to handle an arbitrary number of drives. This gives me a near-perfect scalability by increasing the write speed from 150MB/s (for a cache and one zoned drive) to 300MB/s (for a cache and two zoned drives). Changes to v1: - Include reviews from Damien - Reshuffle patches Changes to v2: - Add reviews from Damien - Merge patches 'dynamic device allocation' and 'support arbitrary number of devices' - Fix memory leak when reading tertiary superblocks Hannes Reinecke (14): dm-zoned: add debugging message for reading superblocks dm-zoned: secondary superblock must reside on the same devices than primary superblock dm-zoned: improve logging messages for reclaim dm-zoned: add a 'reserved' zone flag dm-zoned: convert to xarray dm-zoned: temporary superblock for tertiary devices dm-zoned: add device pointer to struct dm_zone dm-zoned: add metadata pointer to struct dmz_dev dm-zoned: per-device reclaim dm-zoned: move random and sequential zones into struct dmz_dev dm-zoned: support arbitrary number of devices dm-zoned: allocate zone by device index dm-zoned: select reclaim zone based on device index dm-zoned: prefer full zones for reclaim drivers/md/dm-zoned-metadata.c | 453 +++++++++++++++++++++++++---------------- drivers/md/dm-zoned-reclaim.c | 95 +++++---- drivers/md/dm-zoned-target.c | 169 +++++++++------ drivers/md/dm-zoned.h | 77 ++++--- 4 files changed, 485 insertions(+), 309 deletions(-)