Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp123924rdb; Mon, 14 Aug 2023 11:23:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGb2f7hWHmBKXWvOey8/JUl3EyJlfc5sVgv8WdeUOyC7Ata27k/w9B2PbGCwu1lKOeph4Ke X-Received: by 2002:a05:6808:2099:b0:3a7:a379:63a with SMTP id s25-20020a056808209900b003a7a379063amr13542428oiw.41.1692037431155; Mon, 14 Aug 2023 11:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692037431; cv=none; d=google.com; s=arc-20160816; b=yn1nCn8comdlyPMYYDl7vQfAE4E0/V12yvDpWTdsESCFL8eh1qbmMExrAZ7WG8P7Fm rWzfzs+KISg1k/uNtlOR5trLmyCcemUHex0CbiE3KYRnwBPiQSOvRWk1H9VUzVk9JfRa Mb7Uuwyt8t2kbC0n9yaBxR/7H8VY2O8jn2R+/Ne+nLx5v0e/ndz4djBFLw2C5e/KTE8L 6aliIOdK/mt5TnnLtZEdyaqRsAFk0IPWvCtgkEEOIeilxRvSZ4UM1A5LMsX4c7Tse1yi WDOGx8Zcq6P/BdlNivv0gCv70WmkWD9QKRqxIg/557XjYzeaIAyZzqqGwOafPsn9Mpab gQlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=veLV2Qd0SfYkFO8GrP3MIDLoKlYVhjhAWONymLGBmGk=; fh=1Feb1JXt2Dt8yu+7AJs9zOjE+zylW3fU3D86G8q+Vcc=; b=XqeJ5GI1sxIH/690FDp5rB2XYqUKS1DyiY9wKJYl1KkRnHv0eQ1DAdGgR4TW6Ho5H3 Ty1o1/Xp/mc78GsHpAiAfrNL34FOjCgXeDh5IKS3Majh4kbuELBIz1X0Gcz62NV4MMiy GRWiayI395GqYSmqL9mfUNMLUseKYG5WfOVMAJFon/hFYky3nOkvSCv3/xaSkn/ZiyoG boJNAH7NN/y+BhnxQ0OQr517xadupr44iIyWuBggoClrtKVsLKPRDYisfRLcdqWWHnRI aU3x3Cti6p7QrEK0pNuMv6u8Ks1jhljJvakaFMjVMMiOnODya7KKw3Iov8CB7ouqoNGh psBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv68-20020a632e47000000b00563ee39a642si8670412pgb.308.2023.08.14.11.23.37; Mon, 14 Aug 2023 11:23:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231474AbjHNRyQ (ORCPT + 99 others); Mon, 14 Aug 2023 13:54:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231558AbjHNRxv (ORCPT ); Mon, 14 Aug 2023 13:53:51 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 45FBB10F7 for ; Mon, 14 Aug 2023 10:53:39 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1E2BC1063; Mon, 14 Aug 2023 10:54:21 -0700 (PDT) Received: from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C44E73F762; Mon, 14 Aug 2023 10:53:37 -0700 (PDT) From: Robin Murphy To: joro@8bytes.org Cc: will@kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, john.g.garry@oracle.com, zhangzekun11@huawei.com Subject: [PATCH 0/2] iommu/iova: Make the rcache depot properly flexible Date: Mon, 14 Aug 2023 18:53:32 +0100 Message-Id: X-Mailer: git-send-email 2.39.2.101.g768bb238c484.dirty MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Prompted by [1], which reminded me I started this a while ago, I've now finished off my own attempt at sorting out the horrid lack of rcache scalability. It's become quite clear that given the vast range of system sizes and workloads there is no right size for a fixed depot array, so I reckon we're better off not having one at all. Note that the reclaim threshold and rate are chosen fairly arbitrarily - it's enough of a challenge to get my 4-core dev board with spinning disk and gigabit ethernet to push anything into a depot at all :) Thanks, Robin. [1] https://lore.kernel.org/linux-iommu/20230811130246.42719-1-zhangzekun11@huawei.com Robin Murphy (2): iommu/iova: Make the rcache depot scale better iommu/iova: Manage the depot list size drivers/iommu/iova.c | 94 ++++++++++++++++++++++++++++++-------------- 1 file changed, 65 insertions(+), 29 deletions(-) -- 2.39.2.101.g768bb238c484.dirty