10.3 Memory

only for RuBoard - do not distribute or recompile

10.3 Memory

Caching products vary greatly in how they use RAM. Some caches, notably Squid, keep a number of indexes in memory. The indexes have an entry for every cache object, such that index memory requirements are proportional to cache size . Most caching products also use memory to store popular or recently requested objects. Storing popular objects entirely in memory results in a performance improvement. Caches also use memory to pass data to and from the network. The amount of memory used for network buffers is proportional to the load on the system.

Memory starvation can be a serious problem. It is certainly serious for Unix-based solutions, such as Squid. When the application needs more memory than is physically available, some of the process memory is written to disk. Performance degrades very quickly when swapping occurs.

If you're thinking about an appliance-based solution, you probably don't have to worry about memory configurations. The product should come with an appropriate amount of memory, based on the particular software and other hardware components . If additional memory is available for your product, it may boost the cache's performance by holding extra objects in memory.

If you're using a software-based product, you'll need to find out the amount of memory the vendor recommends. Current versions of Squid require a lot of memory compared to other products (including appliances). For Squid, I typically recommend 1MB of RAM for every 32MB of disk capacity. A significant amount of Squid's memory usage is for storing pointers in an index. Some CPUs, such as the DEC Alpha, have 64-bit pointers, which further increases memory requirements.

only for RuBoard - do not distribute or recompile


Web Caching
Web Caching
ISBN: 156592536X
EAN: N/A
Year: 2001
Pages: 160

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net