Re: [squid-users] maximum_object_size > 2GB prevents caching?

From: Matus UHLAR - fantomas <uhlar@dont-contact.us>
Date: Fri, 14 May 2004 20:06:21 +0200

On 14.05 14:04, Christoph Haas wrote:
> this morning we found out that our cache hit ratio is zero. We started to
> investigate and according to the store.log all objects were tagged "RELEASE".
> There were absolutely no files cached in the cache_dir.
>
> We reduced the squid.conf to track down the problem. It appears that when
> specifying a maximum_object_size larger than 2 GB the whole caching feature
> becomes disabled. However I haven't seen anything useful in the cache.log
> that would give me a hint.
>
> I wanted to cache ISO disk images if possible and accidentally set it to 8 GB
> instead of 800 MB. We are using the ext3 file system here. However I would
> assume that some internal pointer can't handle objects large than 2 GB.

afaik squid2 can't handle files over 2GB. It is possible that it
understands size over 2GB as negative, thus every file exceeds maximum
maximum_object_size and is not cached.

> Is this a known feature? Is the internal variable for handling the size
> just 32 bit? Then wouldn't it make sense to give an error message when the
> maximum_object_size is set too large? This one gave me a headache. :)

You could try using seuid3, although it is beta...

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I just got lost in thought. It was unfamiliar territory. 
Received on Fri May 14 2004 - 12:06:26 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Jun 01 2004 - 12:00:01 MDT