Jack Yaz
Part of the Furniture
Shouldn't be! Can you send a screenshot please?Hello Jack
I’m running your developer version and works ok. I noticed that the client drop down menu under the query log is now gone
Shouldn't be! Can you send a screenshot please?Hello Jack
I’m running your developer version and works ok. I noticed that the client drop down menu under the query log is now gone
When stopping taildns this is what atop shows.That's weird. Stop taildns :
Does disk usage drop? If so, start it again then check again. If disk usage increases again please send output ofCode:/opt/etc/init.d/S90taildns stop
Code:ps | grep taildns
DSK | sda | busy 28% | read 63202 | | write 151010 | KiB/r 20 | KiB/w 23 | MBr/s 0.0 | MBw/s 0.0 | | avq 6.84 | avio 311 ms |
DSK | sda | busy 28% | read 63263 | | write 151196 | KiB/r 20 | KiB/w 23 | MBr/s 0.0 | MBw/s 0.0 | | avq 6.86 | avio 311 ms
Right after I posted that atop shows this....Guess it took some time to start back up.When stopping taildns this is what atop shows.
Code:DSK | sda | busy 28% | read 63202 | | write 151010 | KiB/r 20 | KiB/w 23 | MBr/s 0.0 | MBw/s 0.0 | | avq 6.84 | avio 311 ms |
View attachment 24138
Starting back up....
View attachment 24139Code:DSK | sda | busy 28% | read 63263 | | write 151196 | KiB/r 20 | KiB/w 23 | MBr/s 0.0 | MBw/s 0.0 | | avq 6.86 | avio 311 ms
DSK | sda | busy 102% | read 0| read 63263 | | write 11 | KiB/r 0 | KiB/w 5 | MBr/s 0.0 | MBw/s 0.0 | | avq 6.39 | avio 910 ms
you definitely have the cache mode enabled? though in this output it looks like your dsk is choking on readsRight after I posted that atop shows this....Guess it took some time to start back up.
Code:DSK | sda | busy 102% | read 0| read 63263 | | write 11 | KiB/r 0 | KiB/w 5 | MBr/s 0.0 | MBw/s 0.0 | | avq 6.39 | avio 910 ms
you definitely have the cache mode enabled? though in this output it looks like your dsk is choking on reads
might be time to replace that USB!
So i noticed that I was logging "All" in the query mode and chose to change that. The next option seems to have helped settle it some. I've seen percentage go as high as 86% but nothing as high as 102% like before.View attachment 24140
Pretty sure I do. Will toggle it again and see if message under "C" changes. I'd agree on the USB comment. Oddly enough I did change the usb recently to that one but Im pretty sure the USB being used there isn't an expensive one though.
Running v2.2.0 with the toggled cache-option since 5 hours without any issues (RT-86U). And it seems to work! Thanks @Jack Yaz!
For those experiencing high DSK and/or CPU usage with 2.X
Please can you test the "cache" mode available on the develop branch? You can switch by running:
and using option c in the CLI menu.Code:uiDivStats develop
The cache approach, rather than write dns query records directly to the db on the usb, stores them in tmpfs (memory). Then, every 5 minutes (starting at 4 past the hour), the cache is written to the usb. This means you should not see 100% disk ongoing.
Should be identical functionally!Is there a benefit to using the CACHE mode if you have a high-performing USB stick which appears to work okay even without it?
Functionally, is one better than the other? Accuracy of statistics, etc.?
ah right sorry, client wasn't a dropdown but a freeform text box. i should probably work on getting hostnames in there to be honest
someone much smarter than me would need to explain why your better benchmarking drive hit such a bottleneck.Interesting... the new usb stick I just got seems to have done the trick.
Code:Include fsync in write timing O_DIRECT feature enabled Auto Mode File size set to 20480 kB Record Size 4 kB Record Size 16 kB Record Size 512 kB Record Size 1024 kB Record Size 16384 kB Command line used: /jffs/bin/iozone -e -I -a -s 20M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 Output is in kBytes/sec Time Resolution = 0.000001 seconds. Processor cache size set to 1024 kBytes. Processor cache line size set to 32 bytes. File stride size set to 17 * record size. random random bkwd record stride kB reclen write rewrite read reread read write read rewrite read fwrite frd 20480 4 22482 28003 20559 20939 16365 13989 20480 16 53438 1759 46531 56935 37743 20731 20480 512 120908 124107 172335 175229 149034 109495 20480 1024 117373 113702 181513 185488 170472 107876 20480 16384 110677 119308 240721 238468 242302 117076 iozone test complete.
The specs are light years ahead of my other USB sticks.
So far, I am not seeing any CPU spikes or any activity in atop.
One thing that is weird, the previous USB sticks I had, IOZONE was still showing better performance that what @Jack Yaz had on his drives.
I could be possible that the USB drives I had were "lemons" even if they were only a few months old...weird.
Interesting... the new usb stick I just got seems to have done the trick.
im sorry, my bad. i could swear i had seen a dropdown menu before.ah right sorry, client wasn't a dropdown but a freeform text box. i should probably work on getting hostnames in there to be honest
@thelonelycoder Is there a command line invocation that I could pass a domain to for Diversion to do this, or am I treading on Diversion's WebUI for this sort of thing?Off topic, I am not sure if this the right place or even possible to do so in uiDivStats (a feature request).
Would it be possible, in the Query Log section, if you see a "blocked" domain, it would be nice to click on the domain, and put in whitelist. Or vice-versa, block a domain. This would mean that it needs to update the Diversion whitelist and blocklists and then allow diversion to process the lists.
As I said, this might be completely off topic, but would be pretty neat to have.
In any case, really appreciate all the work @Jack Yaz put into developing such a cool tool.
While I'm perplexed that neither your previous USB or the caching mode helped, I'm pleased it's working for you now!Just wanted to share this to close off the issue I had with my USB stick.
After a fresh install and brand new USB3.0 stick, I have my router running for almost 24 hr with the following stats:
View attachment 24169
There is no real activity on my CPU, in both the webui or htop and atop:
View attachment 24170
In the end, we need to make sure that our USB sticks/drives are actually good. Even brand new ones could be the issue.
Thanks for all the help from everyone.
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!