Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp754376rdb; Fri, 6 Oct 2023 19:56:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqA1KJ5dD7oHfhL2Fq5mz9Z280TIm4kx6giVGLMJqnRPbgmBT4UTrCuvmpRyEVtCnlxDax X-Received: by 2002:a05:6808:188f:b0:3ad:f3e6:66f8 with SMTP id bi15-20020a056808188f00b003adf3e666f8mr12136906oib.41.1696647412461; Fri, 06 Oct 2023 19:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696647412; cv=none; d=google.com; s=arc-20160816; b=kAawhTFg7smfrjV5zQ9x/AiJ3SxEb7qxrmTvPnf1c9RIK5YttySZJoLqnD6wiyCFyb teqIwS6Psf+AbcgdKP/TF2Ee0dZiQT+cCFLcggUidgegnwinYY4LjS0F0mRCLwQTzxSu 4dChMSKmjapKamUJDXVsBQmotEWS1deZmfjVjXzolFxJnsL17UCa/CEmY8KhvR7+Z4hi BdFiEUfRL+JyvATFoh8G5Xmu0L9tA+xX77AKyasqcXxsGNEP2EHK9SZ0whOAPq7BZkd0 kA65ut4Rs27yZdpVkDfiY49I9TxLXStS3SS/dflSwyzQvdYgiu5mWV3DNjpoHjM/1wVY BxvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=L+DI/2Kb5qxBK9Pa3O2StR+BTSspA80RFslHwGtqjxE=; fh=52ExxW9obACgYvMbnqLF2MtAlILsePU20osSqdrhemQ=; b=OjZtO9bqR7NYkKlsCbuGC/X+VjnYKqxlinPHr5hy+7aPKxr2FFMDEPy40SoZ7H+vVo aV4tJZDlo+mPNzOy36EZmluTCgP4VF+NEF8iqQDoEvDGgpzjvzp9IYzdn9MNnBuuqYhV ouXCl5OAiyx5I6soqe+jWe4xtdaFHGn6q6xwzPbplOyFIBHeDavfISnRLHoD/JiZ/3CX KTY/Xui6syhdj3TdPPKnx/G70S7UIXS8+XBhwVbU0RXGpZUMmU9o3NkF8vRyO4cljKbD yuZPxUMbMySp8K3ACrNoSlgQkF0LwrDGH84Zln6xSdkyVZww5zIJqtA7+tFy2FKtXc63 AO4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id l28-20020a63701c000000b0056949ba3f3fsi4985068pgc.253.2023.10.06.19.56.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 19:56:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D8DC685C7A94; Fri, 6 Oct 2023 19:56:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234083AbjJGC4q (ORCPT + 99 others); Fri, 6 Oct 2023 22:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbjJGC4p (ORCPT ); Fri, 6 Oct 2023 22:56:45 -0400 Received: from wxsgout04.xfusion.com (wxsgout03.xfusion.com [36.139.52.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04FC9BD; Fri, 6 Oct 2023 19:56:43 -0700 (PDT) Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4S2VHx3hHZzB0SM8; Sat, 7 Oct 2023 10:54:21 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sat, 7 Oct 2023 10:56:31 +0800 Date: Sat, 7 Oct 2023 10:56:31 +0800 From: Wang Jinchao To: Daniel Jordan CC: Steffen Klassert , , , Subject: Re: Issue: Can padata avoid dealing with CPU-related operations? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Originating-IP: [10.82.147.3] X-ClientProxiedBy: wuxshcsitd00601.xfusion.com (10.32.135.241) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 06 Oct 2023 19:56:48 -0700 (PDT) X-Spam-Level: ** On Wed, Oct 04, 2023 at 10:52:57AM -0400, Daniel Jordan wrote: > Hi, > > On Wed, Sep 27, 2023 at 09:25:54PM +0800, Wang Jinchao wrote: > > Hello, I have a few questions about the padata code I've been studying > > recently: > > > > - Why does padata use the WQ_UNBOUND attribute of the workqueue? > > There's background in this series: > https://lore.kernel.org/all/20190813005224.30779-1-daniel.m.jordan@oracle.com/ > Summarizing, the use of the WQ_UNBOUND attribute is primarily based on performance considerations. Is this understanding correct? > > Because I've noticed a significant maintenance cost related to CPUs. > > Are there any specific benefits? > > Aside from what Steffen said about serialization, the pcrypt cpumasks > can be set from sysfs to control where parallel and serial jobs run. > > > - In what scenarios is it necessary to specify a CPU for serial > > execution, or is ensuring the order sufficient? > > I'm not sure that it's necessary. The way I read it, at least, it seems > pcrypt uses cb_cpu to load balance serialization across all CPUs allowed > in the serial cpumask. I recognize that the key issue isn't the capabilities it can offer, but rather the underlying necessity for these capabilities. If the need isn't particularly strong and the cost of implementing this capability is high, should we consider omitting it? As previously mentioned in another email, I'm seeking guidance on how to effectively evaluate the timing of padata serialization in a network environment. Could you provide some insights or pointers on this matter? Furthermore, I'd like to extend my sincere gratitude for your recent responses and would appreciate discussing my future steps with you. Thank you.