RE: [f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-28 Thread Chao Yu
Hi Lee, > -Original Message- > From: 이창만 [mailto:cm224@samsung.com] > Sent: Monday, October 28, 2013 10:20 AM > To: 'Chao Yu'; jaegeuk@samsung.com > Cc: linux-fsde...@vger.kernel.org; '谭姝'; linux-kernel@vger.kernel.org; > linux-f2fs-de...@lists.sourceforge.net > Subject: RE:

RE: [f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-28 Thread Chao Yu
Hi Lee, -Original Message- From: 이창만 [mailto:cm224@samsung.com] Sent: Monday, October 28, 2013 10:20 AM To: 'Chao Yu'; jaegeuk@samsung.com Cc: linux-fsde...@vger.kernel.org; '谭姝'; linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net Subject: RE: [f2fs-dev]

Re: [f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-27 Thread Gu Zheng
On 10/28/2013 10:19 AM, 이창만 wrote: > To check whether bitmap are all zeros or all ones, I think memcmp is more > neat. > But I don't know exactly performance gap between memcmp and find_next_bit. According to my understanding, memcmp: one by one search, find_next_bit: binary search. Regards,

RE: [f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-27 Thread 이창만
To check whether bitmap are all zeros or all ones, I think memcmp is more neat. But I don't know exactly performance gap between memcmp and find_next_bit. -Original Message- From: Chao Yu [mailto:chao2...@samsung.com] Sent: Thursday, October 24, 2013 5:21 PM To: jaegeuk@samsung.com

RE: [f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-27 Thread 이창만
To check whether bitmap are all zeros or all ones, I think memcmp is more neat. But I don't know exactly performance gap between memcmp and find_next_bit. -Original Message- From: Chao Yu [mailto:chao2...@samsung.com] Sent: Thursday, October 24, 2013 5:21 PM To: jaegeuk@samsung.com

Re: [f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-27 Thread Gu Zheng
On 10/28/2013 10:19 AM, 이창만 wrote: To check whether bitmap are all zeros or all ones, I think memcmp is more neat. But I don't know exactly performance gap between memcmp and find_next_bit. According to my understanding, memcmp: one by one search, find_next_bit: binary search. Regards, Gu

RE: [f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-24 Thread Chao Yu
Hi Gu, > -Original Message- > From: Gu Zheng [mailto:guz.f...@cn.fujitsu.com] > Sent: Thursday, October 24, 2013 6:04 PM > To: Chao Yu > Cc: jaegeuk@samsung.com; linux-fsde...@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net; '谭姝' > Subject: Re:

Re: [f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-24 Thread Gu Zheng
Hi Yu, On 10/24/2013 04:21 PM, Chao Yu wrote: > Previously, check_block_count check valid_map with bit data type in common > scenario that sit has all ones or zeros bitmap, it makes low mount > performance. > So let's check the special bitmap with integer data type instead of the bit > one. >

Re: [f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-24 Thread Gu Zheng
Hi Yu, On 10/24/2013 04:21 PM, Chao Yu wrote: Previously, check_block_count check valid_map with bit data type in common scenario that sit has all ones or zeros bitmap, it makes low mount performance. So let's check the special bitmap with integer data type instead of the bit one. v2:

RE: [f2fs-dev] [PATCH V2] f2fs: check all ones or zeros bitmap with bitops for better mount performance

2013-10-24 Thread Chao Yu
Hi Gu, -Original Message- From: Gu Zheng [mailto:guz.f...@cn.fujitsu.com] Sent: Thursday, October 24, 2013 6:04 PM To: Chao Yu Cc: jaegeuk@samsung.com; linux-fsde...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net; '谭姝' Subject: Re: