From: Paul J. Reder
Date: Wed, 6 Nov 2002 15:30:27 +0000 (+0000)
Subject: Updates to the mod_mem_cache.xml file to update formatting, improve
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8273c088c8f370272205724f18cbacab028d01f4;p=thirdparty%2Fapache%2Fhttpd.git
Updates to the mod_mem_cache.xml file to update formatting, improve
detail and accuracy, and to align with what the code does.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97429 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_mem_cache.xml b/docs/manual/mod/mod_mem_cache.xml
index b5293ed65fd..1025b75f149 100644
--- a/docs/manual/mod/mod_mem_cache.xml
+++ b/docs/manual/mod/mod_mem_cache.xml
@@ -14,126 +14,143 @@
This module is experimental. Documentation is still under development...
- mod_mem_cache implements an in-memory based storage manager.
- mod_mem_cache can be configured to operate in two modes: caching open file
- descriptors or caching objects in heap storage. mod_mem_cache
- is most useful when used to cache locally generated content or to cache
- backend server content for mod_proxy configured for ProxyPass
- (aka reverse proxy)
-
- mod_mem_cache requires the services of mod_cache.
-
- Content stored and retrived keyed to the URL. Content with
- access protections is not cached.
+ mod_mem_cache implements a memory based storage manager.
+ mod_mem_cache can be configured to operate in two modes:
+ caching open file descriptors or caching objects in heap storage.
+ mod_mem_cache is most useful when used to cache locally
+ generated content or to cache backend server content for
+ mod_proxy configured for
+ ProxyPass (aka reverse proxy)
+
+ Content is stored in and retrieved from the cache using URI based keys. Content with
+ access protection is not cached.
+
+ Note:
+ mod_mem_cache requires the services of mod_cache.
+
MCacheSize
The maximum amount of memory used by the cache in KBytes
-MCacheSize KBytes
+MCacheSize KBytes
MCacheSize 100
-server config
+server configvirtual host
+
- The MCacheSize directive sets the desired space
- usage of the cache, in KBytes (1024-byte units). If a new entry needs to be
- inserted in the cache and the size of the entry is greather than the
- remaining size, entries will be removed until the new entry could be cached.
- The removed entry is decided base on the MCacheRemovalAlgorithm algorithm
-
-
- The size must be greater than MCacheMaxObjectSize.
-
-
-
- MCacheSize 700000
-
+ The MCacheSize directive sets the maximum amount of memory
+ to be used by the cache, in KBytes (1024-byte units). If a new object needs to be
+ inserted in the cache and the size of the object is greater than the
+ remaining memory, objects will be removed until the new object can be cached.
+ The object to be removed is selected using the algorithm specified by
+ MCacheRemovalAlgorithm.
+
+ Note:
+ The MCacheSize value must be greater than the value
+ specified by the MCacheMaxObjectSize directive.
+
+
+
+ MCacheSize 700000
+
MCacheMaxObjectCount
The maximum number of objects allowed to be placed in the cache
-MCacheMaxObjectCount value
+MCacheMaxObjectCount value
MCacheMaxObjectCount 1009
-server config
+server configvirtual host
+
The MCacheMaxObjectCount directive sets the maximum
- number of objects to be cached. If a new entry needs to be
- inserted in the cache and the maximum number of objects is reached, an entry
- will be removed to allow the new entry be cached.
-
-
- The value of MCacheMaxObjectCount is used to create
- the open hash table.
-
-
- MCacheMaxObjectCount 13001
-
+ number of objects to be cached. If a new object needs to be inserted in the cache
+ and the maximum number of objects has been reached, an object will be removed
+ to allow the new object to be cached. The object to be removed is selected using
+ the algorithm specified by MCacheRemovalAlgorithm.
+
+ Note:
+ The value of MCacheMaxObjectCount is used to create
+ the open hash table.
+
+
+
+ MCacheMaxObjectCount 13001
+
MCacheMinObjectSize
-The minimum size (in bytes) of an object to be placed in the cache
-MCacheMinObjectSize bytes
+The minimum size (in bytes) of a document to be allowed in the
+cache
+MCacheMinObjectSize bytes
MCacheMinObjectSize 0
-server config
+server configvirtual host
+
The MCacheMinObjectSize directive sets the minimum
- size in bytes of an object to be cached.
+ size in bytes of a document for it to be considered cacheable.
-
- MCacheMinObjectSize 10000
-
+
+ MCacheMinObjectSize 10000
+
MCacheMaxObjectSize
-The maximum size (in bytes) of an object to be placed in the cache
-MCacheMaxObjectSize bytes
+The maximum size (in bytes) of a document allowed in the
+cache
+MCacheMaxObjectSize bytes
MCacheMaxObjectSize 10000
-server config
+server configvirtual host
+
The MCacheMaxObjectSize directive sets the maximum
- size of an object to be cached.
+ allowable size, in bytes, of a document for it to be considered cacheable.
-
- The size must be greater than MCacheMinObjectSize.
-
+ Note:
+ The value of MCacheMaxObjectSize must be greater
+ than the value specified by the MCacheMinObjectSize
+ directive.
+
-
- MCacheMaxObjectSize 6400000
-
+
+ MCacheMaxObjectSize 6400000
+
MCacheRemovalAlgorithm
-The algorithm used to remove entries from the cache
-MCacheRemovalAlgorithm algorithm
+The algorithm used to select documents for removal from the
+cache
+MCacheRemovalAlgorithm LRU|GDSF
MCacheRemovalAlgorithm GDSF
-server config
+server configvirtual host
+
- The MCacheRemovalAlgorithm directive sets the algorithm
- used to remove entries from the cache.
- Two choices are available:
- LRU (Least Recently Used): LRU removes the objects that have not been
- accessed for the longest time.
- GDSF (GreadyDual-Size): This algorithm assigns priority to cached objects
- based on the coast of a cache miss and the size of the object. Objects with
- smallest priority are removed first.
-
-
- MCacheRemovalAlgorithm GDSF
- MCacheRemovalAlgorithm LRU
-
+ The MCacheRemovalAlgorithm directive specifies
+ the algorithm used to select documents for removal from the cache.
+ Two choices are available:
+ LRU (Least Recently Used): LRU removes the
+ documents that have not been accessed for the longest time.
+ GDSF (GreadyDual-Size): GDSF assigns a priority
+ to cached documents based on the cost of a cache miss and the size of
+ the document. Documents with the lowest priority are removed first.
+
+
+ MCacheRemovalAlgorithm GDSF
+ MCacheRemovalAlgorithm LRU
+
-
\ No newline at end of file
+