]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: send, apply asynchronous page cache readahead to enhance page read
authorKuanling Huang <peterh@synology.com>
Fri, 15 Sep 2017 08:47:45 +0000 (16:47 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:57 +0000 (12:27 +0100)
commit827889d72bc300269b41d424b6816e7820f7e1d9
treef7293754eb9652741d9516475d6282716efcc938
parent1197bba7d23d8af7bcb2b6501908913c1810a54e
Btrfs: send, apply asynchronous page cache readahead to enhance page read

By analyzing the perf on btrfs send, we found it take large amount of
cpu time on page_cache_sync_readahead. This effort can be reduced after
switching to asynchronous one. Overall performance gain on HDD and SSD
were 9 and 15 percent if simply send a large file.

Signed-off-by: Kuanling Huang <peterh@synology.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c