Add new retry filter.
[nbdkit/ericb.git] / filters / readahead / nbdkit-readahead-filter.pod
blob5d26bedd99c894433edb61d23962d3dbfc06898a
1 =head1 NAME
3 nbdkit-readahead-filter - prefetch data when reading sequentially
5 =head1 SYNOPSIS
7  nbdkit --filter=readahead plugin
9 =head1 DESCRIPTION
11 C<nbdkit-readahead-filter> is a filter that prefetches data when the
12 client is reading sequentially.
14 A common use for this filter is to accelerate sequential copy
15 operations (like S<C<qemu-img convert>>) when plugin requests have a
16 high overhead (like L<nbdkit-curl-plugin(1)>).  For example:
18  nbdkit -U - --filter=readahead curl https://example.com/disk.img \
19         --run 'qemu-img convert $nbd disk.img'
21 The filter uses a simple adaptive algorithm which accelerates
22 sequential reads, but has a small penalty if the client does random
23 reads.  If the client mixes reads with writes or write-like operations
24 (trimming, zeroing) then it will work but there can be a large
25 performance penalty.
27 =head1 PARAMETERS
29 There are no parameters specific to nbdkit-readahead-filter.  Any
30 parameters are passed through to and processed by the underlying
31 plugin in the normal way.
33 =head1 SEE ALSO
35 L<nbdkit(1)>,
36 L<nbdkit-cache-filter(1)>,
37 L<nbdkit-curl-plugin(1)>,
38 L<nbdkit-retry-filter(1)>,
39 L<nbdkit-ssh-plugin(1)>,
40 L<nbdkit-vddk-plugin(1)>,
41 L<nbdkit-filter(3)>,
42 L<qemu-img(1)>.
44 =head1 AUTHORS
46 Richard W.M. Jones
48 =head1 COPYRIGHT
50 Copyright (C) 2019 Red Hat Inc.