diff options
author | 2013-04-29 16:58:39 +0900 | |
---|---|---|
committer | 2013-04-30 12:07:32 +0900 | |
commit | ac5d156c78a68b39955ee9b09498ba93831c77d7 (patch) | |
tree | 638245b8a39332d3bb2878c5a0a8574e518fcc37 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f2fs: remove useless #include <linux/proc_fs.h> as we're now using sysfs as debug entry. (diff) | |
download | linux-dev-ac5d156c78a68b39955ee9b09498ba93831c77d7.tar.xz linux-dev-ac5d156c78a68b39955ee9b09498ba93831c77d7.zip |
f2fs: modify the number of issued pages to merge IOs
When testing f2fs on an SSD, I found some 128 page IOs followed by 1 page IO
were issued by f2fs_write_node_pages.
This means that there were some mishandling flows which degrades performance.
Previous f2fs_write_node_pages determines the number of pages to be written,
nr_to_write, as follows.
1. The bio_get_nr_vecs returns 129 pages.
2. The bio_alloc makes a room for 128 pages.
3. The initial 128 pages go into one bio.
4. The existing bio is submitted, and a new bio is prepared for the last 1 page.
5. Finally, sync_node_pages submits the last 1 page bio.
The problem is from the use of bio_get_nr_vecs, so this patch replace it
with max_hw_blocks using queue_max_sectors.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions