Big problem with quota

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

Post Reply
Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Big problem with quota

Post by Tareq »

When the router's power Suddenly cut (power off) , the bandwidth usage of the current day resets to zero.
That make mistake in qouta of each user.

I try it many time.

Please help.



Notice:
For this reason i found a big difference between gargoyle and isp bandwidth usage.
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Lantis
Moderator
Posts: 5715
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Big problem with quota

Post by Lantis »

The only solution is to increase the frequency at which the bandwidth data is saved.
Currently it's every 4 hours I believe.

This comes with the risk of increasing wear levels on the flash storage.

How would you like to proceed?
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Big problem with quota

Post by Tareq »

What happen to the memory if the frequency saved every 1 minute?

I think you can make the frequency time as option in gargoyle interface.

Is there any way to change the frequency time on my gargoyle ? ssh command or any thing ? I want it 1 minute at max.
Last edited by Tareq on Sat Dec 26, 2015 11:06 pm, edited 1 time in total.
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Lantis
Moderator
Posts: 5715
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Big problem with quota

Post by Lantis »

It's controlled by the Crontab I believe.

Flash storage generally has ~100,000 flash writes before it starts to degrade.
At 1 minute intervals, in 10 weeks you will exceed this number.
I wouldn't recommend it to be honest.

But, it's your device. Do as you please.

It won't be made an option due to the damage potential that it can cause.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Big problem with quota

Post by Tareq »

Ok thank you

Mabe i make it 15 minutes , if it work for 3 years thats good.
But how can i change it ? What is the command or what is the parameter which i change ? I never use ssh befoe.

Please help me
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Lantis
Moderator
Posts: 5715
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Big problem with quota

Post by Lantis »

I'd recommend using WinSCP to log into the router and edit the files in a GUI.

The file at /etc/crontabs/root is the one you want to edit.
The line:
0 0,4,8,12,16,20 * * * /usr/bin/backup_quotas
Dictates that it should be backed up every 4 hours.

Code: Select all

 # ┌───────────── min (0 - 59)
 # │ ┌────────────── hour (0 - 23)
 # │ │ ┌─────────────── day of month (1 - 31)
 # │ │ │ ┌──────────────── month (1 - 12)
 # │ │ │ │ ┌───────────────── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names; 7 is Sunday, the same as 0)
 # │ │ │ │ │
 # │ │ │ │ │
 # * * * * *  command to execute


This is the format of a cron command.

If you need anything further please ask, I just won't be back onto a computer until tomorrow.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

sigwx
Posts: 61
Joined: Fri Oct 23, 2015 4:14 am

Re: Big problem with quota

Post by sigwx »

Is the data saved on a clean reboot (using the Reboot option in the System area)? Not sure if I've noticed losing quota data there (maybe in 1.8.0, but I've not checked in 1.9.0 since its been up for 59 days straight).

Lantis
Moderator
Posts: 5715
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Big problem with quota

Post by Lantis »

Yes. A planned, clean reboot should save the data first.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply