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
9bf73a3b
Commit
9bf73a3b
authored
Nov 28, 2016
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy up (and document) the advice parameter
parent
1ae71b7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
varnishd.rst
doc/sphinx/reference/varnishd.rst
+8
-1
storage-backends.rst
doc/sphinx/users-guide/storage-backends.rst
+9
-6
No files found.
doc/sphinx/reference/varnishd.rst
View file @
9bf73a3b
...
@@ -193,7 +193,7 @@ The following storage types are available:
...
@@ -193,7 +193,7 @@ The following storage types are available:
malloc is a memory based backend.
malloc is a memory based backend.
-s <file,path[,size[,granularity]]>
-s <file,path[,size[,granularity
[,advice]
]]>
The file backend stores data in a file on disk. The file will be
The file backend stores data in a file on disk. The file will be
accessed using mmap.
accessed using mmap.
...
@@ -209,6 +209,13 @@ The following storage types are available:
...
@@ -209,6 +209,13 @@ The following storage types are available:
Granularity sets the allocation block size. Defaults to the system
Granularity sets the allocation block size. Defaults to the system
page size or the filesystem block size, whichever is larger.
page size or the filesystem block size, whichever is larger.
Advice tells the kernel how `varnishd` expects to use this mapped
region so that the kernel can choose the appropriate read-ahead
and caching techniques. Possible values are ``normal``, ``random``
and ``sequencial``, corresponding to MADV_NORMAL, MADV_RANDOM and
MADV_SEQUENTIAL madvise() advice argument, respectively. Defaults to
``random``.
-s <persistent,path,size>
-s <persistent,path,size>
Persistent storage. Varnish will store objects in a file in a manner
Persistent storage. Varnish will store objects in a file in a manner
...
...
doc/sphinx/users-guide/storage-backends.rst
View file @
9bf73a3b
...
@@ -93,12 +93,15 @@ have many small objects.
...
@@ -93,12 +93,15 @@ have many small objects.
File performance is typically limited to the write speed of the
File performance is typically limited to the write speed of the
device, and depending on use, the seek time.
device, and depending on use, the seek time.
'advice' dictates what Varnish tells the system to optimize reads. Depending
The 'advice' parameter tells the kernel how `varnishd` expects to
on your OS, disks and object sizes, it can be beneficial to tweak this. The
use this mapped region so that the kernel can choose the appropriate
three possible values are "normal", "random" (default) and "sequential" and
read-ahead and caching techniques. Possible values are ``normal``,
correspond to MADV_NORMAL, MADV_RANDOM, MADV_SEQUENTIAL, respectively.
``random`` and ``sequencial``, corresponding to MADV_NORMAL, MADV_RANDOM
For example, large objects and rotational disk should profit from "sequential"
and MADV_SEQUENTIAL madvise() advice argument, respectively. Defaults to
on Linux.
``random``.
On Linux, large objects and rotational disk should benefit from
"sequential".
persistent (experimental)
persistent (experimental)
~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
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