SD info and benchmarks (was Re: EOS M3 porting) - DryOS Development - CHDK Forum  

SD info and benchmarks (was Re: EOS M3 porting)

  • 62 Replies
  • 36892 Views
*

Offline c_joerg

  • *****
  • 1248
SD info and benchmarks (was Re: EOS M3 porting)
« on: 07 / April / 2017, 12:17:24 »
Advertisements
I run the Benchmark tool on my M3
The RAW Write shows only 223Kb/s.
Same Card on my S110 shows 21000Kb/s.
Mem write on both Cams is around 21000Kb/s.
For me it looks like there is a bug in the RAW Write…

On my PC the Card goes writing over 45000Kb/s.

Comparing on the Mem writes, the SD card interface on the M3 is not faster as on the S110.
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline srsa_4c

  • ******
  • 4451
Re: SD info and benchmarks (was Re: EOS M3 porting)
« Reply #1 on: 08 / April / 2017, 14:31:42 »
For me it looks like there is a bug in the RAW Write…
Indeed, thanks for the report. The M3 has the highest resolution sensor among CHDK cameras, the RAW size has exceeded an integer limit in code.

*

Offline c_joerg

  • *****
  • 1248
Re: SD info and benchmarks (was Re: EOS M3 porting)
« Reply #2 on: 09 / April / 2017, 05:52:46 »
Indeed, thanks for the report. The M3 has the highest resolution sensor among CHDK cameras, the RAW size has exceeded an integer limit in code.

Understood the overfflow ... would not an unsigned integer help?
Do you see other Overflows on the M3?
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Offline Ant

  • *****
  • 509
Re: SD info and benchmarks (was Re: EOS M3 porting)
« Reply #3 on: 10 / April / 2017, 12:57:57 »
My results with SanDisk Ultra SDHC Class 10, 40MB/s :
Code: [Select]
***
CHDK 1.5.0 r4786
Build date: Apr 10 2017 19:26:55
Camera    : m3 101a
Mode      : 0x204

CPU             :     100 MIPS   
Screen write    :   37423 Kb/s   108 FPS
Viewport read   :    2691 Kb/s     2 FPS
Memory write    :  148945 C,   41217 UC Kb/s
Memory read     :   63627 C,   10691 UC Kb/s
Text drawing    :  18713, 13973 c/s 24, 18 FPS
Card write (RAW):   19016 Kb/s     
Card write (MEM):   21186 Kb/s     
Card write (64k):   16062 Kb/s     
Card read  (64k):   18618 Kb/s     

Not so fast...
It's interesting to view benchmark results of other Digic6 cameras.


*

Offline srsa_4c

  • ******
  • 4451
Re: SD info and benchmarks (was Re: EOS M3 porting)
« Reply #4 on: 10 / April / 2017, 13:42:05 »
Not so fast...
It's interesting to view benchmark results of other Digic6 cameras.
AFAIK reyalp is the only person who experienced card read/write speeds exceeding ~21MB/s, on his G7x. Visit the camera's porting thread (first page) for the log.

