Clean up struct connection_struct, make struct vuid_cache a pointer not inline.
[Samba/bb.git] / docs-xml / manpages / vfs_readahead.8.xml
blobec92bb1c7a30892980f1b6c93c52451bb94d038d
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="vfs_readahead.8">
5 <refmeta>
6         <refentrytitle>vfs_readahead</refentrytitle>
7         <manvolnum>8</manvolnum>
8         <refmiscinfo class="source">Samba</refmiscinfo>
9         <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10         <refmiscinfo class="version">4.0</refmiscinfo>
11 </refmeta>
14 <refnamediv>
15         <refname>vfs_readahead</refname>
16         <refpurpose>pre-load the kernel buffer cache</refpurpose>
17 </refnamediv>
19 <refsynopsisdiv>
20         <cmdsynopsis>
21                 <command>vfs objects = readahead</command>
22         </cmdsynopsis>
23 </refsynopsisdiv>
25 <refsect1>
26         <title>DESCRIPTION</title>
28         <para>This VFS module is part of the
29         <citerefentry><refentrytitle>samba</refentrytitle>
30         <manvolnum>7</manvolnum></citerefentry> suite.</para>
32         <para>This <command>vfs_readahead</command> VFS module detects
33         read requests at multiples of a given offset (hex 0x80000 by
34         default) and then tells the kernel via either the readahead
35         system call (on Linux) or the posix_fadvise system call to
36         pre-fetch this data into the buffer cache.</para>
38         <para>This module is useful for Windows Vista clients reading
39         data using the Windows Explorer program, which asynchronously
40         does multiple file read requests at offset boundaries of 0x80000
41         bytes.</para>
43         <para>The offset multiple used is given by the readahead:offset
44         option, which defaults to 0x80000.</para>
46         <para>The size of the disk read operations performed
47         by <command>vfs_readahead</command> is determined by the
48         readahead:length option. By default this is set to the
49         same value as the readahead:offset option and if not
50         set explicitly will use the current value of
51         readahead:offset.</para>
53         <para>This module is stackable.</para>
54 </refsect1>
56 <refsect1>
57         <title>OPTIONS</title>
59         <variablelist>
61                 <varlistentry>
62                 <term>readahead:offset = BYTES</term>
63                 <listitem>
64                 <para>The offset multiple that causes readahead to be
65                 requested of the kernel buffer cache.</para>
66                 </listitem>
67                 </varlistentry>
69                 <varlistentry>
70                 <term>readahead:length = BYTES</term>
71                 <listitem>
72                 <para>The number of bytes requested to be
73                 read into the kernel buffer cache on each
74                 readahead call.</para>
75                 </listitem>
76                 </varlistentry>
78                 <para>The following suffixes may be applied to BYTES:</para>
79                 <itemizedlist>
80                 <listitem><para><command>K</command> - BYTES is a number of kilobytes</para></listitem>
81                 <listitem><para><command>M</command> - BYTES is a number of megabytes</para></listitem>
82                 <listitem><para><command>G</command> - BYTES is a number of gigabytes</para></listitem>
83                 </itemizedlist>
86         </variablelist>
87 </refsect1>
89 <refsect1>
90         <title>EXAMPLES</title>
92 <programlisting>
93         <smbconfsection name="[hypothetical]"/>
94         <smbconfoption name="vfs objects">readahead</smbconfoption>
95 </programlisting>
97 </refsect1>
99 <refsect1>
100         <title>VERSION</title>
101         <para>This man page is correct for version 3.0.25 of the Samba suite.
102         </para>
103 </refsect1>
105 <refsect1>
106         <title>AUTHOR</title>
108         <para>The original Samba software and related utilities
109         were created by Andrew Tridgell. Samba is now developed
110         by the Samba Team as an Open Source project similar
111         to the way the Linux kernel is developed.</para>
113 </refsect1>
115 </refentry>