linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chao Yu <yuchao0@huawei.com>
To: Damien Le Moal <damien.lemoal@wdc.com>,
	Jaegeuk Kim <jaegeuk@kernel.org>,
	<linux-f2fs-devel@lists.sourceforge.net>
Cc: <linux-fsdevel@vger.kernel.org>,
	Matias Bjorling <matias.bjorling@wdc.com>,
	Masato Suzuki <masato.suzuki@wdc.com>
Subject: Re: [PATCH 2/3] f2fs: Reduce zoned block device memory usage
Date: Tue, 19 Mar 2019 19:01:21 +0800	[thread overview]
Message-ID: <ccdd3a3f-6045-49fe-2eca-af6fa4d0bdda@huawei.com> (raw)
In-Reply-To: <20190316001308.18115-3-damien.lemoal@wdc.com>

On 2019/3/16 8:13, Damien Le Moal wrote:
> For zoned block devices, an array of zone types for each device is
> allocated and initialized in order to determine if a section is stored
> on a sequential zone (zone reset needed) or a conventional zone (no
> zone reset needed and regular discard applies). Considering this usage,
> the zone types stored in memory can be replaced with a bitmap to
> indicate an equivalent information, that is, if a zone is sequential or
> not. This reduces the memory usage for each zoned device by roughly 8:
> on a 14TB disk with zones of 256 MB, the zone type array consumes
> 13x4KB pages while the bitmap uses only 2x4KB pages.
> 
> This patch changes the f2fs_dev_info structure blkz_type field to the
> bitmap blkz_seq. Access to this bitmap is done using the helper
> function f2fs_blkz_is_seq(), which is a rewrite of the function
> get_blkz_type().
> 
> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>

Reviewed-by: Chao Yu <yuchao0@huawei.com>

Thanks,


  reply	other threads:[~2019-03-19 11:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-16  0:13 [PATCH V2 0/3] f2fs: bug fix and improvement Damien Le Moal
2019-03-16  0:13 ` [PATCH 1/3] f2fs: Fix use of number of devices Damien Le Moal
2019-03-16  0:13 ` [PATCH 2/3] f2fs: Reduce zoned block device memory usage Damien Le Moal
2019-03-19 11:01   ` Chao Yu [this message]
2019-03-16  0:13 ` [PATCH 3/3] f2fs: improve discard handling with multi-device volumes Damien Le Moal
2019-03-19 11:02   ` Chao Yu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ccdd3a3f-6045-49fe-2eca-af6fa4d0bdda@huawei.com \
    --to=yuchao0@huawei.com \
    --cc=damien.lemoal@wdc.com \
    --cc=jaegeuk@kernel.org \
    --cc=linux-f2fs-devel@lists.sourceforge.net \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=masato.suzuki@wdc.com \
    --cc=matias.bjorling@wdc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).