From 7664f5d24b67cd44b3acbcb3f13bc2c07b81406d Mon Sep 17 00:00:00 2001 From: Chris McFarlen Date: Tue, 11 Oct 2022 10:57:36 -0500 Subject: [PATCH] fix contradicting documentation and say a bit about the resident size of a volume directory --- doc/admin-guide/storage/index.en.rst | 2 +- doc/developer-guide/cache-architecture/architecture.en.rst | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/admin-guide/storage/index.en.rst b/doc/admin-guide/storage/index.en.rst index 0cd593a5f62..afcec263194 100644 --- a/doc/admin-guide/storage/index.en.rst +++ b/doc/admin-guide/storage/index.en.rst @@ -130,7 +130,7 @@ To change the RAM cache size: #. Set the variable :ts:cv:`proxy.config.cache.ram_cache.size` to specify the size of the RAM cache. The default value of ``-1`` means - that the RAM cache is automatically sized at approximately 1MB per + that the RAM cache is automatically sized at approximately 10MB per gigabyte of disk. #. Restart Traffic Server. If you increase the RAM cache to a size of diff --git a/doc/developer-guide/cache-architecture/architecture.en.rst b/doc/developer-guide/cache-architecture/architecture.en.rst index 202320d4ee7..7e9bb4a6f70 100644 --- a/doc/developer-guide/cache-architecture/architecture.en.rst +++ b/doc/developer-guide/cache-architecture/architecture.en.rst @@ -174,6 +174,10 @@ change, neither does this memory requirement, so |TS| does not consume more memory as more content is stored in the cache. If there is enough memory to run |TS| with an empty cache there is enough to run it with a full cache. +The resident size of the directory for a cache volume is generally <0.2% of the +volume size. The exact memory allocated for the directory of a volume can be +seen if traffic_server is run with the 'cache_init' debug tag enabled. + .. figure:: images/cache-directory-structure.png :align: center