Squid configuration directive memory_cache_shared
Available in: v7 v6 v5 v4 3.5 3.4 3.3 3.2
For older versions than v4 see the linked pages above
Configuration Details:
Option Name: | memory_cache_shared |
---|---|
Replaces: | |
Requires: | |
Default Value: | "on" where supported if doing memory caching with multiple SMP workers. |
Suggested Config: |
|
Controls whether the memory cache is shared among SMP workers. The shared memory cache is meant to occupy cache_mem bytes and replace the non-shared memory cache, although some entities may still be cached locally by workers for now (e.g., internal and in-transit objects may be served from a local memory cache even if shared memory caching is enabled). By default, the memory cache is shared if and only if all of the following conditions are satisfied: Squid runs in SMP mode with multiple workers, cache_mem is positive, and Squid environment supports required IPC primitives (e.g., POSIX shared memory segments and GCC-style atomic operations). To avoid blocking locks, shared memory uses opportunistic algorithms that do not guarantee that every cachable entity that could have been shared among SMP workers will actually be shared. |
|
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products
Miscellaneous
- Developer Resources
- Related Writings
- Related Software:
- Squid Artwork
Web Site Translations
Mirrors
- Website:
- ... full list
- FTP Package Archive