Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
059bc04c
Unverified
Commit
059bc04c
authored
Jan 06, 2022
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explain the basics of mmap() as relevant for the file storage
Closes #3760
parent
e2220de3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
storage-backends.rst
doc/sphinx/users-guide/storage-backends.rst
+12
-2
No files found.
doc/sphinx/users-guide/storage-backends.rst
View file @
059bc04c
...
@@ -114,8 +114,18 @@ file
...
@@ -114,8 +114,18 @@ file
syntax: file,path[,size[,granularity[,advice]]]
syntax: file,path[,size[,granularity[,advice]]]
The file backend stores objects in memory backed by an unlinked file on disk
The file backend stores objects in virtual memory backed by an
with `mmap`.
unlinked file on disk with `mmap`, relying on the kernel handle paging
as parts of the file are being accessed.
This implies that sufficient *virtual* memory needs to be available to
accomodate the file size in addition to any memory Varnish requires
anyway. Traditionally, the virtual memory limit is configured with
``ulimit -v``, but modern operating systems have other abstractions
for this limit like control groups (Linux) or resource controls
(Solaris).
.. XXX idk about the BSD and MacOS abstractions -- slink
The 'path' parameter specifies either the path to the backing file or
The 'path' parameter specifies either the path to the backing file or
the path to a directory in which `varnishd` will create the backing file.
the path to a directory in which `varnishd` will create the backing file.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment