1 1
gahabana

Odroid-C2 build terribly slow (200kB/sec) writing SD-Card

Recommended Posts

hi all, 

as mainline kernel options for Odroid-C2 are still not ready (USB not recognising DAC unless externall HDD connected during boot) .. have just switched back to 'default' build.  I noticed system to be much slower then usual .... esp. when involving any writes. SD-Card is Sandisk 16GB and is working very well in OdroidXU4 and NanoPi NEO.

 

When copying a few 100kB file takes few seconds:

time cp  /usr/bin/ssh ~/ ; time sync
real    0m0.012s
user    0m0.000s
sys    0m0.010s
real    0m2.982s
user    0m0.000s
sys    0m0.010s

I tried with 'dd' command to see how fast simple writes are going and got at best 200kB/sec .... Does anyone have suggestions what to do ?

Armbian is : ARMBIAN 5.33 user-built Ubuntu 16.04.3 LTS 3.14.79-odroidc2 ... no kernel modifications :

 

zh@odroidc2's password:
  ___      _           _     _    ____ ____
 / _ \  __| |_ __ ___ (_) __| |  / ___|___ \
| | | |/ _` | '__/ _ \| |/ _` | | |     __) |
| |_| | (_| | | | (_) | | (_| | | |___ / __/
 \___/ \__,_|_|  \___/|_|\__,_|  \____|_____|


Welcome to ARMBIAN 5.33 user-built Ubuntu 16.04.3 LTS 3.14.79-odroidc2
System load:   0.83 0.35 0.16  	Up time:       21:20 hours
Memory usage:  10 % of 1718MB 	IP:            192.168.1.99
CPU temp:      37°C
Usage of /:    10% of 15G

[ General system configuration: armbian-config ]

Last login: Mon Oct 16 06:35:37 2017 from 192.168.1.62


zh@odroidc2:~$ dd if=/dev/zero of=~/testfile bs=10M count=1 oflag=direct
1+0 records in
1+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 51.8837 s, 202 kB/s

zh@odroidc2:~$ dd if=/dev/zero of=~/testfile bs=10M count=1 oflag=direct
1+0 records in
1+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 17.0363 s, 615 kB/s

zh@odroidc2:~$ dd if=/dev/zero of=~/testfile bs=4K count=2 oflag=direct
2+0 records in
2+0 records out
8192 bytes (8.2 kB, 8.0 KiB) copied, 0.414244 s, 19.8 kB/s

zh@odroidc2:~$ dd if=/dev/zero of=~/testfile bs=4K count=100 oflag=direct
100+0 records in
100+0 records out
409600 bytes (410 kB, 400 KiB) copied, 20.2592 s, 20.2 kB/s

 

Share this post


Link to post
Share on other sites

hi, 

here are the performance numbers using same sd-card now in an Intel PC (via USB 3.0 SDcard adapter).

I do get sometimes 15MB/sec ... most of the time 10-13MB/s ... which is lot more then in the Odroid-C2

is there any other known setting ... i saw that armhwinfo service changed io-schedule to noop ... but that should be perfect one for SD cards so am not sure what else to look into ?

thank you !!!

zh@smc:/media/sdcard$ uname -a
Linux smc 4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
zh@smc:/media/sdcard$ dd if=/dev/zero of=./testfile bs=10M count=1 oflag=direct; time sync
1+0 records in
1+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.907064 s, 11.6 MB/s

real	0m0.080s
user	0m0.000s
sys	0m0.000s
zh@smc:/media/sdcard$ dd if=/dev/zero of=./testfile bs=10M count=1 oflag=direct; time sync
1+0 records in
1+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.936801 s, 11.2 MB/s

real	0m0.164s
user	0m0.000s
sys	0m0.000s
zh@smc:/media/sdcard$ dd if=/dev/zero of=./testfile bs=1M count=1 oflag=direct; time sync
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0769396 s, 13.6 MB/s

real	0m0.066s
user	0m0.004s
sys	0m0.000s
zh@smc:/media/sdcard$ dd if=/dev/zero of=./testfile bs=1M count=1 oflag=direct; time sync
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0821423 s, 12.8 MB/s

real	0m0.060s
user	0m0.000s
sys	0m0.000s

 

Share this post


Link to post
Share on other sites
6 hours ago, gahabana said:

so am not sure what else to look into ?

 

https://forum.openmediavault.org/index.php/Thread/17855-Building-OMV-automatically-for-a-bunch-of-different-ARM-dev-boards/?postID=153760#post153760

 

ODROID C2 booting with exactly this kernel version. Check the sprunge.us link and there the 'quick iozone test' line. Almost 8MB/s read and almost 3MB/s write with 4K blocksize while booting -- there should be nothing wrong with this kernel and I would check contacts in the SD card slot and dmesg output for SDIO errors and stuff like that first.

Share this post


Link to post
Share on other sites

hi @tkaiser, 

look i don't know ... it is really weird. Bought a new SD-Card ... burn same armbian image to it ... to both (both are 16GB SanDisk) ... old one is slow (<1MB/sec) and new one is just fine (10-20MB/sec). Old one works fine on a PC but not in OdroidC2. New one of course works well on both. 

So the only conclusion i have - old one works not so well with -next/-dev kernels (though no errors in the kernel log) ... am too lazy to try with -default (3.14) kernel ... but guess card is somewhat 'kaput' ;(

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
1 1