RetroBSD

2.11BSD operating system for microcontrollers
It is currently Fri Oct 23, 2020 10:49 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Mon Aug 15, 2011 2:55 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
FYI - these are the filesystem writing speeds vs. spi_clk for Kingston 512MB class1 SDcard. Partition size 32MB. Speed measured with help of dd command, writing 4MB block of data.
Brg set manualy in the sd.c driver.

# time dd if=/dev/zero of=testfile bs=1k count=4096

BRG dd(sec) spiMHz ddwr kB/s
1 17.00 20.00 241
2 18.10 13.33 226
4 19.90 8.00 206
6 22.20 5.71 185
8 24.50 4.44 167
10 27.30 3.64 150
12 28.60 3.08 143
14 29.80 2.67 137
16 32.10 2.35 128

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Aug 18, 2011 4:09 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
FYI - this is the read spead (the same setup), the maximum speed achieved with bs=8k

# time dd if=testfile of=/dev/null bs=8k
512+0 records in
512+0 records out
6.1 real 0.0 user 5.6 sys
#

This leads to 671kB/sec read.

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Aug 18, 2011 9:10 pm 

Joined: Thu Aug 18, 2011 4:44 am
Posts: 5
Hello Pito,
thanks a lot for this infos.
Did you make some *writing* speed tests with bs=8K or bs=16K?

TIA
Clemente.


Top
 Profile  
 
PostPosted: Thu Aug 18, 2011 11:20 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
At 13.33MHZ SPI:

# time dd if=/dev/zero of=testfileA bs=8k count=512
512+0 records in
512+0 records out
17.6 real 0.0 user 16.8 sys
# time dd if=/dev/zero of=testfileA bs=16k count=256
256+0 records in
256+0 records out
21.3 real 0.0 user 20.3 sys
# rm testfileA
# time dd if=/dev/zero of=testfileA bs=16k count=256
256+0 records in
256+0 records out
17.7 real 0.0 user 17.2 sys
# rm testfileA
# time dd if=/dev/zero of=testfileA bs=8k count=512
512+0 records in
512+0 records out
18.2 real 0.0 user 17.4 sys
# rm testfileA
# time dd if=/dev/zero of=testfileA bs=16k count=256
256+0 records in
256+0 records out
18.2 real 0.0 user 17.1 sys
#

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Aug 18, 2011 11:49 pm 

Joined: Thu Aug 18, 2011 4:44 am
Posts: 5
Many many thanks for yout time Pito!

Best Regards.
Clemente.


Top
 Profile  
 
PostPosted: Fri Aug 19, 2011 12:07 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Clemente, hopefuly you get your board soon as we are here too few testers :-).
P.

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Fri Aug 19, 2011 7:12 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
A kind of stress test - 2 blocks of 8MB size generated in parallel (about 4sec between the starts of the 2 dd's):

# time dd if=/dev/zero of=XXXX bs=1k count=8192 &
16
# time dd if=/dev/zero of=YYYY bs=1k count=8192 &
18
# ps alx
F S UID PID PPID CPU PRI NICE ADDR SZ WCHAN TTY TIME COMMAND
3 S 0 0 0 10 0 0 0x6800 3 runin ? 0:12 swapper
200 S 0 1 0 2 30 0 0x24e 38 proc ? 0:01 (init)
200 S 0 2 1 1 30 0 0x224 65 proc co 0:03 (sh)
200 S 0 16 2 1 30 0 0x221 21 proc co 0:01 (time)
0 R 0 17 16 28 51 0 0x204 25 co 0:08 (dd)
200 S 0 18 2 4 30 0 0x216 21 proc co 0:01 (time)
0 R 0 19 18 19 51 0 0x20a 25 co 0:03 (dd)
1 R 0 20 2 2 50 0 0x7400 47 co 0:01 ps alx
....
....
# ps alx
F S UID PID PPID CPU PRI NICE ADDR SZ WCHAN TTY TIME COMMAND
3 S 0 0 0 11 0 0 0x6800 3 runin ? 0:16 swapper
200 S 0 1 0 2 30 0 0x24e 38 proc ? 0:01 (init)
200 S 0 2 1 0 30 0 0x224 65 proc co 0:03 (sh)
200 S 0 16 2 1 30 0 0x221 21 proc co 0:01 (time)
0 R 0 17 16 32 52 0 0x204 25 co 0:22 (dd)
200 S 0 18 2 4 30 0 0x216 21 proc co 0:01 (time)
0 R 0 19 18 15 50 0 0x20a 25 co 0:14 (dd)
1 R 0 23 2 4 50 0 0x7400 47 co 0:01 ps alx
# ps alx
F S UID PID PPID CPU PRI NICE ADDR SZ WCHAN TTY TIME COMMAND
3 S 0 0 0 11 0 0 0x6800 3 runin ? 0:17 swapper
200 S 0 1 0 2 30 0 0x24e 38 proc ? 0:01 (init)
200 S 0 2 1 0 30 0 0x224 65 proc co 0:03 (sh)
200 S 0 16 2 1 30 0 0x221 21 proc co 0:01 (time)
0 R 0 17 16 16 51 0 0x204 25 co 0:24 (dd)
200 S 0 18 2 4 30 0 0x216 21 proc co 0:01 (time)
0 R 0 19 18 31 51 0 0x20a 25 co 0:17 (dd)
1 R 0 24 2 7 50 0 0x7400 47 co 0:01 ps alx
# ps alx
F S UID PID PPID CPU PRI NICE ADDR SZ WCHAN TTY TIME COMMAND
3 S 0 0 0 11 0 0 0x6800 3 runin ? 0:20 swapper
200 S 0 1 0 2 30 0 0x24e 38 proc ? 0:01 (init)
200 S 0 2 1 0 30 0 0x224 65 proc co 0:04 (sh)
200 S 0 16 2 1 30 0 0x221 21 proc co 0:01 (time)
0 R 0 17 16 20 51 0 0x204 25 co 0:32 (dd)
200 S 0 18 2 4 30 0 0x216 21 proc co 0:01 (time)
0 R 0 19 18 33 52 0 0x20a 25 co 0:24 (dd)
1 R 0 26 2 7 50 0 0x7400 47 co 0:01 ps alx
# 8192+0 records in
8192+0 records out
95.6 real 0.0 user 37.3 sys
8192+0 records in
8192+0 records out
101.2 real 0.0 user 40.4 sys

# ls -l
total 18454
-rwxrwxrwx 1 root 87 Aug 18 23:59 .profile
-rw-r----- 1 root 8388608 Aug 19 13:50 XXXX
-rw-r----- 1 root 8388608 Aug 19 13:51 YYYY
drwxr-x--x 3 root 1024 Aug 19 00:05 bench
drwxrwxrwx 2 root 2048 Aug 19 13:28 bin
drwxrwxrwx 2 root 1024 Aug 18 23:59 dev
-rw-r----- 1 root 8876 Aug 19 13:13 dir.txt
drwxrwxrwx 2 root 1024 Aug 18 23:59 etc
drwxrwxrwx 2 root 1024 Aug 18 23:59 libexec
drwxrwxrwx 2 root 1024 Aug 18 23:59 lost+found
drwxrwxrwx 2 root 1024 Aug 18 23:59 sbin
-rwxr-x--x 1 root 40 Aug 19 13:31 script
drwxrwxrwx 3 root 1024 Aug 18 23:59 share
-r-------- 1 root 2097152 Aug 18 23:59 swap
drwxrwxrwx 2 root 1024 Aug 18 23:59 tmp
drwxrwxrwx 4 root 1024 Aug 18 23:59 var
#

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission