Page 1 of 2

Quota Management

Posted: April 19th, 2012, 7:47 pm
by jalim117
Hi,

I know this is a new beta feature and so I expect there are still kinks to be worked out. My counter does not seem to pause download at limit and instead continues though assigned limit. I have it set to limit daily traffic to 20gb but under the "Quota left" I get 300.0 G ⁄ 20.0 G which would suggest that SAB thinks it has got over 300gb of quota for the day... Screenshots:

Image

Image

Great feature if it works, allows me to remain within my draconian ISP's download quotas on a daily basis rather than having to limit myself over the last few days of my quota month.

Re: Quota Management

Posted: April 19th, 2012, 7:54 pm
by jalim117
Further to my last, I have been changing quotas around to see if that changes anything, I always seem to get my set quota + 280 GB (see screens)

Image

Image

Re: Quota Management

Posted: April 19th, 2012, 7:57 pm
by jalim117
Image - Even with MB limits 280GB gets added...

Re: Quota Management

Posted: April 20th, 2012, 12:18 am
by sander
I can not reproduce this. Even not with the space in "20 G", nor the "0:01" (which should be "1", AFAIK).

Does it happen immediately after you will the values in SAB, or only after some time? What happens when you fill out "20G" (no space), "1" as the reset day, and weekly quota?

What does your sabnzbd.log say when you search for "quota"?

Code: Select all

2012-04-20 07:15:41,017::DEBUG::[bpsmeter:150] Read quota q=21474836480.0 l=11209149258.0 reset=1334959260.0
2012-04-20 07:15:41,021::DEBUG::[bpsmeter:312] Will reset quota at (2012, 4, 21, 0, 1, 0, 0, 0, 1)
2012-04-20 07:15:41,021::INFO::[scheduler:163] Setting schedule for quota check daily at 0:1

Re: Quota Management

Posted: April 20th, 2012, 6:33 am
by jalim117
I have had a look at debug log after making changes to a number of the parameters in this setting however still not getting the right numbers... Interestingly I am now getting 8.4G added to what ever quota I choose, doesn't seem to make any difference whether I choose daily, weekly or monthly schedules... And the 00:01 as far as I knew it told the schedule what time of day to reset. Also my log seems to be missing anything to do with "Read Quota" have pasted the only log entries which are showing up. I'm going to let it run out the 8.4 gb and see if it stops there.

Code: Select all

2012-04-20 19:17:11,559::DEBUG::[bpsmeter:312] Will reset quota at (2012, 4, 21, 1, 0, 0, 0, 0, 0)

2012-04-20 19:17:11,559::INFO::[scheduler:163] Setting schedule for quota check daily at 1:0

Re: Quota Management

Posted: April 20th, 2012, 7:01 am
by sander
Long shot: 8.4 GB is 2 * 4.2GB is 2 * 2^32 (so twice the max integer with 32 bits)

Hmm. On what platform are you running SABnzbd?

EDIT:
And what happens when you use 3GB as quotum?

Re: Quota Management

Posted: April 20th, 2012, 7:04 am
by jalim117
Running on windows

Re: Quota Management

Posted: April 20th, 2012, 7:07 am
by sander
jalim117 wrote:Running on windows
Could you set 3GB as limit?

Re: Quota Management

Posted: April 20th, 2012, 7:14 am
by sander
Let's get to the roots: what do the "quota" lines in your sabnzbd.ini say?

Below are mine

Code: Select all

sander@R540:~$ grep -i quota .sabnzbd/sabnzbd.ini
quota_period = d
quota_day = 00:25
quota_size = 10G
quota_resume = 1
sander@R540:~$
FWIW: I tried all kinds of nonsense text in Size and Day, and/but SAB has no problems with that. So that is not the cause.

Re: Quota Management

Posted: April 20th, 2012, 7:30 am
by jalim117
Hmmm still playing up, tried 3GB and same thing, seems to be 8.4gb + quota set - amount downloaded since quota set. I'm stumped but if you can't replicate it, probably just an isolated case.

Re: Quota Management

Posted: April 20th, 2012, 7:54 am
by sander
jalim117 wrote:Hmmm still playing up, tried 3GB and same thing, seems to be 8.4gb + quota set - amount downloaded since quota set. I'm stumped but if you can't replicate it, probably just an isolated case.
... and what do the quota lines in sabnzbd.ini say? See my previous post.

Re: Quota Management

Posted: April 20th, 2012, 8:00 am
by jalim117
Problem fixed... Sort of. Not sure what the issue was, I just deleted the history1.db file in the admin dir and restarted, this seems to have done the trick. Will let it run and see if it's fixed everything. I presume there was an entry in the history1.db file which recorded the amount of data I had downloaded.

In response to your question my settings were identical as yours.

Re: Quota Management

Posted: April 20th, 2012, 8:42 am
by shypike
When you first run 0.7.0, the initial total downloaded amount will be extracted from the database.
It shouldn't really be the basis for the quota of the current period.
I'll look into this.

Re: Quota Management

Posted: April 20th, 2012, 12:48 pm
by shypike
Found the problem.
When you first upgrade to 0.7.0, the total download counter is initialized using the content of the history.
In doing that, the initial available quota left isn't set to the quota but to the above total amount...
Will be fixed in Beta4, but it won't bother you again because you're now past the first day.

Re: Quota Management

Posted: January 16th, 2013, 6:14 am
by nemecky
I'm getting "Quota spent, pausing downloading" messages, but not sure why. I use Giganews with a 10GB/month account and I have only downloaded 5.5GB so far.

I can not find any setting like in the OP's screenshot with a "Quota" section that has an editable field. How can I adjust this?

Thanks!