#September 12th, 2012

Continuous writing up to fill the /media/data partition with fixed lenght files 

* 8 FOX Boards G20 with Samsung 4GB HC microSD  
  * rootfs partition ext4 r/w
  * data partition  ext4 r/w
* Swap disabled
* Test lenght: 71 hours

##Results

* POSITIVE for all the 8 boards

* File written for any delete/write cycle : 665
* Cycle done: 33
* File lenght: 4.5MB
* 9 ASCII chars per line
* 500.000 lines per file
* Free RAM during the test 3000KB
* No error messages on /var/log/messages
* No read-only problem after the test
* No problem on reboot

Same test on one board 39 hour on one board using:

* Trascend microSD 8GB HC Class 4
* SunDisk  microSD 8GB HC Class 4

@note: One board immediately gave the rootfs file system read-only problems just 
launched the test. After a fully reformat and O.S. installation this board has passed tests
with no problems.

##Python program used

Launched by debug port on each board.

<pre class="prettyprint">
#!/usr/bin/python
import os
import time

os.system("echo mmc0 > /sys/class/leds/user_led/trigger ")

loop_counter=0
while True:
	for file_counter in range(300):
		filename = "/media/data/ACME%04d" % (file_counter); 

		if os.path.exists(filename):
			print "Delete:%s" % (filename)
			os.remove(filename)

		print "Create:%s" % (filename)
		f = open(filename,'w')
		for line_counter in range(500000):
			f.write("L_%06d\n" % (line_counter))
		f.close
	loop_counter=loop_counter+1
	print "Loop # " , loop_counter	

</pre>





