Sunday, August 31, 2008

Stupid me....

I was always amazed why I never got any comment on this blog........

Now I know ;-)

I'm stupid, and I forgot to set in Blogger settings e-mail address for comments notification.

Sorry for all.


Similar postsbeta
Just testing my new Android app for blogging on Blogger :-)
OOo2GD 2.3.0 - new documents, and autoupdate in work ;-)
Bloggeroid 1.0 :-)
Google Buzz - let's mark some comments as not spam ;-) or how to unhide "hidden" comments ;-)
Math is stupid....

Calculation of SSD life time in EEE PC

[Update: 9/1/2008, I was wrong :-) Most of flash devices uses special algorithms to avoid situation when change of value in "logical" cell means every time change of cell in hardware. Those algorithms instead of altering data in cell try to rewrite it to another area of disk, and thanks to this heavy writing to one and the same logical cell means that truly those writings are spread over some number of cells, and thanks to this after 10000 writes any of those cells did not reach this limit, and any of those cells isn't even near of this limit]

OK, over Internet you may find many articles about lifetime of SSD in EEE PC.

Known facts:
Limit of SSD in EEE PC is about 10 000 cycles, we know it from FAQ on Asus page:

Problem
Eee PC SSD has the life time, how long is it?

Answer
Eee PC SSD has the life time to be read or written 10,000 times averagely.
To prolong the life time, the virtual memory function has been disabled in Linux system.

http://support.asus.com/faq/faq_right_second_detail.aspx?kb_guid=CDA67F35-6C97-9CEE-5E95-9ED03F435F91&SLanguage=en-us


Base on this I performed my own calculation, and experiment.

My first method of calculation based on the fact, that my own EEE PC 900/XP has 4 GB On-Board SSD. This SSD is formated in NTFS, with about 1 million allocation units [each 4096 bytes].
My assumption is that if we write to allocation unit, we at least write to it's first bit. So Instead of analzying of more then 64 billions cells we need only made calculations for 1 million cells.
My simulations shows what we need about 1 billion writes on disk [with assumption that distribution over disk surface is equal] to achive situation when 1 of cells be written more then 10 000 times. [Simple multiplication of cells number and limit gives almost the same results ;-)]
10 billion writes with average speed of 10 allocation units per second [this gives us about 340 MB per day] will reach limit after about 31 years.
So in this model 10 years of life is a safe assumption.

My second method base on suppose that operating system may write data to same disk areas much often then it may be supposed from previous model.
To test it I used JPC emulator [it's PC emulator writen in Java], which I modified in this way that it write to log file each write operation on hard drive.
As an operating system I used Linux with kernel 2.4, it's Linux from image shiped with JPC.

My experiment shown that in each start, and shutdown this Linux write some data to sector number 2 on the hard drive.

It narrows our lifespan to about 5000 start/shutdown cycles.
If we restart our EEE PC about 1 time per day, and we do it each day of the year, those 5000 cycles limit will end after about 13.5 year. If we will have 4 start/shutdown cycles in the day this limit will be reached after about 3.5 year.

This 5000 start/shutdown cycles limit was determined by me for Linux, but my assumption is that Windows XP isn't significant different then Linux in this area.

My conclusion is that safe limit for EEE PC is about 4-5 years with normal usage, and about 10 years with rare usage.

Of course if system haven't some other areas which it likes even more ;-)

And with assumption that SSD in EEE PC haven't some special features which will increase those limits [example, maybe SSD have some build-in "table" where it tries to count how many writes was performed for some areas of "surface", and when given area reach its limits it may remap this area to some other reserved surface. If only 1% of disk surface is used in havy way, adding this mechanism will increase life time of SSD about 2 times, with only about 1% surface lost].

Similar postsbeta
Which language is fastest? ;-)
Programmers love to over complicate...
How to get negative number from size() in LinkedList in Java? ;-)
Buzz Troll Remover v0.3.2
CallLoger ;-) Invigilate yourself ;-)