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">
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">3.6</refmiscinfo>
15 <refname>vfs_readahead</refname>
16 <refpurpose>pre-load the kernel buffer cache</refpurpose>
21 <command>vfs objects = readahead</command>
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
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>
57 <title>OPTIONS</title>
62 <term>readahead:offset = BYTES</term>
64 <para>The offset multiple that causes readahead to be
65 requested of the kernel buffer cache.</para>
70 <term>readahead:length = BYTES</term>
72 <para>The number of bytes requested to be
73 read into the kernel buffer cache on each
74 readahead call.</para>
78 <para>The following suffixes may be applied to BYTES:</para>
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>
90 <title>EXAMPLES</title>
93 <smbconfsection name="[hypothetical]"/>
94 <smbconfoption name="vfs objects">readahead</smbconfoption>
100 <title>VERSION</title>
101 <para>This man page is correct for version 3.0.25 of the Samba suite.
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>