Debian Codegraph @

upstream/opensuse-tumbleweed/man8/vfs_preopen.8

raw
1 '\" t
2 .\" Title: vfs_preopen
3 .\" Author: [see the "AUTHOR" section]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\" Date: 05/26/2026
6 .\" Manual: System Administration tools
7 .\" Source: Samba 4.23.8-git.477.f78166bceedSUSE-oS16.9-x86_64
8 .\" Language: English
9 .\"
10 .TH "VFS_PREOPEN" "8" "05/26/2026" "Samba 4\&.23\&.8\-git\&.477\&.f78166bcee" "System Administration tools"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 vfs_preopen \- Hide read latencies for applications reading numbered files
32 .SH "SYNOPSIS"
33 .HP \w'\ 'u
34 vfs objects = preopen
35 .SH "DESCRIPTION"
36 .PP
37 This VFS module is part of the
38 \fBsamba\fR(7)
39 suite\&.
40 .PP
41 This module assists applications that want to read numbered files in sequence with very strict latency requirements\&. One area where this happens in video streaming applications that want to read one file per frame\&.
42 .PP
43 When you use this module, a number of helper processes is started that speculatively open files and read a number of bytes to prime the file system cache, so that later on when the real application\*(Aqs request comes along, no disk access is necessary\&.
44 .PP
45 This module is stackable\&.
46 .SH "OPTIONS"
47 .PP
48 preopen:posix\-basic\-regex = BOOL (default: no)
49 .RS 4
50 preopen:posix\-basic\-regex = yes
51 changes the meaning of the
52 preopen:names
53 option\&. Further details are described there\&.
54 .RE
55 .PP
56 preopen:names = /pattern1/pattern2/
57 .RS 4
58 preopen:names specifies the file name pattern(s) which should trigger the preopen helpers to do their work\&. We assume that the files are numbered incrementally\&. So if your file names are numbered FRAME00000\&.frm FRAME00001\&.frm and so on you would list them as
59 preopen:names=/FRAME*\&.frm/\&. The default algorithm uses the first (at least 3) digits it finds in order to calculate the name of the next frames\&.
60 .sp
61 preopen:posix\-basic\-regex = yes
62 changes the meaning of the
63 preopen:names
64 option\&. It means \*(AqPOSIX Basic Regular Expression\*(Aq strings are used as patterns\&. The key is each pattern requires exactly one \*(Aqsubexpression\*(Aq starting with \*(Aq\e(\*(Aq and ending with \*(Aq\e)\*(Aq in order to specify the position of the digits representing the incrementing frame numbers\&. Given a file names like Movie7599Frame0v1234\&.txt, Movie7599Frame1v1234\&.txt, Movie7599Frame2v1234\&.txt up to Movie7599Frame9v1234\&.txt you can use
65 preopen:names = /\&.*Frame\e([0\-9]\e)\&.*\e\&.txt/
66 in order to match just a single digits, this might not be a real world example, but it shows the flexibility that is possible here\&.
67 .RE
68 .PP
69 preopen:num_bytes = BYTES
70 .RS 4
71 Specifies the number of bytes the helpers should speculatively read, defaults to 1\&.
72 .RE
73 .PP
74 preopen:helpers = NUM\-PROCS
75 .RS 4
76 Number of forked helper processes, defaults to 1\&.
77 .RE
78 .PP
79 preopen:queuelen = NUM\-FILES
80 .RS 4
81 Number of files that should be speculatively opened\&. Defaults to the 10 subsequent files\&.
82 .RE
83 .PP
84 preopen:nomatch_log_level = LOGLEVEL
85 .RS 4
86 In order to debug or audit the usage of the preopen logic you can use this option to specify at what log level details about filenames not matching any pattern from \*(Aqpreopen:names\*(Aq are logged\&.
87 .sp
88 Defaults to the log level 5\&. See also
89 \fBsmb.conf\fR(5)
90 in the \*(Aq\m[blue]\fBlog level\fR\m[]\*(Aq section for special handling of the \*(Aqpreopen\*(Aq debug class\&.
91 .RE
92 .PP
93 preopen:match_log_level = LOGLEVEL
94 .RS 4
95 In order to debug or audit the usage of the preopen logic you can use this option to specify at what log level details about filenames actually matching a pattern from \*(Aqpreopen:names\*(Aq are logged\&.
96 .sp
97 See also \*(Aqpreopen:founddigits_log_level\*(Aq and \*(Aqpreopen:push_log_level\*(Aq\&.
98 .sp
99 Defaults to the log level 5\&. See also
100 \fBsmb.conf\fR(5)
101 in the \*(Aq\m[blue]\fBlog level\fR\m[]\*(Aq section for special handling of the \*(Aqpreopen\*(Aq debug class\&.
102 .RE
103 .PP
104 preopen:nodigits_log_level = LOGLEVEL
105 .RS 4
106 In order to debug or audit problems with the preopen configuration you can use this option to specify at what log level details about filenames actually matching a pattern from \*(Aqpreopen:names\*(Aq, but at the same time don\*(Aqt contain the expected digits, are logged\&. This is typically something the administrator wants to notice and adjust the configuration in order to define more precisely where to find the digits in the filename\&.
107 .sp
108 Defaults to the log level 1\&. See also
109 \fBsmb.conf\fR(5)
110 in the \*(Aq\m[blue]\fBlog level\fR\m[]\*(Aq section for special handling of the \*(Aqpreopen\*(Aq debug class\&.
111 .RE
112 .PP
113 preopen:founddigits_log_level = LOGLEVEL
114 .RS 4
115 In order to debug or audit the usage of the preopen logic you can use this option to specify at what log level details about filenames actually matching a pattern from \*(Aqpreopen:names\*(Aq, and at the same time having valid expected digits, are logged\&. This means enough information is available in order to queue preopens\&.
116 .sp
117 Defaults to the log level 3\&. See also
118 \fBsmb.conf\fR(5)
119 in the \*(Aq\m[blue]\fBlog level\fR\m[]\*(Aq section for special handling of the \*(Aqpreopen\*(Aq debug class\&.
120 .RE
121 .PP
122 preopen:reset_log_level = LOGLEVEL
123 .RS 4
124 If a matching filename belongs to a different pattern from \*(Aqpreopen:names\*(Aq, a different parent directory or differs in a significant way from the last filename that was found before, the module needs to reset it\*(Aqs internal queue state\&. This means that no more preopens will be pushed to helper processes belonging to the former queue state\&. In order to debug or audit such queue resets you can use this option to specify at what log level details are logged\&.
125 .sp
126 Defaults to the log level 5\&. See also
127 \fBsmb.conf\fR(5)
128 in the \*(Aq\m[blue]\fBlog level\fR\m[]\*(Aq section for special handling of the \*(Aqpreopen\*(Aq debug class\&.
129 .RE
130 .PP
131 preopen:push_log_level = LOGLEVEL
132 .RS 4
133 In order to debug or audit the usage of the preopen logic you can use this option to specify at what log level details about filenames actually pushed to preopen helper processes are logged\&. This means they will actually be preopened soon\&.
134 .sp
135 Defaults to the log level 3\&. See also
136 \fBsmb.conf\fR(5)
137 in the \*(Aq\m[blue]\fBlog level\fR\m[]\*(Aq section for special handling of the \*(Aqpreopen\*(Aq debug class\&.
138 .RE
139 .PP
140 preopen:queue_log_level = LOGLEVEL
141 .RS 4
142 In order to debug details about internal queue processing you can use this option to specify at what log level the details are logged\&.
143 .sp
144 Defaults to the log level 10\&. See also
145 \fBsmb.conf\fR(5)
146 in the \*(Aq\m[blue]\fBlog level\fR\m[]\*(Aq section for special handling of the \*(Aqpreopen\*(Aq debug class\&.
147 .RE
148 .SH "VERSION"
149 .PP
150 This man page is part of version 4\&.23\&.8\-git\&.477\&.f78166bceedSUSE\-oS16\&.9\-x86_64 of the Samba suite\&.
151 .SH "AUTHOR"
152 .PP
153 The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
154 .PP
155 The PREOPEN VFS module was created with contributions from Volker Lendecke and the developers at IBM\&.