Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / fs_precache.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3fs_precache - Set precache size
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<fs precache> S<<< B<-blocks> <I<size in 1K blocks>> >>>
11 [B<-help>]
12
13B<fs p> S<<< B<-b> <I<size in 1K blocks>> >>>
14 [B<-h>]
15
16=for html
17</div>
18
19=head1 DESCRIPTION
20
21The B<fs precache> command configures to what degree the Cache Manager will
22attempt to prefetch cache blocks when an application opens a file for reading.
23If this behavior is enabled, whenever a file is opened for reading, the Cache
24Manager will immediately initiate an asynchronous fetch request for that file.
25This fetch request will fetch the configured amount of data for that file, and
26store the data in the cache. In some scenarios, this can improve performance.
27
28Note that this prefetching behavior is done by the Cache Manager itself. The
29underlying Operating System may also perform its own prefetching behavior,
30depending on various settings or application hints.
31
32This command was introduced in OpenAFS 1.5.37.
33
34=head1 OPTIONS
35
36=over 4
37
38=item B<-blocks> <I<size in 1K blocks>>
39
40Specifies how much data to prefetch for each applicable file, in 1024-byte
41blocks. Specify 0 to disable prefetching behavior. By default, prefetching is
42disabled.
43
44=item B<-help>
45
46Prints the online help for this command. All other valid options are
47ignored.
48
49=back
50
51=head1 OUTPUT
52
53If the specified precache size has been set successfully, the following message
54will be printed:
55
56 New precache size set.
57
58=head1 EXAMPLES
59
60The following command configures the Cache Manager to prefetch the first 100
61kilobytes of any file that's opened for reading:
62
63 % fs precache -blocks 100
64 New precache size set.
65
66=head1 PRIVILEGE REQUIRED
67
68The issuer must be logged in as the local superuser C<root>.
69
70=head1 SEE ALSO
71
72L<afsd(8)>
73
74=head1 COPYRIGHT
75
76Copyright 2013 Sine Nomine Associates
77
78This documentation is covered by the BSD License as written in the
79doc/LICENSE file. This man page was written by Andrew Deason for
80OpenAFS.