On 07/12/2017 04:31 AM, bugreporter wrote: > Can anybody help me to confirm my understanding of the memory usage vs the > persistent cache capacity? Below my understanding: > > According to http://wiki.squid-cache.org/SquidFaq/SquidMemory: > > 1- We need 14 MB of memory per 1 GB on disk for 64-bit Squid.The wiki is > there since I know squid (ie. i'm very old now). Is this information still > valid? > > 2- Is this assumption based on the default value of 13 KB for > *store_avg_object_size*? > > 3- If answers to questions above are both YES, can we deduce that we need > *182* bytes in memory per object in the persistent cache on 64x system? > [*182* = (14 * 1024 * 1024) / (1024 * 1024 / store_avg_object_size)] > > 4- Today the *store_avg_object_size* should be really greater than 13 KB. > The mean object size I can see on my own cache is about 100 KB. Can anybody > refer me to a website where I can find fresh information? > > 5- If I'm completely on a wrong way, can anybody help me to find a formula > that can help me to deduce the required RAM for a given HDD capacity (and > vice versa). I cannot answer your questions without doing research, but I can supply the following additional information: * The amount of RAM used for shared (rock) cache_dirs is usually very different from the amount of RAM used for SMP-unaware ufs-based cache_dirs. The wiki page was written before Rock support was added. * For ufs, you can test any formula/hypothesis by filling a disk cache (with dummy/test objects) and measuring Squid RAM usage. The RAM usage growth due to cache_dir index should be linear so it is fairly easy to measure. * For rock, you can test any formula/hypothesis by configuring your disk caches and starting SMP Squid. The shared memory tables are created at start time so, if you know what you are doing, you can probably see how big they are without filling the disk cache. Please update the wiki if you find any documentation bugs. Alex. _______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users