f2fs: avoid issuing small bios due to several dirty node pages
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 18 Jan 2013 05:54:13 +0000 (14:54 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 22 Jan 2013 01:48:59 +0000 (10:48 +0900)
If some small bios of dirty node pages are supposed to be issued during the
sequential data writes, there-in well-produced consecutive data bios are able
to be split by the small node bios, resulting in performance degradation.
So, let's collect a number of dirty node pages until reaching a threshold.
And, by default, I set the threshold as 2MB, a segment size.

This improves sequential write performance on i5, 512GB SSD (830 w/ SATA2) as
follows.
Before: 231 MB/s -> After: 255 MB/s

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Reviewed-by: Namjae Jeon <namjae.jeon@samsung.com>

No differences found