Community discussions

MikroTik App
 
User avatar
grzesjan
Member Candidate
Member Candidate
Topic Author
Posts: 144
Joined: Fri Feb 24, 2006 7:43 pm
Location: Poland

How many writes to flash will kill it?

Wed Jun 14, 2006 3:17 pm

How many (aproximately) writes to flash will kill it?

I have:

[admin@TESTY] > /system resource print
uptime: 4d20h48m45s
version: "2.9.25"
free-memory: 15744kB
total-memory: 30440kB
cpu: "MIPS 4Kc V0.10"
cpu-frequency: 264MHz
cpu-load: 0
free-hdd-space: 93816kB
total-hdd-space: 126976kB
write-sect-since-reboot: 34491
write-sect-total: 103900
bad-blocks: 1

Should I worry about last two numbers? Is 100.000 written sector really big value? Should I consider changing config & preparing new flash with backup?

Gregor
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26378
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Wed Jun 14, 2006 3:20 pm

that is `writes per card`, flash can be killed by some hundeds of thousands writes `per sector`. no worries, we have not seen one dead flash for years. at least not dead by writes.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26378
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Wed Jun 14, 2006 3:21 pm

by the way, that's a RB500, you can't change the flash there ...
 
User avatar
grzesjan
Member Candidate
Member Candidate
Topic Author
Posts: 144
Joined: Fri Feb 24, 2006 7:43 pm
Location: Poland

Wed Jun 14, 2006 3:26 pm

by the way, that's a RB500, you can't change the flash there ...
Eeee? So what do I do? Just thrash it and send you request about new key? :)

Gregor
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26378
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Wed Jun 14, 2006 3:32 pm

read other post. it will not die
 
advantz
Member Candidate
Member Candidate
Posts: 187
Joined: Thu Jul 08, 2004 4:11 am

Wed Jun 14, 2006 5:22 pm

there are cf socket in rb500 right??
 
jarosoup
Long time Member
Long time Member
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Wed Jun 14, 2006 5:40 pm

  write-sect-since-reboot: 129728
         write-sect-total: 3556164
This is an older Sandisk...still chiggin' away. Note that if you use NTP, writes will increase much faster.
 
GotNet
Member
Member
Posts: 434
Joined: Fri May 28, 2004 7:52 pm
Location: Florida

Wed Jun 14, 2006 6:14 pm

  write-sect-since-reboot: 129728
         write-sect-total: 3556164
This is an older Sandisk...still chiggin' away. Note that if you use NTP, writes will increase much faster.
True? Server or client?

Mike
 
changeip
Forum Guru
Forum Guru
Posts: 3830
Joined: Fri May 28, 2004 5:22 pm

Wed Jun 14, 2006 8:03 pm

  write-sect-since-reboot: 3915872
         write-sect-total: 4417528
PQI flash.

Supposedly you get about 300,000 writes per sector and the flash itself manages the wear leveling, so I don't know if its worth worrying about anymore.

Sam
 
jarosoup
Long time Member
Long time Member
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Wed Jun 14, 2006 8:40 pm

In my experiences, it's been with the NTP Client. I actually don't use the client anymore because of this (and my paranoia about the flash failing) although it is still running on this particular router. The uptime of that router I posted stats on is only ~4 days, and there's been 129,000 writes to it already - the ntp client is running on this. DHCP server "store leases to disk" is set to never. There's really not much else running on this that would cause this many writes. It's a hotspot gateway. There is no logging to disk either.

In contrast, here's another with basically the same config (this network is actually busier), but NTP client is not running:
                   uptime: 2d1h10m34s
                  version: "2.9.24"
  write-sect-since-reboot: 988
         write-sect-total: 617168
Only 1000 writes total in 2 days vs. 129,000 over 4 days on the other one.


As for the PQI flash cards...good cards, but man these killed us awhile back as they don't work on a Soekris4801 :evil:
 
User avatar
grzesjan
Member Candidate
Member Candidate
Topic Author
Posts: 144
Joined: Fri Feb 24, 2006 7:43 pm
Location: Poland

Thu Jun 15, 2006 12:21 am

  write-sect-since-reboot: 129728
         write-sect-total: 3556164
This is an older Sandisk...still chiggin' away. Note that if you use NTP, writes will increase much faster.
I use ntp client and I have big number of writes. Mikrotik? Can you do something with ntp client?
 
GotNet
Member
Member
Posts: 434
Joined: Fri May 28, 2004 7:52 pm
Location: Florida

Thu Jun 15, 2006 12:28 am

Thanks, jarosoup.

We have several RB112s for testing in the field that came with bad blocks. We reformated and they are gone but are concerned about the future since the nand is embedded. I'll try without the NTP client. Not sure why NTP would write to disk...

Mike
 
jarosoup
Long time Member
Long time Member
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Thu Jun 15, 2006 1:07 am

Glad to pass this along.

It really makes no sense to me either. It's the only thing I've changed on these routers that has shown this sector write difference. We just put up with june 2000 or 1980 and use the uptime to calculate the date :oops: :twisted:

Edit: FWIW, 2.8 has this same behavior with ntp.
 
