Message ID | cover.1702913643.git.naohiro.aota@wdc.com (mailing list archive) |
---|---|
Headers | show
Received: from esa4.hgst.iphmx.com (esa4.hgst.iphmx.com [216.71.154.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7E0442372 for <linux-btrfs@vger.kernel.org>; Mon, 18 Dec 2023 16:02:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wdc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wdc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wdc.com header.i=@wdc.com header.b="Mx0FxnkD"; dkim=pass (1024-bit key) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="WYpzQHZm" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1702915326; x=1734451326; h=from:to:subject:date:message-id:mime-version; bh=Czsh0p6lXOLK0oAMWCFbqebZ7e2ZbQ3+oS1dnfl3I3M=; b=Mx0FxnkD6Y6tkTMiCZX/OyXSSbwzAoGgnioz8lCBb1iJSG/ieN52gI/1 Jy8FLNsHaVonj7bvHTnWSjx+PDRSxmAzrItZJxMlUaip7ORjubSr4q/bL JXgFWwoFxGOySBMn8jDPCyY14+qTebUvr5q6oU9ZoPTosHyBuVCV2D+GP eD6TVXBmHY7jGqlZJONbhFSdaMo2dMfD8S0VFtuKrFYSp/5w+TIlv7gl7 4O5PMPme2vb0roYbP2UaZouJoOC0VpL+POgeSOjAYnSwlnoaPOZ4Dt1y3 ntRNVxZCLHwiSBB2SCLSS3+Fo9rA4R56x4V/XYcfRYnGUlzNfVOsQY+RZ Q==; X-CSE-ConnectionGUID: mgnI9vxnQKSI9gN+IJwNdA== X-CSE-MsgGUID: aW0fwzG4TZimxGbksQqYuQ== X-IronPort-AV: E=Sophos;i="6.04,286,1695657600"; d="png'150?scan'150,208,150";a="4945646" Received: from mail-bn8nam12lp2168.outbound.protection.outlook.com (HELO NAM12-BN8-obe.outbound.protection.outlook.com) ([104.47.55.168]) by ob1.hgst.iphmx.com with ESMTP; 19 Dec 2023 00:01:58 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XWzqZb8mvJ3d7eEfHDeXRkSjPABOFEPmPyKOUBB3cacnB6WKqWkdfnnYaTZDV3hv651JoMHuVqU9LRgCIBDaRvLeINSPipqLq9VyN3w085pqptS38gfQMRNxGndJN/sfso8F9IIEyR4e1E9LOFYEGPc0kriHUUVLItKCXaNO/a9C8QE8Ujc4cjQiJkN0Cfc+QKWjkgE2CJXmkTRch7pgqmDCFWrRkobc2kiN9nk+3YPrJ48owPa5bvNM+moimnipuq4ecEK9dQ6Y11Pmc/Pvx/aBgO4fafIPLGcCGpMLj1Kkm1/HwZw5zw6CmwZtwMV/+EaQsYr6GsT+oVPXn+3ikw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dpsnmLHxqbS+e5uMbSEVjyGrtyS/fa/4GiZgHVKSBGs=; b=I49zd/8tZa39iPCzf09w4fg90WUXsaNiEN5isE2CqdKMJm93bmPKxpc/BJ4lT6OFpHuQqJmd3ISCfHDatjPIcREXcMfX1LOucouumk/CwQiT94KdQspFIzAnp5SuAjYjpD+4bJLjsuJJvpjhRTt/H6uF7YxqHEYw63mFrBmqrysIjPN5IK5T31ksRp1wnLZIx3y86FQ9f+OXfr5ddHYTTrxnXvlxrMOB80TuIgVJIPLG3rgOeu82wbP19wZpm3kIeDuErHLMOkviZczEDjjSbL6OLZ1cH8ZY6JifO+HOHok+SK3mXkqqXjej76Uo/8wqDQjXZvm9juIDev75UgI9mw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dpsnmLHxqbS+e5uMbSEVjyGrtyS/fa/4GiZgHVKSBGs=; b=WYpzQHZmmhqxL9YPsTs+hGHk+up2uFo5DspuVaSffIsaggJUQEoCNh/kVlajBD0ihfSnBNyzGQap8UceWO7YnPaLh9WbyCUk8kpJ0zLkl0wUJ6swVvcxwnpnKEh5GGZajXD8JyUHFjgDUtwybNMvMmcWoZ6mDMNILgJ7puvuP1M= Received: from SJ0PR04MB7776.namprd04.prod.outlook.com (2603:10b6:a03:300::11) by CH0PR04MB8099.namprd04.prod.outlook.com (2603:10b6:610:fc::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38; Mon, 18 Dec 2023 16:01:56 +0000 Received: from SJ0PR04MB7776.namprd04.prod.outlook.com ([fe80::9511:64b5:654e:7a8a]) by SJ0PR04MB7776.namprd04.prod.outlook.com ([fe80::9511:64b5:654e:7a8a%4]) with mapi id 15.20.7091.034; Mon, 18 Dec 2023 16:01:56 +0000 From: Naohiro Aota <Naohiro.Aota@wdc.com> To: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org> Subject: [PATCH 0/2] btrfs: zoned: fix bandwidth degradaton Thread-Topic: [PATCH 0/2] btrfs: zoned: fix bandwidth degradaton Thread-Index: AQHaMcuGvPcjWBjdAUGW1SH9eQpYyw== Date: Mon, 18 Dec 2023 16:01:55 +0000 Message-ID: <cover.1702913643.git.naohiro.aota@wdc.com> Accept-Language: ja-JP, en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wdc.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR04MB7776:EE_|CH0PR04MB8099:EE_ x-ms-office365-filtering-correlation-id: 594ace91-7f4d-4686-1029-08dbffe2a89d wdcipoutbound: EOP-TRUE x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lTlNnaRJN9pQSySRYpqmfhgjfGvsDf/t20eyRB0+9WNma20uyKgeRfpSBNifD5fXO0wIeX3szeJP+bjev43x2AZ18Vz5Yn4INQaX42+aIya0LRX3VNJdjvvUlnDxaf3ZQIjy14dIPytbNz26WwqfCp1cPMPQUkDtGFhw33jX+WI79vm66Ve1qDOn02oQOkyKzaRjDGIkU8avV2HzFCeeaPko7gaqMT/9CvZ/q/20uYtgbgo6x/AJ1ld67f4QE90VaMU5pLJcHJyvo9ncy9oO9wsu3HbIeg480P51kn1hPL7c+S7Lp0mnpctXCk+oSqxKLx3kDsiAlZS6wucUBzA8BX2Vcxzthx/t9D7971u7D4JUhU3+FwVTpaqWJ3ghn8Y3t6PQ66uQq+RmZwOr1830VTR84BbezSBm6zlk5RbEa73ho3nrZnB7rkivHl/aMyideNR+PS1jk1Bd5mVpmEBFyNIkAPZYxKmJiWlPAaAIYMBqSVIWNSJALD6A+OviivkINxNvoQ/m8ic7AQ6nxpopozQ+AHtJ3nJ5m5EbiN1TyhqE5bfPdD2X3lI722YNnD2O/S6EAOYzanpRp9kLibHM1SZFuYxzk3n61WPmXkp5dBZiSDVrP2po+6N3hJCZP027 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR04MB7776.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(136003)(39860400002)(346002)(366004)(376002)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(38070700009)(76116006)(91956017)(82960400001)(99936003)(86362001)(36756003)(38100700002)(122000001)(83380400001)(26005)(71200400001)(2616005)(8676002)(6486002)(2906002)(66556008)(66476007)(66446008)(64756008)(66946007)(478600001)(6916009)(316002)(6512007)(6506007)(5660300002)(8936002)(4744005)(41300700001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: hFTUCjIbI5dDjkK+JDsSuDGU1P8to4xcR3VBlCwRM2dTUG+k69kXNH1zhEmW9O9vyjc8Q4DaxgWiOg0lv078RMFF42/uQalgFbVh7lBKTl9+NIq1XMr1pf9C3XGCz2ghOnZAW8tRm1WhZVUbIurDeQaMvKaQOdRvpAyexFn/AyQVUg5M3SSiDlxDkY22KJYp1Cm8s00N1bc7c+6kDTV8iII4UywQf5OYwsmLgKqGzqZX2jU2T93He0zxLlhbBTVcoiJrbsGFK6h/5+86drACoaW0WHkkZp8w5qBbURTl3G1QpZ5VZ4jD3v8lvV0jiO7HT33nGclfNonThKO/AfqpmFKOwkxjNyNUdgn1bdoy5oKgrXnnj7TMLRtBdRjHA+C8AjhBN70UQy/nGqzt9iN8+3Zpva+BnuJSAkwSL9ITomBSWrF/1Xi8oVrceR6PB3eqsD1ZqEt+vuJwF/u3k1Km30GopD3vHM+4tr1Xpx+vu1QFJVlNGYs2XJZbB0HyJDXm6Z1CBTPlfjd/zpdNjrU3GLFu8UTZ66Vu5y0ty2rUJZaWXs+gIZrBX2BPQf2xnrbUB5e2iGFJ4tFy450Jaf2sOxMj0XrQ4FPVLTtOakxYNMQ2BNIO5E/A/vb2IPPLAxWjZ6/xPtDulYUba2hjQJh5cRjTnbNnJCfiwLlcqadcui1hJa3QQq7Abff4djbIm6DPY+CQUcMjtmn2FVyOY1EkBBEX5U5EJmsaOYFygwDc4tW9i3UnnqCxvNle30Z9UmYqtjglJM2Ill9GeIczo1dgciEB1AOFEXzjL3u60A63JkYY66CoR/pWTsw9PSaDfBK1LMgYga2pgtA0vIxSu96jLg5PV68V+RggVd/csJ37r55en6On0b0kttEXzAzvQnQkXicETQBBhhpCKB87UC4+yy5Kv2PRSdk8DgPCa2zsn7/fsCMUepw6gl3xyk1pNhGWupW2lFisU32OFXE08c5/ClxEvnF2jc2eredR3oiyPGxJkNoWB4rALcxKwtzzqosmmDX9/z3TzwJNRlNJXWGtght/sgxb+LSO3s1j1OJf26AqArVQMupl0OG8UgnM2pY0gKEuvXJiKUOgO1uJ9Z/PKBa15VvwZstL0p099hj/zh5ilTmhIdZvdIA6ciThK+kaklgLT4bN2YbEqFsPFmdv8aCH4aGPmgCQuIP5eHcJzKrfGvgEOCJYPEezGuzlpGslqEaXSqJdUg3qWmP0ZbuvTwI1uoTzrkEmB8hg4zAfPxhVULcFH7Wd0FAnYjB4/x8ge1UuBxgfByNMVtrpNZlVGbVEEJ1IXcEyABOABPQ2TdtN5MQepId74EML4uJ6Ag39e5KKEKOCADAKF/UNgzllmkPhdiYWxRqhyLJgijcohVzdmS8qX2jXu2V/u27QsghSB0x9IjSHIuUKj7gydfDfrtNMGRpqW9mz3vYDz5CaHuHpcS+TlVOIaXDjwlvN1uxSwSvrXON8Ennvz9sAv0e0k6gIP75nz+FqdEi4v+oTrBaUvp9lSWAkxciN6v72C+0Hg0dw/1ZedBb/LlOxcll+AMY8HiTCtx7mGmMBvgo4AGeWlOTI4HoCHblxKasd+k4WxnWMY7XhbgsSgvWhURK/fQ== Content-Type: multipart/mixed; boundary="_002_cover1702913643gitnaohiroaotawdccom_" Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: <linux-btrfs.vger.kernel.org> List-Subscribe: <mailto:linux-btrfs+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-btrfs+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: vMWpy4PSFolztWT/gNgOcCNZO1TlBB5cw+hpblN2gMeBtuBtSLKMpq4RPnSB5g/YX9Bl3dpsEufYKCfg3P1B9/Zmbidm6vV/Z7c7iVLfHetIfTNmxP1InBqvmUFa1nMFGy0GC1g5GOxljnfjJ/u6go3LNdUvnkh1A8yQg3G4pYN/qSigA4M55BA4XMYBeMJwSTGTY+uD2KTS9zwi3FoElP7MYd7NpS+u7h24snkCrdFtD+JtwWYefzjeop8r/7kTQQTS9wG331UopVHcQlDVjSKDYkdpWE3OsGB2mqE6qCXO/xkhiCQaqAfcwb80vceziljVu4L3tHQEkTvdWmRSmAnOiJ62HIpf/hQxRjiZhxOBE04aZMCvAPKkG3p49j/l5JKxUBHlohuCzzNETnyu1iiD2DmTJ7ixbDWIKN2sOaZ+B4E5dxOHUNFz7lbEfmcf+18DGejZRqKEW2ld3+GgumpmpXtjbHD2oYnr706oVtqA7LI5cDfEIcmqD/VxsVbGk2RHq2KDwcN8GDzea1JLwaTJ+uDz7YjH6cJ4mb0wpvKD4n1vImurxXlSbYJq7kB9Ry9eIofVdsuEanqkRYuD0z8LkxGzSOntACy5OXy5Rk0Us2m6brCSgSC/Bw8CVJ6d X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR04MB7776.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 594ace91-7f4d-4686-1029-08dbffe2a89d X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2023 16:01:55.9365 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: h49DC8t7DB3wZFb+93/7wYLIXxp++z32DUuJfTJvSILVf3Ga07mqmrRMEn6SckT6KH3mNLwsGu7YMNweozsBnw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR04MB8099 |
Series |
btrfs: zoned: fix bandwidth degradaton
|
expand
|
For the series,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
On Mon, Dec 18, 2023 at 04:01:55PM +0000, Naohiro Aota wrote: > Writing sequentially to a huge file on btrfs on a SMR HDD revealed a > decline of the performance (220 MiB/s to 30 MiB/s after 500 minutes). As > shown in the attached plot, current btrfs exponentially drops its > performance. > > The drop is because find_free_extent() need to traverse a lot of full block > groups, trying to find a space. > > This series fixes the performance drop by choosing a proper block group > from the zone_active_bgs. Since the list does not contain full block > groups, there is no need of traversing the full BGs. > > Naohiro Aota (2): > btrfs: zoned: split out prepare_allocation_zoned() > btrfs: zoned: optimize hint byte for zoned allocator Added to misc-next, thanks.