Re: [squid-users] Re: cache_dir aufs grows larger than config'ed

From: Matus UHLAR - fantomas <uhlar_at_fantomas.sk>
Date: Tue, 5 Oct 2010 09:14:03 +0200

> > On 29.09.10 17:42, Rich Rauenzahn wrote:
> >> This code strikes me as incorrect... Basically for files > 2GB, squid
> >> does the accounting wrong!

> On Mon, Oct 4, 2010 at 2:56 AM, Matus UHLAR - fantomas <uhlar_at_fantomas.sk>
> wrote:
> > It's apparently just a filesystem overhead, which varies between filesystems
> > but may eat some % of disk space.

On 04.10.10 08:25, Rich Rauenzahn wrote:
> No, it's a bug. File system overhead doesn't account for taking 2-3
> times more space than what squid says it is using. See
> http://bugs.squid-cache.org/show_bug.cgi?id=3068

pardon me, but I don't see anything that would take 2-3 times more than
configured limit and/or what squid says:

squid2: 363520856 /squid/

Maximum Swap Size : 307200000 KB
Current Store Swap Size: 275852960 KB

squid3: 343399160 /squid/

Maximum Swap Size : 307200000 KB
Current Store Swap Size: 260064224 KB

squid4: 356593016 /squid/

Maximum Swap Size : 307200000 KB
Current Store Swap Size: 276444512 KB

that's about 30% more used than configuration option says.
that could be result of filesystem overhead.

> >> Note that sizeof(int) is 4 in both 32bit and 64bit compilation models.
> >>  I believe that blks * fs.blksize overflows 32bit before it is right
> >> shifted by 10 bits.
> >
> > if you want to use filesizes over 2GB on 32bit system, you must make your
> > program to be 64-bit capable, and compile it that way.
> >
> > the same applies about using 64bit numbers.
>
> No, "int"s are still 32bit in the 64bit compilation model. And they
> will still overflow.

well "the same applies" here means (or at least it should) that you must
make your program capable, by using int64_t or "long long" etc.

Well,

-- 
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.
Your mouse has moved. Windows NT will now restart for changes to take
to take effect. [OK]
Received on Tue Oct 05 2010 - 07:14:08 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 05 2010 - 12:00:02 MDT