Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / fs_bypassthreshold.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3fs_bypassthreshold - get/set Cache Bypass file size threshold
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<fs bypassthreshold> S<<< [B<-size> <I<file size>>] >>> [B<-help>]
11
12B<fs bypassthresh> S<<< [B<-s> <I<file size>>] >>> [B<-h>]
13
14=for html
15</div>
16
17=head1 DESCRIPTION
18
19The B<fs bypassthreshold> command either changes the AFS client Cache
20Bypass file size threshold, or reports the current threshold. Normally,
21when an application tries to read data via the OpenAFS client, the client
22will fetch the required data from the fileserver, store the results in
23the local cache, and then serve the application request from the local
24cache. When the Cache Bypass feature is enabled, certain files will be
25read directly from the network, and the data will not be saved to the
26local cache. In some scenarios, this can provide a significant
27performance improvement, especially if the data is only read once.
28
29Currently, the only way to specify which files should bypass the cache
30and which files should not, is by file size. In the future, different
31mechanisms may exist for specifying which files should bypass the local
32cache and which should not.
33
34If B<-size> is not specified, B<fs bypassthreshold> just reports the
35current threshold and exits.
36
37=head1 CAUTIONS
38
39Cache Bypass is still considered an experimental feature. Even in stable
40releases of OpenAFS, it is not considered as stable as the rest of OpenAFS.
41
42=head1 OPTIONS
43
44=over 4
45
46=item B<-size> <I<file size>>
47
48Specifies how large a file must be in order to enable Cache Bypass mode.
49If a file is larger than the specified file size (in bytes), reading from
50that file will bypass the local cache and be read directly from the
51network. A file size of -1 indicates that Cache Bypass should be disabled
52complete, so no files will enable Cache Bypass mode, no matter how large
53they are.
54
55By default, Cache Bypass is disabled.
56
57=item B<-help>
58
59Prints the online help for this command. All other valid options are
60ignored.
61
62=back
63
64=head1 OUTPUT
65
66The output format is identical whether or not B<-size> was specified. If
67B<-size> is specified, the bypass threshold is changed, and the output
68represents the new, changed, threshold. Otherwise the output represents
69the current threshold.
70
71=head1 EXAMPLES
72
73The following example turns on Cache Bypass with a threshold of 4KiB:
74
75 % fs bypassthreshold 4096
76 Cache bypass threshold 4096
77
78The following example disables Cache Bypass:
79
80 % fs bypassthreshold -1
81 Cache bypass threshold -1 (disabled)
82
83The following example examines the current Cache Bypass threshold:
84
85 % fs bypassthreshold
86 Cache bypass threshold 4096
87
88=head1 PRIVILEGE REQUIRED
89
90To set the bypass threshold, the issuer must be logged in as the local
91superuser C<root>. Otherwise, no privilege is required.
92
93=head1 COPYRIGHT
94
95Copyright 2012 Sine Nomine Associates
96
97This documentation is covered by the BSD License as written in the
98doc/LICENSE file. This man page was written by Andrew Deason for
99OpenAFS.