cdemers
Member Candidate
Member Candidate
Posts: 224
Joined: Sun Feb 26, 2006 3:32 pm
Location: Canada
Contact:

Thu Jun 15, 2006 4:51 am

Have never had a problem with any of my flash modules
                   uptime: 3w2d3h13m3s
                  version: "2.9.24"
  write-sect-since-reboot: 2978210
         write-sect-total: 13400762
That one had been around since 2.7.x
 
jarosoup
Long time Member
Long time Member
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Thu Jun 15, 2006 6:25 am

That one had been around since 2.7.x
Wow, that's impressive :shock: This is good news for a lot of people I think. What brand (or chip) of flash card is this?
 
cdemers
Member Candidate
Member Candidate
Posts: 224
Joined: Sun Feb 26, 2006 3:32 pm
Location: Canada
Contact:

Thu Jun 15, 2006 6:52 am

That one I can't remember exactly, it's one of the direct IDE plugins into a standard motherboard, acting as my primary router with 9 network interfaces. All of which are graphed. Been thinking about putting a second disk on chip module for storing graphs and logs. Haven't checked into it fully, but I could have sworn that I heard it was possible. As you can see I get some use out of my equipment. :D And so far (Knock on wood) not a single problem. For all my compact flash modules I have been sticking with SanDisk, for testing I have been using Verbatim (got them cheap). A little off topic, but for my web proxy drives I only use Seagate drives. Everything always well tested even before thinking about loading anything on them.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26378
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Thu Jun 15, 2006 9:07 am

wow, very nice examples, people. thanks!
 
User avatar
Mitak
newbie
Posts: 42
Joined: Wed Jun 07, 2006 10:12 am
Location: Bulgaria
Contact:

80GB HDD for MT :)

Thu Jun 15, 2006 9:28 am

I have not a compact flash drive, and my mikrotik is installed on.... 80GB Seagate drive :)
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26378
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Thu Jun 15, 2006 9:42 am

sometimes those die sooner :)
 
User avatar
Mitak
newbie
Posts: 42
Joined: Wed Jun 07, 2006 10:12 am
Location: Bulgaria
Contact:

offtopic

Thu Jun 15, 2006 10:07 am

sometimes those die sooner :)
like my avatar :) This is (or was?) 540MB Seagate....
 
uldis
MikroTik Support
MikroTik Support
Posts: 3446
Joined: Mon May 31, 2004 2:55 pm

Thu Jun 15, 2006 10:47 am

NTP client isn't writing anything to the drive.
"/system logging action=echo" is increasing the sector writes.
Next version will have more optimized management so it isn't writing so much.
 
GotNet
Member
Member
Posts: 434
Joined: Fri May 28, 2004 7:52 pm
Location: Florida

Thu Jun 15, 2006 3:59 pm

http://www.embeddedintel.com/display.php?article=53

Nice short read on flash.

As stated in another thread, my edge router is running the same module from WISPCON II in '03 with no issues with 31,412,898 total writes. I think that number is much bigger; there was an upgrade way back where the total got reset. Of course the PC based MT doesn't show the bad block count like the RBs.

Thanks for the comment about NTP and echo logging. If we simply turn off any echo the the writes go away? We can't see console anyway...

Mike
 
jarosoup
Long time Member
Long time Member
Posts: 596
Joined: Sun Aug 22, 2004 9:02 am

Thu Jun 15, 2006 9:04 pm

I do have the echo save rule unchecked. To be sure, I'll run a test on one of these routers with NTP client recording the sector writes with and without ntp over the next 2 days (24 hours each test). I'll post back once this is done.
 
User avatar
grzesjan
Member Candidate
Member Candidate
Topic Author
Posts: 144
Joined: Fri Feb 24, 2006 7:43 pm
Location: Poland

Fri Jun 16, 2006 10:16 pm

NTP client isn't writing anything to the drive.
"/system logging action=echo" is increasing the sector writes.
Next version will have more optimized management so it isn't writing so much.
Action=echo I have only for critical logs. I have seen that ntp client increases number of writes - please check it (in your lab).

Gregor
 
uldis
MikroTik Support
MikroTik Support
Posts: 3446
Joined: Mon May 31, 2004 2:55 pm

Mon Jun 19, 2006 10:51 am

have you all upgraded to v2.9.26?
How many sectors it writes all the time?
 
User avatar
grzesjan
Member Candidate
Member Candidate
Topic Author
Posts: 144
Joined: Fri Feb 24, 2006 7:43 pm
Location: Poland

Mon Jun 19, 2006 10:59 am

have you all upgraded to v2.9.26?
How many sectors it writes all the time?
I have upgraded. After rebooting there was almost no changes in config.
Now I have:

uptime: 12h15m35s
write-sect-since-reboot: 425

So it is not too big number.
However I wonder if I can lower it.

Gregor
 
GotNet
Member
Member
Posts: 434
Joined: Fri May 28, 2004 7:52 pm
Location: Florida

Mon Jun 19, 2006 3:58 pm

2.9.26

32 hours

7376 sector writes since reboot. Seems high as I don't know what ROS would need to write.

