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_preopen.8">
6 <refentrytitle>vfs_preopen</refentrytitle>
7 <manvolnum>8</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">3.5</refmiscinfo>
14 <refname>vfs_preopen</refname>
15 <refpurpose>Hide read latencies for applications reading numbered files</refpurpose>
20 <command>vfs objects = preopen</command>
25 <title>DESCRIPTION</title>
27 <para>This VFS module is part of the
28 <citerefentry><refentrytitle>samba</refentrytitle>
29 <manvolnum>7</manvolnum></citerefentry> suite.</para>
31 <para>This module assists applications that want to read numbered
32 files in sequence with very strict latency requirements. One area
33 where this happens in video streaming applications that want to read
34 one file per frame.</para>
36 <para>When you use this module, a number of helper processes is
37 started that speculatively open files and read a number of bytes to
38 prime the file system cache, so that later on when the real
39 application's request comes along, no disk access is necessary.</para>
41 <para>This module is stackable.</para>
47 <title>OPTIONS</title>
52 <term>preopen:names = /pattern/</term>
55 preopen:names specifies the file name pattern which should
56 trigger the preopen helpers to do their work. We assume that
57 the files are numbered incrementally. So if your file names
58 are numbered FRAME00000.frm FRAME00001.frm and so on you would
59 list them as <command>preopen:names=/FRAME*.frm/</command>
65 <term>preopen:num_bytes = BYTES</term>
68 Specifies the number of bytes the helpers should speculatively
75 <term>preopen:helpers = NUM-PROCS</term>
78 Number of forked helper processes, defaults to 1.
84 <term>preopen:queuelen = NUM-FILES</term>
87 Number of files that should be speculatively opened. Defaults
88 to the 10 subsequent files.
97 <title>VERSION</title>
98 <para>This man page is correct for version 3.3 of the Samba suite.
103 <title>AUTHOR</title>
105 <para>The original Samba software and related utilities
106 were created by Andrew Tridgell. Samba is now developed
107 by the Samba Team as an Open Source project similar
108 to the way the Linux kernel is developed.</para>
110 <para>The PREOPEN VFS module was created with contributions from
111 Volker Lendecke and the developers at IBM.