Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3992049iog; Tue, 21 Jun 2022 09:51:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tsSBi89e3D+TxIC9ROcqy+aNiKOHLJ0/uCxtRx7rlXbzeWnBmxIjxtcjUkG1pCtXvJcUNJ X-Received: by 2002:a05:6402:40c4:b0:435:80ed:c8c7 with SMTP id z4-20020a05640240c400b0043580edc8c7mr13238197edb.414.1655830281476; Tue, 21 Jun 2022 09:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655830281; cv=none; d=google.com; s=arc-20160816; b=ToCTFxlnZ6QU0cyq880o63vNAyQBfhKVPxu57MDB6lurPb0H28M1eQ1lfI8U87UdCW uuxaK4qYiqEIESqvs4RHVYxwtdoul4XVqU29XUrl/6QtU3Q0z5TUDuQRUXkO476JiG2S gwe8wkIM7bklbFkAfwQvFfSt8j0U1GTPQhQTd8SICnHzdUBxZce0ijD2ELKEdTpL/MD/ 7lXzk3fnArxWG10AkfxhI9PVQWkb5PPmE8kMof/+jNUkbbKI9pyWndKnCZxmKiv3nRup /iPXhfphIxXT8PhjMFxXE3chZtmp6Ue57KqN8bKTge4BPZCbr6bqrBUhC/xrwPphn1SK rhfg== 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=DaVXixvInX7Tije8Ym//sMBlj70LFPbdDShlLVQqFLs=; b=R4r+FLc4EJqZngFk/VXq3t4kszV5LZxCh5GyFqOUHuGxjoNr9b+q3enwXY5JESWEyV r7jtsnYOeeVmY0vTEbkKcKZF64PtcCUdXrF6AxlwMnEOQc99kS8Zcwy1KrbVV/IbVIEQ loShCY6LT4GVPXr7MOtFqCtKYEw3zy9lSuxsgFbwgVvlBihqnUCR4zphxHPkEGsyAE6l VNcZQcCs8g3AWvAexiaIzfCDRK24mVX1/H1dauGIizPtkW9GSsdc40AHZ+W//NsBb/PF 2HEzJmNUl5+RVa54ltdYTefov5yb5DLBuYOMjoaTakT7ipSYZgEO4mS4vwT+0pE/5ZJz 0asg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="J/SWUBYS"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bo10-20020a0564020b2a00b0043575218a7asi8825255edb.460.2022.06.21.09.50.31; Tue, 21 Jun 2022 09:51:21 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="J/SWUBYS"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353723AbiFUQK0 (ORCPT + 99 others); Tue, 21 Jun 2022 12:10:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353491AbiFUQKZ (ORCPT ); Tue, 21 Jun 2022 12:10:25 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDA07DE1 for ; Tue, 21 Jun 2022 09:10:24 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id r3so25284227ybr.6 for ; Tue, 21 Jun 2022 09:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DaVXixvInX7Tije8Ym//sMBlj70LFPbdDShlLVQqFLs=; b=J/SWUBYSO1uT8oN30UoSsUFLbBMwF1LdwJeSz7ZJajlGm6CfvEEn8+sanhyyFTap73 kvsJdepoWsBMC/WVi+BYzpT9h8sAVRRJMi020alPJgZSLJxrcvhGidhEgN8Luek65GpT +s2Qk23ok6Ur0Aojv1+1x4aO6I1GIP6SUzkYYNRu2shwAOkGcd46PJS+7gBNt7liXILV G0MS+nmwnoI4IkghITv48qE1c6vlLowScBNEP+gvIKeit4BDTXdQM1GUQkYfowDHoh3K npPCwAFqfW9DkVyWHl5kaIDZ4M9fZTEYPbXDg6LPG7xARxYheWJTS0b3b9UbsIB0buit brTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DaVXixvInX7Tije8Ym//sMBlj70LFPbdDShlLVQqFLs=; b=bZybxFOzMuZOcKQGWpr1lszdsfRRoxJJB5P6AEtcUPW7qQ66q6SD8NLND4UhUXI8GN Q3ZYvr7v6jfZQKd41hODNornYfpVYTNigfOCrHG1ves/0uX4K1huXy6lXKr7L2PENic2 eVUirDaHj1b1D22DkfB+zi91XMtv9JMeoGHxqv4fGHE/AjzYrr0GGW9WeTbxD6+7ZnAr XXtVgsU4K+zGdBg8NXLVH8p+hRMv+yCB8eDjFo6B7ESZJ9K5D4eewds0TaIvkVA16Aor Pgor0CaGzXzbaiAk71InGKiN/OxphMFoeJ19nf+pg7OSkEpfCvCDLomIeo0IuSL5LqgS V6JQ== X-Gm-Message-State: AJIora/K2VxLb92vTa/hdnb2skhAZ8SyhbGbuyZT0+x4dnPPzTTPZ/MZ M/wHRTdIEsf5AJTfSPjSE9broR5Q73mWeNtcIUA= X-Received: by 2002:a25:b218:0:b0:664:6da5:b5c5 with SMTP id i24-20020a25b218000000b006646da5b5c5mr32419923ybj.6.1655827823953; Tue, 21 Jun 2022 09:10:23 -0700 (PDT) MIME-Version: 1.0 References: <20220620173843.1462198-1-daeho43@gmail.com> <20220620173843.1462198-2-daeho43@gmail.com> In-Reply-To: From: Daeho Jeong Date: Tue, 21 Jun 2022 09:10:13 -0700 Message-ID: Subject: Re: [f2fs-dev] [PATCH 2/2] f2fs: handle decompress only post processing in softirq To: Gao Xiang Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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-kernel@vger.kernel.org On Mon, Jun 20, 2022 at 5:58 PM Gao Xiang wrote: > > On Mon, Jun 20, 2022 at 10:38:43AM -0700, Daeho Jeong wrote: > > From: Daeho Jeong > > > > Now decompression is being handled in workqueue and it makes read I/O > > latency non-deterministic, because of the non-deterministic scheduling > > nature of workqueues. So, I made it handled in softirq context only if > > possible, not in low memory devices, since this modification will > > maintain decompresion related memory a little longer. > > > > Again, I don't think this method scalable. Since you already handle > all decompression algorithms in this way. Laterly, I wonder if you'd > like to handle all: > - decompression algorithms; > - verity algorithms; > - decrypt algorithms; > > in this way, regardless of slow decompression algorithms, that would be a > long latency and CPU overhead of softirq context. This is my last words > on this, I will not talk anymore. > > Thanks, > Gao Xiang I understand what you're worried about. However, verity cannot be inlined because of its nature triggering I/Os. Except that, other twos are almost inducing overhead comparable to memcpy. Still, decrypt part is done in a H/W way mostly these days, though. Thanks,