Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3362468iog; Mon, 20 Jun 2022 18:24:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v3k36yI67rIVst4Tkzw4BYPXKRd7inbiKUINcXAp/IDkh6i0KpS33Nyrn54C3Ei7H/3F+k X-Received: by 2002:a17:902:f114:b0:16a:133a:b1fe with SMTP id e20-20020a170902f11400b0016a133ab1femr14238202plb.66.1655774691954; Mon, 20 Jun 2022 18:24:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655774691; cv=none; d=google.com; s=arc-20160816; b=FTqOSzxMtMEBucCJ3I7AF9w3+1S0GAgtfSglC81QAVH53kSqR2O22liYgAbaO9bG7J adPdPtbgGkjOKS2w0w4P+hWFSi27t+RfGyT219ZQVHuyoThn9quNayegm6EQwGEBa5vT v9SmZgbrO9XVoOuiEc+JESou3MJ3208bvYluIcZDRa7RvDI+lR1T2LVje5LknxI4nqBm bZcx5JPRBYOfrM0vmdXMNyCT7PXoWeWLaa8mlZxNDgmGLG4w9ioZj0Xe43UGijC0Z7gH R5d9L68IzoG4PCLIHqUxkuVRxLXDKlPnyEIWq5xUjOMy8lfpwNbIT3FSJsOYczOQdjz5 R7nQ== 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=GmWl9nb0ZzYK+qmo9Ld+y46uKE9m83tl1rQ/V6H87WQ=; b=ZBSk39dMU/Wj9pH8sY3hoVSiQnwkYxQVg51wFq+M1gs2i1r2rq/LTKxcnnXxq1jiFY 5lj3nQ8w373gDazKHS940th61fVdkhbVOYpoTk8cEOIE4uup8OBvZ7UI1BrwYFsfQbBw BRyR7zpWunoSRNtxB5agMCx/xwW1YZEiMNbSyesM+W9QQ6mQA77W8F8HWYdo1SB3tH11 GJPCeOTRRutOs9NtRXlomJNcpZQQ3hhb7z09AWda9gUAYdK0whRtLX8VWhVk7cYJW9Re 9g9zTl9p7mYNMfEijbWhosjT1vULNK8Qg+LfFtVpubX6KcZizwpLWYDOwICQI+eaS2ax altw== 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=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a170902d50d00b00163a2009c2asi20471778plg.5.2022.06.20.18.24.38; Mon, 20 Jun 2022 18:24: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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241268AbiFUA6M (ORCPT + 99 others); Mon, 20 Jun 2022 20:58:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241445AbiFUA6I (ORCPT ); Mon, 20 Jun 2022 20:58:08 -0400 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA33D9FC1 for ; Mon, 20 Jun 2022 17:58:06 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R591e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VH-cNEa_1655773082; Received: from B-P7TQMD6M-0146.local(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VH-cNEa_1655773082) by smtp.aliyun-inc.com; Tue, 21 Jun 2022 08:58:03 +0800 Date: Tue, 21 Jun 2022 08:58:02 +0800 From: Gao Xiang To: Daeho Jeong Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong Subject: Re: [f2fs-dev] [PATCH 2/2] f2fs: handle decompress only post processing in softirq Message-ID: References: <20220620173843.1462198-1-daeho43@gmail.com> <20220620173843.1462198-2-daeho43@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220620173843.1462198-2-daeho43@gmail.com> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 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