docs: Add VERSION section giving first version a plugin/filter appeared.
[nbdkit/ericb.git] / filters / readahead / nbdkit-readahead-filter.pod
blobb3521628025b9362998c818c3b1c9224a479a6e3
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 FILES
35 =over 4
37 =item F<$filterdir/nbdkit-readahead-filter.so>
39 The filter.
41 Use C<nbdkit --dump-config> to find the location of C<$filterdir>.
43 =back
45 =head1 VERSION
47 C<nbdkit-readahead-filter> first appeared in nbdkit 1.12.
49 =head1 SEE ALSO
51 L<nbdkit(1)>,
52 L<nbdkit-cache-filter(1)>,
53 L<nbdkit-curl-plugin(1)>,
54 L<nbdkit-retry-filter(1)>,
55 L<nbdkit-ssh-plugin(1)>,
56 L<nbdkit-vddk-plugin(1)>,
57 L<nbdkit-filter(3)>,
58 L<qemu-img(1)>.
60 =head1 AUTHORS
62 Richard W.M. Jones
64 =head1 COPYRIGHT
66 Copyright (C) 2019 Red Hat Inc.