[f2fs-dev] [PATCH] f2fs: merge read IOs at ra_nat_pages()

2013-11-21 Thread Jaegeuk Kim
This patch changes the policy of submitting read bios at ra_nat_pages. Previously, f2fs submits small read bios with block plugging. But, with this patch, f2fs itself merges read bios first and then submits a large bio, which can reduce the bio handling overheads. Signed-off-by: Jaegeuk Kim ---

Re: [f2fs-dev] [PATCH V2 2/2 RESEND] f2fs: read contiguous sit entry pages by merging for mount performance

2013-11-21 Thread Jaegeuk Kim
Hi, > > > > > > > > > > > The ra_sit_pages() tries to read consecutive sit pages as many as > > > > possible. > > > > So then, what about just checking whether its block address is > > > > contiguous or not? > > > > > > > > Something like this: > > > > -ra_sit_pages() > > > > blkno = star

Re: [f2fs-dev] [PATCH V2 2/2] f2fs: read contiguous sit entry pages by merging for mount performance

2013-11-21 Thread Gu Zheng
On 11/21/2013 01:46 PM, Chao Yu wrote: > Hi Gu, > >> -Original Message- >> From: Gu Zheng [mailto:guz.f...@cn.fujitsu.com] >> Sent: Wednesday, November 20, 2013 5:38 PM >> To: Chao Yu >> Cc: '???'; linux-fsde...@vger.kernel.org; linux-ker...@vger.kernel.org; >> linux-f2fs-devel@lists.sou

[f2fs-dev] [PATCH] f2fs: simplify IS_DATASEG and IS_NODESEG macro

2013-11-21 Thread Changman Lee
It is not efficient comparing each segment type to find node or data. Signed-off-by: Changman Lee --- fs/f2fs/segment.h |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index 269f690..4ace569 100644 --- a/fs/f2fs/segment.h +++ b/f

[f2fs-dev] [PATCH V3 2/2] f2fs: read contiguous sit entry pages by merging for mount performance

2013-11-21 Thread Chao Yu
Previously we read sit entries page one by one, this method lost the chance of reading contiguous page together. So we read pages as contiguous as possible for better mount performance. change log: o merge judgements/use 'Continue' or 'Break' instead of 'Goto' as Gu Zheng suggested. o add

Re: [f2fs-dev] [PATCH] f2fs: merge read IOs at ra_nat_pages()

2013-11-21 Thread Changman Lee
How about doing mark_page_accessed(page) in ra_nat_pages like ra_sit_pages to prevent readahead pages are reclaimed by VM? On 목, 2013-11-21 at 18:35 +0900, Jaegeuk Kim wrote: > This patch changes the policy of submitting read bios at ra_nat_pages. > > Previously, f2fs submits small read bios wit

[f2fs-dev] [PATCH] f2fs: send REQ_META or REQ_PRIO when reading meta area

2013-11-21 Thread Changman Lee
Let's send REQ_META or REQ_PRIO when reading meta area such as NAT/SIT etc. Signed-off-by: Changman Lee --- fs/f2fs/checkpoint.c |2 +- fs/f2fs/node.c |4 ++-- fs/f2fs/segment.c|4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/checkpoint.c b/fs

[f2fs-dev] [PATCH] f2fs: readahead contiguous pages for restore_node_summary

2013-11-21 Thread Chao Yu
If cp has no CP_UMOUNT_FLAG, we will read all pages in whole node segment one by one, it makes low performance. So let's merge contiguous pages and readahead for better performance. Signed-off-by: Chao Yu --- fs/f2fs/node.c | 89 +++- 1 fil