Newer D6 cameras (M10, G3x, G5x, SX710, SX720) have an eventproc named 'SDCardUHSActive'. Its return value is based on a firmware variable. I tried two cards in my M10, one UHS, one non-UHS. The variable reads 0, in both cases. My UHS card also stays below 20MB/s (it's a Sandisk that should read 'up to' 48MB/s).
It's either the camera being extra-sensitive about enabling UHS speed, or the firmware simply doesn't allow it on certain D6 models.

*

Offline Ant

  • *****
  • 509
Re: SD info and benchmarks (was Re: EOS M3 porting)
« Reply #5 on: 10 / April / 2017, 16:45:01 »
Function 0x010E2E04(0xFCCADCEC) gives me some info:
Code: [Select]
MEDIA_TYPE_SD:HighCapacity Support

--------------CID Information--------------
Manufacturer ID       = 0x03
OEM/Application ID    = 0x5344
Product name          = 'SL32G'
Product revision      = '8.0'
Product Serial Number = 0x35A47***
Manufacturing date    = '2015/06'
--------------CSD Information--------------
CSD_STRUCTURE = 1
TAAC = 14
NSAC = 0
max. data transfer rate = 50
CCC:card common classes=1461
READ_BL_PARTIAL=0
read block misalignment = 0,  write block misalignment = 0
DSR implement=0
C_SIZE = 58952
TotalSectors = 60367872
TotalSectors(from CSD) = 0x3992400
ERASE_BLK_EN = 1
ERASE_SCT_SIZE=127, SectorSize = 128
BlockLength = 512
EraseSize = 128
WP_GRP_SIZE = 0
WP_GRP_ENABLE = 0
R2W_FACTOR=2
WRITE_BL_LEN=9
WRITE_BL_PARTIAL=0
copy flag(OTP)=1
Permanent Write Protection=0
Temporary Write Protection=0
File Format Group=0  File Format=0:Hard disk-like file system with partition table
CRC=74
--------------SCR Register--------------
SCR_STRUCTURE = 00h
SD_SPEC_VERS = 02h
DATA_START_AFTER_ERASE = 00h
SD_SECURITY = 03h
SD_BUS_WIDTH = 05h
SD_SPEC3 = 1h
CMD_SUPPORT = 1h
--------------SD Status--------------
DAT_BUS_WIDTH = 2
SECURED_MODE  = 0
SD_CARD_TYPE  = 0x0000
SIZE_OF_PROTECTED_AREA = 0x05000000
SPEED_CLASS   = 0x04 ==> CLASS(10)
PERFORMANCE_MOVE  = 0x00
AU_SIZE       = 0x9
UNIT_OF_ERASE_AU  = 0x000F
ERASE_TIMEOUT = 1
ERASE_OFFSET  = 0x1
EraseSize = 0x2000
UHS_SpeedGrade = 0h (Less than 10MB/sec)
UHS_AuSize = Dh (24MB)
 80 00 00 00 05 00 00 00 04 00 90 00 0F 05 0D 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

-------------------------------------------

But there is strange UHS speed grade...

« Last Edit: 10 / April / 2017, 17:01:38 by Ant »

*

Offline reyalp

  • ******
  • 14080
Re: SD info and benchmarks (was Re: EOS M3 porting)
« Reply #6 on: 10 / April / 2017, 18:15:07 »
It's either the camera being extra-sensitive about enabling UHS speed, or the firmware simply doesn't allow it on certain D6 models.
Or Canon's codebase contains UHS related code even on hardware that doesn't support it, or that informational bit isn't hooked up somewhere.
Don't forget what the H stands for.

*

Offline Ant

  • *****
  • 509
Re: SD info and benchmarks (was Re: EOS M3 porting)
« Reply #7 on: 10 / April / 2017, 19:08:49 »
even on hardware that doesn't support it

I don't think this camera has different hardware.
At least it shows the same results with my SD card
EOS 80D has SdDomain_RELEASE_20150302
EOS M3 has SdDomain_RELEASE_20141224_for_14Late

Maybe somebody can test cards from top of this list ?

« Last Edit: 10 / April / 2017, 19:11:54 by Ant »


Re: SD info and benchmarks (was Re: EOS M3 porting)
« Reply #8 on: 10 / April / 2017, 19:25:29 »
Maybe somebody can test cards from top of this list ?
That would be interesting information.  But I'm not too sure many forum members will drop $50 for an SD card these days .....
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14080
Re: SD info and benchmarks (was Re: EOS M3 porting)
« Reply #9 on: 10 / April / 2017, 23:31:41 »
I don't think this camera has different hardware.
I do.

https://www.dpreview.com/products/compare/side-by-side?products=canon_eos80d&products=canon_eosm3
Continuous shooting:
80D: 7 FPS
M3:  4.2 FPS

The Canon specs page for 80D specifically calls out UHS-1 high speed support, while EOS M3 only says "UHS-1 compatible"
Don't forget what the H stands for.