Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1575428

Re: [PATCH] f2fs: introduce nid cache

From Chao Yu <yuchao0@huawei.com>
Newsgroups linux.kernel
Subject Re: [PATCH] f2fs: introduce nid cache
Date 2017-02-07 08:30 +0100
Message-ID <t88nT-8dU-1@gated-at.bofh.it> (permalink)
References <t2n6i-7CS-17@gated-at.bofh.it> <t313I-813-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Jaegeuk,

Happy Chinese New Year! :)

On 2017/1/24 12:35, Jaegeuk Kim wrote:
> Hi Chao,
> 
> On 01/22, Chao Yu wrote:
>> In scenario of intensively node allocation, free nids will be ran out
>> soon, then it needs to stop to load free nids by traversing NAT blocks,
>> in worse case, if NAT blocks does not be cached in memory, it generates
>> IOs which slows down our foreground operations.
>>
>> In order to speed up node allocation, in this patch we introduce a new
>> option named "nid cache", when turns on this option, it will load all
>> nat entries in NAT blocks when doing mount, and organize all free nids
>> in a bitmap, for any operations related to free nid, we will query and
>> set the new prebuilded bitmap instead of reading and lookuping NAT
>> blocks, so performance of node allocation can be improved.
>>
> 
> How does this affect mount time and memory consumption?

Sorry for the delay.

Let me figure out some numbers later.

> IMO, if those do not
> raise huge concerns, we would be able to consider just replacing current free
> nid list with this bitmap.

Yup, I agree with you.

Thanks,

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH] f2fs: introduce nid cache Chao Yu <yuchao0@huawei.com> - 2017-02-07 08:30 +0100
  Re: [PATCH] f2fs: introduce nid cache Chao Yu <chao@kernel.org> - 2017-02-08 16:30 +0100
    Re: [PATCH] f2fs: introduce nid cache Jaegeuk Kim <jaegeuk@kernel.org> - 2017-02-09 03:30 +0100
      Re: [PATCH] f2fs: introduce nid cache Chao Yu <yuchao0@huawei.com> - 2017-02-11 07:20 +0100

csiph-web