Minimal config: Routing and NTP client. Normal drops in firewall. No web-proxy, DHCP, hotspot or nat. It's just a router sitting at my fiber edge.
 
uldis
MikroTik Support
MikroTik Support
Posts: 3446
Joined: Mon May 31, 2004 2:55 pm

Mon Jun 19, 2006 4:09 pm

2.9.26

32 hours

7376 sector writes since reboot. Seems high as I don't know what ROS would need to write.

Minimal config: Routing and NTP client. Normal drops in firewall. No web-proxy, DHCP, hotspot or nat. It's just a router sitting at my fiber edge.
could you send the support output file form this router to support@mikrotik.com?
 
GotNet
Member
Member
Posts: 434
Joined: Fri May 28, 2004 7:52 pm
Location: Florida

Mon Jun 19, 2006 7:22 pm

2.9.26

32 hours

7376 sector writes since reboot. Seems high as I don't know what ROS would need to write.

Minimal config: Routing and NTP client. Normal drops in firewall. No web-proxy, DHCP, hotspot or nat. It's just a router sitting at my fiber edge.
could you send the support output file form this router to support@mikrotik.com?
On the way!

Edit:
I pulled a RB112 from the field; no difference in writes with NTP client on or off.
 
Vadim
newbie
Posts: 27
Joined: Sat May 29, 2004 9:58 pm
Location: Liepaja, Latvia
Contact:

Wed Jun 21, 2006 7:50 pm

wow, very nice examples, people. thanks!
Hi,
Here is another one :)
                     uptime: 44d5h15m20s
                free-memory: 105436 kB
               total-memory: 127584 kB
                        cpu: AMD
              cpu-frequency: 1000 MHz
                   cpu-load: 1
             free-hdd-space: 30969 kB
            total-hdd-space: 61972 kB
    write-sect-since-reboot: 126530
           write-sect-total: 3295904
This flash works since 2.7.14 without any problems.
 
jdmarti1
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Fri Jan 28, 2005 10:22 pm

Tue Jun 27, 2006 6:26 pm

I have a RB500 that appears kinda high -
[magicwisp@MagicWISPMT2] system resource> print
uptime: 4d10h29m1s
version: "2.9.26"
free-memory: 13844kB
total-memory: 30440kB
model: "RouterBOARD 500"
cpu: "MIPS 4Kc V0.10"
cpu-frequency: 333MHz
cpu-load: 36
free-hdd-space: 5648kB
total-hdd-space: 61440kB
write-sect-since-reboot: 886727
write-sect-total: 27476167
bad-blocks: 1960
 
Vadim
newbie
Posts: 27
Joined: Sat May 29, 2004 9:58 pm
Location: Liepaja, Latvia
Contact:

Tue Jun 27, 2006 6:59 pm

Do you run a proxy on it?
 
jdmarti1
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Fri Jan 28, 2005 10:22 pm

Tue Jun 27, 2006 9:09 pm

Do you run a proxy on it?
No proxy.
 
BelWave
Member Candidate
Member Candidate
Posts: 184
Joined: Wed Aug 04, 2004 12:49 am

Wed Jul 19, 2006 6:47 am

wow, very nice examples, people. thanks!
Hi,
Here is another one :)
                     uptime: 44d5h15m20s
                free-memory: 105436 kB
               total-memory: 127584 kB
                        cpu: AMD
              cpu-frequency: 1000 MHz
                   cpu-load: 1
             free-hdd-space: 30969 kB
            total-hdd-space: 61972 kB
    write-sect-since-reboot: 126530
           write-sect-total: 3295904
This flash works since 2.7.14 without any problems.

[] > sys reso prin
uptime: 1w1d4h25m40s
version: "2.9.27"
free-memory: 450416kB
total-memory: 516732kB
cpu: "Intel(R)"
cpu-frequency: 3192MHz
cpu-load: 18
free-hdd-space: 25030kB
total-hdd-space: 61484kB
write-sect-since-reboot: 1167028
write-sect-total: 38686680
[] >

Just graphing on several interfaces. Is there a way to install a conventional HDD just for storing graphs?

Best,


Brad
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26378
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Wed Jul 19, 2006 8:34 am

no, a secondary HDD can now only be used for webproxy cache.
 
jo2jo
Forum Guru
Forum Guru
Posts: 1003
Joined: Fri May 26, 2006 1:25 am

Mon Sep 04, 2006 4:10 am

i have a RB532 that does some routing and graphing to disk/cf and its been in operation for about 4 months now and has 2 211 132 sector writes and 0 bad blocks.

perfect uptime and not one issue so far!
 
jonescz
just joined
Posts: 16
Joined: Mon Nov 28, 2005 2:21 pm

Thu Oct 05, 2006 3:20 pm

Hi guys

i have more than 6 milions and still working. but if one day will not ..... :)


i have a RB532 that does some routing and graphing to disk/cf and its been in operation for about 4 months now and has 2 211 132 sector writes and 0 bad blocks.

perfect uptime and not one issue so far!

Who is online

Users browsing this forum: Amazon [Bot], deejay2, GSULLCA, kakiharaNL and 122 guests