Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1166477pxa; Thu, 13 Aug 2020 02:10:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx52uPkzx9meBD6dFxQVGjz44F62Aqno8jECEaLLyHgFsO4Qv4PlHN9PeSBtajk9IX6nThc X-Received: by 2002:aa7:d948:: with SMTP id l8mr3770506eds.371.1597309851615; Thu, 13 Aug 2020 02:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597309851; cv=none; d=google.com; s=arc-20160816; b=POGsMJacwqPeP4TVPzIqOsHQnMQEhbbX9x28YyLZiE5z04MzHEzCQq1NuXM9mKfyDR +eKULbFwb6EZosvlgcXJ+tBicr3w1B7R3SPc54wOm1LlhYyaBNxHuSUHeXjmDPG0SW0M tFrmxSxhD6vsCRe7/XpPkpYc1GJkHLgV7aYehrlVIF175Cb3iYWufM+F3AoPJIuyBnBA OEe4SlOnRPyq2wEKHL4jPxGo2QfLDAF3RhWmz2oUSRsXAY+MQIpjj1RjhWm6s0XApa9U HCFfCaS7Rl2WD9Q+fR7AfNz1VSTG6Pv0QMXSwb4UtAjCZ9dVNVPyAC7FaCaQf7RvbCTq SjqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=nOr3bFdmslfwW9bHK9RKFoTvtfidsW2MjLXkyEkIf4Q=; b=WVhKTCaLBM3QZIhTFEur3cg5tfn345eIBh2DHVWqypq4pxsX5Ub/sWKRLuufqJ0AyW DQnHdOcHpEFyV5WNe5ktoGwRbGQxHagjsNTiAobwt9PS8i7Ed3OvRyGq8qXHHRK/39XM x/a3E9IY3u7ERLw68bGT19zBWVSLmvQ6VgzCAv++n/Djiw2wB9cSG91cSRtejq1jI6IK zfdX+n/xcyhloROyuewWg8ER2ObVuDjAvMBNuwwLfNKM/V7F88hxRjeFkxxuvp91wXJm ldnabynuE/UlID5EQS/BgCH2pcz3TkreOlwNQEEfvdAsx0IU3w0W0xEZ741+SxMA9qZ5 fxig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si2818439ejf.352.2020.08.13.02.10.28; Thu, 13 Aug 2020 02:10:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726427AbgHMJJx (ORCPT + 99 others); Thu, 13 Aug 2020 05:09:53 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9800 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726107AbgHMJJx (ORCPT ); Thu, 13 Aug 2020 05:09:53 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 9C59BBD47B20F3BD603B; Thu, 13 Aug 2020 17:09:48 +0800 (CST) Received: from [10.136.114.67] (10.136.114.67) by smtp.huawei.com (10.3.19.210) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 13 Aug 2020 17:09:47 +0800 Subject: Re: [f2fs-dev] [PATCH v3] f2fs: change virtual mapping way for compression pages To: Daeho Jeong , , , CC: Daeho Jeong References: <20200812051711.2147716-1-daeho43@gmail.com> From: Chao Yu Message-ID: Date: Thu, 13 Aug 2020 17:09:47 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200812051711.2147716-1-daeho43@gmail.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.114.67] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/8/12 13:17, Daeho Jeong wrote: > From: Daeho Jeong > > By profiling f2fs compression works, I've found vmap() callings have > unexpected hikes in the execution time in our test environment and > those are bottlenecks of f2fs decompression path. Changing these with > vm_map_ram(), we can enhance f2fs decompression speed pretty much. > > [Verification] > Android Pixel 3(ARM64, 6GB RAM, 128GB UFS) > Turned on only 0-3 little cores(at 1.785GHz) > > dd if=/dev/zero of=dummy bs=1m count=1000 > echo 3 > /proc/sys/vm/drop_caches > dd if=dummy of=/dev/zero bs=512k > > - w/o compression - > 1048576000 bytes (0.9 G) copied, 2.082554 s, 480 M/s > 1048576000 bytes (0.9 G) copied, 2.081634 s, 480 M/s > 1048576000 bytes (0.9 G) copied, 2.090861 s, 478 M/s > > - before patch - > 1048576000 bytes (0.9 G) copied, 7.407527 s, 135 M/s > 1048576000 bytes (0.9 G) copied, 7.283734 s, 137 M/s > 1048576000 bytes (0.9 G) copied, 7.291508 s, 137 M/s > > - after patch - > 1048576000 bytes (0.9 G) copied, 1.998959 s, 500 M/s > 1048576000 bytes (0.9 G) copied, 1.987554 s, 503 M/s > 1048576000 bytes (0.9 G) copied, 1.986380 s, 503 M/s > > Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks,