OSDN Git Service

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)
commiteef16ba269ea1d55ca1b4eab8d91f02e185835c9
treef7293754eb9652741d9516475d6282716efcc938
parent785884fc31883a11e88710d89c525bb7f76e33df
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