Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1009456rwd; Sat, 20 May 2023 10:43:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ewDc/Gb/jryRgNvMDUzs3qHMZfupW/0onE1bYCaQ/EAG6CG5pR6/awes0dINHSJ/IgyVl X-Received: by 2002:aa7:88d5:0:b0:63d:3c39:ecc2 with SMTP id k21-20020aa788d5000000b0063d3c39ecc2mr6455998pff.12.1684604595043; Sat, 20 May 2023 10:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684604595; cv=none; d=google.com; s=arc-20160816; b=myiMBKRZPlrBohqsHOiWiO5G/UV1FSu17lD5rnvbMMjPFQ4BqrwpsXIH+UtCOmTwV4 n6/xspZXNdz1o/O4HH7lGcmoKFrv8ZqTsJtKhjqjvgBAvXuShzQLwym9h/VMlT1NLTny Q1mnjrixNgGFyuDS5vVQxNIGaB1tZE33TnnKotvuGTjO6ta3nsF6oYYxKrKot40uFIvQ gs2GVMfXRH/rBzIRlVllzo8WKDy0Lp8iGBj21sUxtGHdF/F9kn8sxP1tIAxnowGuz5iy Y+KxS8JA1XHx838NN8nypokiYJoiVhWpwOsPCaRQQBaqNhMzpZP1BptS8AzfAb70gXd/ k4nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PAKTVi6kPK2+GPxUAooTMGkTLq/AdOiV7gyVPMaLh6Q=; b=yU9fqFYoEaR/5sxRsttYNBlcEQNgDoc3VxqZfMyiYAR/SzgQrCPiMPi8LGLNA1JstI NE8hsJyKiVMqYu2dIa5S+NqBMSvCD/+42Lb301kZWuIh7suvkaLH7nwkBEAJW7PRKRuA h5E9dhiLM33uJnYPeHSuzRY5XuCKYX5yB+QF/hKJu7vpqfOlC+cWsj02gs7ql6NhTE4m LYAYv/knInBGec4I027tuED0tjiBSj9Ioctr4D4cgGxG8/zYvzMSWVpnF9S7Q55qJHht a21539ir/+LGj1wKa4iL+Ce+I9nb5JFA7uIFCJsqLaK4HTKHCBBSrJa1411WtPOkE/6N HFrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vEMWJTV7; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a27-20020a637f1b000000b0051b9a1e823csi1755652pgd.137.2023.05.20.10.42.58; Sat, 20 May 2023 10:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vEMWJTV7; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230093AbjETRjx (ORCPT + 99 others); Sat, 20 May 2023 13:39:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbjETRjx (ORCPT ); Sat, 20 May 2023 13:39:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B94F119 for ; Sat, 20 May 2023 10:39:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 730FE609FE for ; Sat, 20 May 2023 17:39:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CED16C433EF for ; Sat, 20 May 2023 17:39:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684604390; bh=6P8/lVWQpovLRgNVksE4mLA77F+U+8OUJHrd/WGg2qw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vEMWJTV7sWJ7gL1RtZvlC8ruLD7gn36lPkF3UpMX1BbrYHJV+JbnrO+Q/RkU+Z02O 7eYztg/v5LIdiwmiMB6fLSNyChtDx88ZZ/dIeIgR80PZl2Ro8UEV3li0W5Y0KFvwkU BehxjabzB0/zZNZFLBqiOSVaf+zSUoirYCFbhQcxAiJv4KY2RP6iAL1j98tNGwCPGN +IhUbdXDXB3OYEd0fmI5SMe5TRW1K/pyfpVvJmCF2OmBgdiyH3+qiWES5yKhnK08NE mUog0BN2xDPNHQf4m/QLe/OPW4bOympNY+JY7jbyLEBeaDEvqbOLI5BFAwVMRFsfKf z/6Jjjb63xDGQ== Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-4f00c33c3d6so5190930e87.2 for ; Sat, 20 May 2023 10:39:50 -0700 (PDT) X-Gm-Message-State: AC+VfDy1w4b5vOwTgBg28eEBdoWprqBcARBrwFrmki8ZOXgwaCeEM8Td kD065cTAw09hz4fDi5L+CMH2ZH9lA8KW76iyBAE= X-Received: by 2002:a05:6512:376d:b0:4ef:ed49:fcc2 with SMTP id z13-20020a056512376d00b004efed49fcc2mr1920720lft.26.1684604388884; Sat, 20 May 2023 10:39:48 -0700 (PDT) MIME-Version: 1.0 References: <20230520173105.8562-1-ebiggers@kernel.org> In-Reply-To: <20230520173105.8562-1-ebiggers@kernel.org> From: Ard Biesheuvel Date: Sat, 20 May 2023 19:39:37 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] crypto/Kconfig: warn about performance overhead of CRYPTO_STATS To: Eric Biggers Cc: linux-crypto@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-crypto@vger.kernel.org On Sat, 20 May 2023 at 19:31, Eric Biggers wrote: > > From: Eric Biggers > > Make the help text for CRYPTO_STATS explicitly mention that it reduces > the performance of the crypto API. > > Signed-off-by: Eric Biggers Acked-by: Ard Biesheuvel > --- > crypto/Kconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/crypto/Kconfig b/crypto/Kconfig > index 42751d63cd4d9..fdf3742f1106b 100644 > --- a/crypto/Kconfig > +++ b/crypto/Kconfig > @@ -1393,6 +1393,9 @@ config CRYPTO_STATS > help > Enable the gathering of crypto stats. > > + Enabling this option reduces the performance of the crypto API. It > + should only be enabled when there is actually a use case for it. > + > This collects data sizes, numbers of requests, and numbers > of errors processed by: > - AEAD ciphers (encrypt, decrypt) > > base-commit: f573db7aa528f11820dcc811bc7791b231d22b1c > -- > 2.40.1 >