Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp273184pxa; Tue, 11 Aug 2020 02:36:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhjKlYM87Kfifn8Fa6i8F/RBG4+fg9DMf14WJA9+ThwOfKmImHkOFMQxbpEOhQe/ifeL/S X-Received: by 2002:a17:906:e218:: with SMTP id gf24mr26815093ejb.469.1597138596223; Tue, 11 Aug 2020 02:36:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597138596; cv=none; d=google.com; s=arc-20160816; b=QKWY9MrNDetsLgv1m4I4oVVTF26WI7aJRof9IN7qLO+zx4TuwStswwVV7lGhMFvqdd ePgAXErA2+2fifkEdLjP2RBWqqib7+Dz9zUuOHqaOWwvh1cBw2T0p3/ajEXJ3cvWBP8N 78rDWZAbvzyGThUEjGJnoHQtXkRdSbLtuXzXpFlXiNhIMwg+h5qIuoKrNFyUbUYtNwPg pQlyzVSk7W3iwXifKTvboG+gFn0jzPhoYDLDY/9nPvMGugLG28mlC3loXqdwMXxwVcti eceRkq6e0a3JMIFtLBGTPFDcmceqUkCmsWneKbvCgq4weA0wVYhVXe9lHI9E2dY/ahQ6 NeWw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Vr+YAPUn6N4dSx2qVc2bEJB62Hk13xcs0NQkMDb0a3E=; b=BM08xONV47zxLFZ5eU+aBmrx5axtGpVufi3UU/lppxCULXrIRw3/+uqCp6E1RmY34T HKjP7947ZN9uKL04FUCh7oiBV2lYw4uXzbhBxE3ypFGse3wgo3el1a7gIX4dSTlHoXcX bVpjREz2jnTtEL74Atk2X/BCxd0kO1FZygNdu/vfN15YzCquSyXxBOyU+dUEg+sGJAhl KKfGRN3COKm1ok75aGAGUDgsiYNaXRbHvpFLZsIffCXAycNsaSACLM5XDkDLg+J/42St Psgy/3vaXB3bygfqrmae9s2cCT/cUfwK7WYRH+Zpd5Y/D42K+lIwVdaThxtFvyqWqekj +jUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Omj1hGSj; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pg13si12562594ejb.681.2020.08.11.02.36.13; Tue, 11 Aug 2020 02:36:36 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Omj1hGSj; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728416AbgHKJdj (ORCPT + 99 others); Tue, 11 Aug 2020 05:33:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728377AbgHKJdj (ORCPT ); Tue, 11 Aug 2020 05:33:39 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09959C06174A for ; Tue, 11 Aug 2020 02:33:39 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id c15so6299178lfi.3 for ; Tue, 11 Aug 2020 02:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Vr+YAPUn6N4dSx2qVc2bEJB62Hk13xcs0NQkMDb0a3E=; b=Omj1hGSjKXZRe1OLMx57+tZ3KgMo68eDvuhMeeQj/DYbyY/7bi2vWawvkV4mlze3mN qnEHESnfoW5DC939GmMhwMZsoas8HUIUdt6AgPVB9vGCloiAQ++qW02yvHB6IQttb4zh T1E92N6m6cfdtDB6dVgLB1ILze8LIHAxDY+fn33rQXxQDxlyIrlcMlCg46v+BcyAig0r xHyFvYV+bAYFN7qxJKVnQ7aaOyzO+1i7VgS0KIxrf0jyFMI9wvFz91qcyTigQB3FgENs sJCl9sJmfxR+PmP2lpxG9KqqSDYWZhUqiH5aV9j3fTZdCM61iGBszPRB7+Jqma+kIzum 25Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Vr+YAPUn6N4dSx2qVc2bEJB62Hk13xcs0NQkMDb0a3E=; b=dk6PSYA4wGsujbVmBQwZ8aenRoRh9POPKWgVRuXHjsLmt8qrwdz2mK4vuRwQdjG/Oo xXDj907WQUq9SSHVHDEUdZk7U9JOV3Nf5u/Pp4z7apx+6g+Jsyf88DSb5xZo8N/AFA8h xQhZpdMfje/+z2tLotBWnspRaEs/vNS1Z6BFJ1hxcneIEMVaLhx2JLTdIf5Iqwtmqjtm amTgIrvgCaZdY1YjiYy6UwHEXJW15WLcmDBE0EZpOBMFqkpatxhs7E7kNL7ajAcOqw98 YHV09XdsuzynkV3Sb4FNHCsUP+/UQcg33qYoEU84SKAwTEd7rT6LEOYwDKBt0MdDxHMN Z7dg== X-Gm-Message-State: AOAM530Am5dDn9T7Aioguo7MUyu+Vsol3jMYzFXjMTDBnNADALeqEZao vYg0x3bavDHFsschJncMbZV2+RFxS9cYTCF8SWU= X-Received: by 2002:a19:ae0a:: with SMTP id f10mr2783256lfc.100.1597138417413; Tue, 11 Aug 2020 02:33:37 -0700 (PDT) MIME-Version: 1.0 References: <20200811033753.783276-1-daeho43@gmail.com> <20200811071552.GA8365@xiangao.remote.csb> <3059d7b0-cf50-4315-e5a9-8d9c00965a7c@huawei.com> In-Reply-To: From: Daeho Jeong Date: Tue, 11 Aug 2020 18:33:26 +0900 Message-ID: Subject: Re: [f2fs-dev] [PATCH] f2fs: change virtual mapping way for compression pages To: Chao Yu Cc: Gao Xiang , Daeho Jeong , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Plus, when we use vmap(), vmap() normally executes in a short time like vm_map_ram(). But, sometimes, it has a very long delay. 2020=EB=85=84 8=EC=9B=94 11=EC=9D=BC (=ED=99=94) =EC=98=A4=ED=9B=84 6:28, D= aeho Jeong =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > Actually, as you can see, I use the whole zero data blocks in the test fi= le. > It can maximize the effect of changing virtual mapping. > When I use normal files which can be compressed about 70% from the > original file, > The vm_map_ram() version is about 2x faster than vmap() version. > > 2020=EB=85=84 8=EC=9B=94 11=EC=9D=BC (=ED=99=94) =EC=98=A4=ED=9B=84 4:55,= Chao Yu =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > > > On 2020/8/11 15:15, Gao Xiang wrote: > > > On Tue, Aug 11, 2020 at 12:37:53PM +0900, Daeho Jeong wrote: > > >> From: Daeho Jeong > > >> > > >> By profiling f2fs compression works, I've found vmap() callings are > > >> bottlenecks of f2fs decompression path. Changing these with > > >> vm_map_ram(), we can enhance f2fs decompression speed pretty much. > > >> > > >> [Verification] > > >> dd if=3D/dev/zero of=3Ddummy bs=3D1m count=3D1000 > > >> echo 3 > /proc/sys/vm/drop_caches > > >> dd if=3Ddummy of=3D/dev/zero bs=3D512k > > >> > > >> - w/o compression - > > >> 1048576000 bytes (0.9 G) copied, 1.999384 s, 500 M/s > > >> 1048576000 bytes (0.9 G) copied, 2.035988 s, 491 M/s > > >> 1048576000 bytes (0.9 G) copied, 2.039457 s, 490 M/s > > >> > > >> - before patch - > > >> 1048576000 bytes (0.9 G) copied, 9.146217 s, 109 M/s > > >> 1048576000 bytes (0.9 G) copied, 9.997542 s, 100 M/s > > >> 1048576000 bytes (0.9 G) copied, 10.109727 s, 99 M/s > > >> > > >> - after patch - > > >> 1048576000 bytes (0.9 G) copied, 2.253441 s, 444 M/s > > >> 1048576000 bytes (0.9 G) copied, 2.739764 s, 365 M/s > > >> 1048576000 bytes (0.9 G) copied, 2.185649 s, 458 M/s > > > > > > Indeed, vmap() approach has some impact on the whole > > > workflow. But I don't think the gap is such significant, > > > maybe it relates to unlocked cpufreq (and big little > > > core difference if it's on some arm64 board). > > > > Agreed, > > > > I guess there should be other reason causing the large performance > > gap, scheduling, frequency, or something else. > > > > > > > > > > > > > > _______________________________________________ > > > Linux-f2fs-devel mailing list > > > Linux-f2fs-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel > > > . > > >