Community discussions

MikroTik App
 
tchus
Member Candidate
Member Candidate
Topic Author
Posts: 111
Joined: Tue Jan 25, 2011 12:08 am

Flash sucking CPU cycles

Wed Apr 06, 2011 5:26 am

Where does flash become a part of the RouterOS? And why is it sucking the life out of a RB750G Hotspot?
Users on the hotspot?
flash.JPG
You do not have the required permissions to view the files attached to this post.
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: Flash sucking CPU cycles

Wed Apr 06, 2011 7:53 am

oooo, i wonder if thats IO Wait ...
 
User avatar
Raf
Member Candidate
Member Candidate
Posts: 172
Joined: Thu May 07, 2009 4:26 pm
Location: Olesnica, Poland
Contact:

Re: Flash sucking CPU cycles

Wed Apr 06, 2011 9:06 am

It's not Adobe Flash... It's flash storage. And yes, writing to it uses a lot of CPU.
 
User avatar
elgo
Member Candidate
Member Candidate
Posts: 151
Joined: Sat Apr 02, 2011 2:34 am
Location: France

Re: Flash sucking CPU cycles

Wed Apr 06, 2011 4:12 pm

How does it come you have so many flash NAND access?
I tried to reduce NAND write to a minimum level on my own 450G (though no hotspot).
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Flash sucking CPU cycles

Wed Apr 06, 2011 4:22 pm

He is probably using the transparent proxy feature of the Hotspot to get the web proxy involved. 750s have tiny amounts of storage so the cache is constantly being thrown out and replaced with new file objects.
 
tchus
Member Candidate
Member Candidate
Topic Author
Posts: 111
Joined: Tue Jan 25, 2011 12:08 am

Re: Flash sucking CPU cycles

Wed Apr 06, 2011 5:29 pm

Yes,
I'm using the transparent proxy. I understand it consumes memory, but what's the alternative?
No trans proxy and and the router is crippled isn't it?

Add: If you notice the errors from radius in log.

Radius accounting request not sent no response.
Does that error/log correlate with the excessive flash overhead?

FYI, I had a few unneeded firewall rules which i've deleted. And I was not using 127.0.0.1 in radius config or in hotspot server profile. Both were pointing to my public domain, and that config seemed to be ok. But, I can see now why that's unnecessary.

Since cleaning up firewall rules and radius config, no recurrence of the flash issue. But, I'm waiting to see if the radius accounting request issue pops up again.
Thanks
Last edited by tchus on Wed Apr 06, 2011 5:48 pm, edited 1 time in total.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Flash sucking CPU cycles

Wed Apr 06, 2011 5:43 pm

Don't proxy. A 750G makes a very, very poor proxy. You're not getting much out of it anyway - the storage available is so small hardly anything is being served from storage, but it keeps being rewritten with new objects. Turn it off, and you should be fine.
 
tchus
Member Candidate
Member Candidate
Topic Author
Posts: 111
Joined: Tue Jan 25, 2011 12:08 am

Re: Flash sucking CPU cycles

Wed Apr 06, 2011 5:50 pm

Great, I'll eliminate it.
 
User avatar
urbinek
Frequent Visitor
Frequent Visitor
Posts: 87
Joined: Mon Oct 25, 2010 4:11 pm

Re: Flash sucking CPU cycles

Fri May 13, 2011 11:51 am

hello,
i've got same problem on my rb133... but i've got everything disabled except minimum functionality...
what is going on ?
Image
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 27013
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Flash sucking CPU cycles

Fri May 13, 2011 12:25 pm

same problem, disable proxy
 
User avatar
urbinek
Frequent Visitor
Frequent Visitor
Posts: 87
Joined: Mon Oct 25, 2010 4:11 pm

Re: Flash sucking CPU cycles

Mon May 16, 2011 1:25 pm

proxy is disabled, whoever i've got web-proxy in stores and i cant delete it..
shortly after reboot it is disabled and i can remove it but after few seconds entry is back and active
Image
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 27013
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Flash sucking CPU cycles

Mon May 16, 2011 1:31 pm

create a new store, set it as active, then remove the old (full) store.
 
User avatar
urbinek
Frequent Visitor
Frequent Visitor
Posts: 87
Joined: Mon Oct 25, 2010 4:11 pm

Re: Flash sucking CPU cycles

Mon May 16, 2011 1:53 pm

ok 've deleted this unused store by creating new one that i also cant remove

why is this happening ?
this rb is working only as AP Bridge
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 27013
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Flash sucking CPU cycles

Mon May 16, 2011 1:54 pm

do you use hotspot?
 
User avatar
urbinek
Frequent Visitor
Frequent Visitor
Posts: 87
Joined: Mon Oct 25, 2010 4:11 pm

Re: Flash sucking CPU cycles

Mon May 16, 2011 2:04 pm

in first screen i've show enabled packages, Hot-Spot is disabled and unused on this device (also on GW if you ask)
routing, dhcp etc is disabled
i'm using only wireless and bridge
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 27013
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Flash sucking CPU cycles

Mon May 16, 2011 2:15 pm

make a supout.rif file and send to support, we will check what is using the store.
 
User avatar
urbinek
Frequent Visitor
Frequent Visitor
Posts: 87
Joined: Mon Oct 25, 2010 4:11 pm

Re: Flash sucking CPU cycles

Mon May 16, 2011 3:33 pm

ok, i'll wait until cpu reaches 100% and make supout.rif
or it isnt necessary ?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 27013
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Flash sucking CPU cycles

Mon May 16, 2011 3:35 pm

yes, please wait until cpu is high, then make file
 
User avatar
urbinek
Frequent Visitor
Frequent Visitor
Posts: 87
Joined: Mon Oct 25, 2010 4:11 pm

Re: Flash sucking CPU cycles

Mon May 16, 2011 4:13 pm

its gonna be a litle bit troublesome...
RB is rebooting when i'm trying make supout.rif when cpu is idle...

i'm suspecting power adapter (12V/1A), it can overheat and shutdown for a while... whatever

when i'll have file i'll send it to support
 
User avatar
urbinek
Frequent Visitor
Frequent Visitor
Posts: 87
Joined: Mon Oct 25, 2010 4:11 pm

Re: Flash sucking CPU cycles

Mon May 23, 2011 10:14 am

since i've created new and delete old store for proxy and cpu utilization back to normall
uptime 6d and everything is ok
 
romkus
just joined
Posts: 15
Joined: Wed Sep 11, 2013 2:38 pm
Location: Ukraine

Re: Flash sucking CPU cycles

Fri Aug 15, 2014 12:48 pm

Looks like this problem persists in RouterOS 5.26 on my routerboard 751U-2HnD. Web-proxy disabled, wireless, ipv6, hotspot, mpls packages are disabled too. There is additional Ntp package working. Using dhcp-server, ntp-server, firewall (filter, NAT, mangle, address-lists), bridges, PPPoE clients, and PPTP server. The problem disappearing sometimes for a few days by itself, but then returned (maybe due to increasing connections count and, thereby, more RAM utilising). Often the CPU becomes so busy that router stops responding at all and needs rebooting. I've set up the watchdog and it helps to do it automatically (thank you for it). But nevertheless the work going bad and interrupted sometimes.
How to really disable the RouterOS web-proxy?
Maybe I have to try to upgrade to RouterOS v6.18?

P.S. Sorry for flood.. Removing the "web-proxy" storage by adding new one helps with sucking CPU by flash, just after rebooting. After rebooting I've removed all storages of web-proxy. Now it works yet... If the flash problem will back again I'll write more..
P.P.S. It has been back again... The problem returns when I give "/system backup> save name=<AName>" and "/>export file=<AName>" commands. I don't know yet which of them really provokes it. But after executing this two commands the "web-proxy" store appeared again, and again it is active... and the "flash" process category started to suck CPU again (sometimes looks like it hushes, and continuing using CPU in a few minutes). I've deleted the store by adding new one (like I had done it first time). I shall try to reproduce it again when it will be safe to reboot my router... or when it will reboot itself.
 
romkus
just joined
Posts: 15
Joined: Wed Sep 11, 2013 2:38 pm
Location: Ukraine

Re: Flash sucking CPU cycles

Sat Aug 23, 2014 4:36 pm

... I shall try to reproduce it again...
Successfully reproduced. New "web-proxy" store creating when I give command
export file=<NameForFile>
namely when I try to export all the settings to script file.
Hmm... may some contents of the file to provoke this proxy-store-flash problem during export?
P.S. Or... maybe it happens just when I open the proxy settings window in WinBox? I've just looked to it to make sure that the proxy is off... I'll try once again...
 
romkus
just joined
Posts: 15
Joined: Wed Sep 11, 2013 2:38 pm
Location: Ukraine

Re: Flash sucking CPU cycles

Sat Aug 23, 2014 5:23 pm

... I'll try once again...
Wow.. the "web-proxy" store created and activated in both cases: on all settings export and when I just open /ip/web-proxy settings in WinBox. I triend it on two routers, RB751U-2HnD and RB750GL with RouterOS 5.26. But "flash" uses CPU greatly just on first of them. And I don't know yet if it uses it so high after just opening that settings window... I will look more.. Maybe sometimes the router just having too few RAM (when proxy using it too) and so it uses a swap file? Has RouterOS any swap-files on routerboards?
Sorry for maybe too much waste text.. It seems to be an old issue, but I failed to google a good answer.
 
romkus
just joined
Posts: 15
Joined: Wed Sep 11, 2013 2:38 pm
Location: Ukraine

Re: Flash sucking CPU cycles

Fri Sep 26, 2014 6:33 pm

I still don't know why my router hangs, I just can say that it can hang with proxy turned off and even with no "stores" at all too. "Flash" process uses CPU highly, mostly under high client load, but the traffic can be little, so I think maybe connection count or DNS cache size is the bottleneck. Sometimes it eats all the CPU time suddenly. I believe the router hangs due to "flash" process, and maybe it affected by lack of free RAM..
by the way.. it has only 32Mb of RAM. And despite of about 10Mb are free most time (it can fall to 5 and ... perhaps it less when I can't see), maybe RouterOS tries to free some amount and flushes some virtual memory to flash?
 
simonne
just joined
Posts: 10
Joined: Tue Jan 25, 2011 7:38 pm

Re: Flash sucking CPU cycles

Sun Jan 25, 2015 7:53 pm

Finnallllyy some clue here - I have same situation - disabled proxy - and my routerboard hangs after random time -
When it happens "Flash" is rasing and rasing ... is the only option migrating to 6... ?
 
romkus
just joined
Posts: 15
Joined: Wed Sep 11, 2013 2:38 pm
Location: Ukraine

Re: Flash sucking CPU cycles

Sat May 02, 2015 10:28 am

... is the only option migrating to 6... ?
I don't believe it was really an option (unless Your router has a multikernel CPU: I've heard RouterOS 6 manages kernels more efficiently). I had just asked about it, but can't say definitely or test it in the place where it happened. That router seems to work fine on some smaller loads. Finally I've installed another router with more RAM (old was 32MB), as I have not seen this problem on any 64MB router. After couple weeks I can say the problem successfully solved this way...