Re: [squid-users] problem in changing COSS maximum object size

From: Bal Krishna Adhikari <balkrishna_at_subisu.net.np>
Date: Fri, 3 May 2013 11:34:50 +0545

Hello Amos,

Thanx for the reply.
I just wanted to put some larger objects in some of the COSS partitions due to high IO in low speed HDD.
I've decided to put larger files in aufs and smaller in COSS.
This will be good solution, I think.

Rgds,
Niran

On 2 May 2013, at 16:40, Amos Jeffries <squid3_at_treenet.co.nz> wrote:

> On 2/05/2013 6:38 p.m., Niran wrote:
>> Dear All,
>>
>> I'm having problem in Squid 2.7 STABLE 9 on changing the maximum object size to higher value then default of 1 MB.
>> I re-compiled the squid with --with-coss-membuf-size=134217728 which is 128 MB.
>> And I even changed the static value of COSS_MEMBUF_SZ 134217728 in source file /src/fs/coss/store_coss.h and recompiled.
>>
>> This is still giving the error that I can't change the max-size in COSS is bigger then COSS_MEMBUF_SZ (1048576).
>>
>> Does anyone have any idea ?
>
> Why are you trying to increase this size?
> COSS is only efficient because it stores *small* objects and pre-loads a bunch of closely related ones in each slice. Dumping larger ones into each slice reduces the amount of pre-loading which is possible by loading the slice. There is a threshold somewhat *less* than 1MB where it becomes more efficient to use the OS disk buffering and stream each file individually to the client wanting it. AUFS runs faster on large files.
>
> Amos
Received on Fri May 03 2013 - 05:50:05 MDT

This archive was generated by hypermail 2.2.0 : Fri May 03 2013 - 12:00:13 MDT