problem with large quotas

Ken Murchison ken at oceana.com
Tue Apr 5 12:21:41 EDT 2005


Sebastian Hagedorn wrote:

> Hi,
> 
> this is from an old thread:
> 
> --On 28. September 2004 14:23:08 Uhr -0400 Ken Murchison 
> <ken at oceana.com> wrote:
> 
>> Philip Chambers wrote:
>>
>>> I have just encountered a problem with setting a large quota and it
>>> appears that the  code must be using just 32 bit arithmetic!
>>>
>>> I set a user to have a 10 gigabyte quota and the user was treated as
>>> being  over-quota with just 10 megabytes.  I presume there will be
>>> problems if I set a  quote of over 2 gigabytes which is the 32 bit
>>> limit.  Can anyone clarify the  situation?
>>
>>
>> Yes, both the quota limit and quota usage are limited to 32-bits.  Cyrus
>> 2.3 uses 64-bits (long long int) on systems that support it.
> 
> 
> I wonder if this is still true for 2.2.10. I set my quota to 3 GBs and 
> it seems to work OK:
> 
> cyrus.rrz.uni-koeln.de> sq user/a0620 3000000
> quota:3000000
> cyrus.rrz.uni-koeln.de> lq user/a0620
> STORAGE 297144/3000000 (9.9048%)
> [cyrus at lvr13 imap]$ quota user/a0620
>   Quota  % Used    Used Root
> 3000000       9  297163 user/a0620
> 
> Am I missing something?

The limit is measured in Kbytes where the usage is measured in bytes. 
So, while you can theoretically set the limit to 2TB (2GB * 1KB), the 
usage is still limited to 2GB (32 bits).  Did I explain this clearly? 
Reading it myself, I'm not sure I did.  ;)

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list