The warning is bogus for several reasons:
* it appears with memory-only cache configurations
* it only checks the size of first SwapDir (as seen in bug 3762)
* very large memory spaces are now possible which may make disk appear
small by comparison.
Its usefulness in detecting memory and disk misconfigurations has long
been almosy nil. Removing this entirey to resolve the bogus noise in
the above mentioned legitimate configurations.
Config.Store.maxObjectSize = 0x7FFF0000;
}
#endif
- if (0 == Store::Root().maxSize())
- /* people might want a zero-sized cache on purpose */
- (void) 0;
- else if (Store::Root().maxSize() < Config.memMaxSize)
- /* This is bogus. folk with NULL caches will want this */
- debugs(3, DBG_CRITICAL, "WARNING cache_mem is larger than total disk cache space!");
if (Config.Announce.period > 0) {
Config.onoff.announce = 1;