Re: problem with large quotas
Hi, --On 5. April 2005 12:21:41 Uhr -0400 Ken Murchison [EMAIL PROTECTED] wrote: 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 300 quota:300 cyrus.rrz.uni-koeln.de lq user/a0620 STORAGE 297144/300 (9.9048%) [EMAIL PROTECTED] imap]$ quota user/a0620 Quota % UsedUsed Root 300 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. ;) I'm glad you wrote that, because I'm not sure I understand ;-) I get the difference between limit and usage. What I don't get is when precisely this becomes an issue. If I've got a limit 2 GB all usages up to 2 GB should be OK, because neither value overflows its variable, right? If the usage goes over the 2 GB limit, I assume it would roll over? So the worst case scenario would be that quotas 2GB equal no quota!? But this analysis does not mesh with the following statement: I set a user to have a 10 gigabyte quota and the user was treated as being over-quota with just 10 megabytes. How does that happen? Is it that the difference between limit and usage is measured in bytes and is also 32 bits? That might explain it ... Thanks, Sebastian Hagedorn -- Sebastian Hagedorn - RZKR-R1 (Gebude 52), Zimmer 18 Zentrum fr angewandte Informatik - Universittsweiter Service RRZK Universitt zu Kln / Cologne University - Tel. +49-221-478-5587 pgpZjIASHHmHQ.pgp Description: PGP signature
Re: problem with large quotas
Sebastian Hagedorn wrote: Hi, --On 5. April 2005 12:21:41 Uhr -0400 Ken Murchison [EMAIL PROTECTED] wrote: 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 300 quota:300 cyrus.rrz.uni-koeln.de lq user/a0620 STORAGE 297144/300 (9.9048%) [EMAIL PROTECTED] imap]$ quota user/a0620 Quota % UsedUsed Root 300 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. ;) I'm glad you wrote that, because I'm not sure I understand ;-) I get the difference between limit and usage. What I don't get is when precisely this becomes an issue. If I've got a limit 2 GB all usages up to 2 GB should be OK, because neither value overflows its variable, right? That is also my understanding. If the usage goes over the 2 GB limit, I assume it would roll over? So the worst case scenario would be that quotas 2GB equal no quota!? Yes, the usage would overflow. I'm not sure how the overflow will be seen by the client/server. I'd have to check the code. But this analysis does not mesh with the following statement: I set a user to have a 10 gigabyte quota and the user was treated as being over-quota with just 10 megabytes. How does that happen? Is it that the difference between limit and usage is measured in bytes and is also 32 bits? That might explain it ... This doesn't make sense to me. Perhaps the person that reported this didn't realize that the limit is set in Kbytes, not bytes, and somehow messed up their math. -- 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
Re: problem with large quotas
Hi, this is from an old thread: --On 28. September 2004 14:23:08 Uhr -0400 Ken Murchison [EMAIL PROTECTED] 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 300 quota:300 cyrus.rrz.uni-koeln.de lq user/a0620 STORAGE 297144/300 (9.9048%) [EMAIL PROTECTED] imap]$ quota user/a0620 Quota % UsedUsed Root 300 9 297163 user/a0620 Am I missing something? Thanks, Sebastian Hagedorn -- Sebastian Hagedorn - RZKR-R1 (Gebude 52), Zimmer 18 Zentrum fr angewandte Informatik - Universittsweiter Service RRZK Universitt zu Kln / Cologne University - Tel. +49-221-478-5587 pgpYzOzfCeiju.pgp Description: PGP signature
Re: problem with large quotas
Sebastian Hagedorn wrote: Hi, this is from an old thread: --On 28. September 2004 14:23:08 Uhr -0400 Ken Murchison [EMAIL PROTECTED] 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 300 quota:300 cyrus.rrz.uni-koeln.de lq user/a0620 STORAGE 297144/300 (9.9048%) [EMAIL PROTECTED] imap]$ quota user/a0620 Quota % UsedUsed Root 300 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
Re: problem with large quotas
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? Which version of cyrus-imapd on which OS are you using? Phil. --- Phil Chambers ([EMAIL PROTECTED]) University of Exeter --- 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 --- 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
Re: problem with large quotas
On Tue, 28 Sep 2004 18:43:18 +0200 (CEST) Simon Matter [EMAIL PROTECTED] 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? Which version of cyrus-imapd on which OS are you using? Sorry, I should have said. cyrus-imapd version 2.1.13. uname -rs says SunOS 5.8 (Solaris 8, I think). Phil. --- Phil Chambers ([EMAIL PROTECTED]) University of Exeter --- 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
Re: problem with large quotas
we have users with 4 gb of quota and it works redhat AS 3 is our os cyrus 2.1.16 - Original Message - From: Simon Matter [EMAIL PROTECTED] To: Philip Chambers [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, September 28, 2004 6:43 PM Subject: Re: problem with large quotas 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? Which version of cyrus-imapd on which OS are you using? Phil. --- Phil Chambers ([EMAIL PROTECTED]) University of Exeter --- 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 --- 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 --- 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
Re: problem with large quotas
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. -- 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