Ola Malmstrom
Regular Contributor
It takes about 40 seconds each hour on my RT-AC3200. If your CPU load continues there is probably something else going on. Try to switch your router off and then on again.
ok, thanks. The CPU was going 25% to 75% every few seconds on the UI. "top" command on ssh session was showing around 10% CPU usage for this. I restarted a few times and the CPU would start out at 2% (which is it's normal state) and then go back to 25% to 75% in a few minutes. I turned this off and the CPU went back to 2%. Not sure...It takes about 40 seconds each hour on my RT-AC3200. If your CPU load continues there is probably something else going on. Try to switch your router off and then on again.
What version firmware?Hey folks, I've searched quite a bit for my issue but haven't found an answer.
I can't see the DivUIStats. I have a ax88U, I have the scripts up to date and running diversion for 2 weeks. I just went to amtm to generate the stats, but I go into Tools in the WebUI and I can only see the other plugin tools, like spdMerlin. Do I need to do anything to force the webUI update that allows me to check the stats?\
Thank you.
Firmware Version:384.14
amtm 3.1.5
Diversion: v4.1.10
uiDivStats: v1.3.1
dnsmasq.log 9.2M
Thank you @quicksilver
Yup... edit the cron entry using the cru command. I changed my hourly into nightly at 4 AM... It was a hassle to loose Internet for few minutes each and every hourCan someone help me understand how/what it does in the background? The problem is that my CPU is going haywire. It is constantly churning through the log files? Is there a way to do the processing in a nightly job?
View attachment 21757
what's this? dnsmasq logs but in sqlite?
My realtime logging to sqlite should be just the ticket then! I use unbound but it sits behind dnsmasq/diversion.Great idea. Grab the records when the logs are small and put them into SQLite. Brilliant.
With how fast unbound is it makes me wonder how much faster dnsmasq would be without writing to disk constantly. No other way to get logs though. Wish one of them would give a different option. Miss my stats.
I don't typically look at that.Show of hands, who looks at the text file report that uiDivStats currently displays? I'm considering removing the current stats generation in its entirety from uiDivStats in favour of leveraging sqlite querying (i.e. no more long running greps on log files)
Jack,Show of hands, who looks at the text file report that uiDivStats currently displays? I'm considering removing the current stats generation in its entirety from uiDivStats in favour of leveraging sqlite querying (i.e. no more long running greps on log files)
My realtime logging to sqlite should be just the ticket then! I use unbound but it sits behind dnsmasq/diversion.
You mean the Diversion Statistics Report up top? I use it.Show of hands, who looks at the text file report that uiDivStats currently displays? I'm considering removing the current stats generation in its entirety from uiDivStats in favour of leveraging sqlite querying (i.e. no more long running greps on log files)
Ok. I'll see if I can recreate it with my new approach. Otherwise, I'll make it optional with a warning that generating it can take a while/eat cpu cyclesYou mean the Diversion Statistics Report up top? I use it.
Essentially I'm tailing the log files, and writing the relevant lines to sqlite. The tail is running through an awk script to filter/format the outputHow do you get the results from Dnsmasq? Need to scrape the logs?
Sounds like a nice way to make everybody happyOk. I'll see if I can recreate it with my new approach. Otherwise, I'll make it optional with a warning that generating it can take a while/eat cpu cycles
Essentially I'm tailing the log files, and writing the relevant lines to sqlite. The tail is running through an awk script to filter/format the output
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!