Author Topic: UHS-I / SD cards investigation  (Read 159942 times)

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7188
Re: UHS-I / SD cards investigation
« Reply #400 on: July 01, 2020, 05:41:41 PM »
I tested some with your new combination Levas.
About other, faster tests not patching this might be the fix:
https://bitbucket.org/Dannephoto/magic-lantern_jip-hop/commits/e495cbc9685fbb81a8284984cbdffa17ca70352a

These are routines I use with 5D3 turning off and on raw video during patching. Eosm seems not needing it but other cameras do. So there is still a chance for automation with even faster tests :). Also your other combos might work better here.

Now I can´t remember if menu in 6D and 700D is this:
Code: [Select]
menu_set_str_value_from_script("Movie", "RAW video", "ON", 1);or this:
Code: [Select]
menu_set_str_value_from_script("Movie", "raw video", "ON", 1);Think it´s the first and then the code should apply correctly as is in the commit.

When will bb delete my repo.....


theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 717
Re: UHS-I / SD cards investigation
« Reply #401 on: July 01, 2020, 06:04:21 PM »
@Levas

Good catch! I didn't notice there is an improvement on 700D, Because using Benchmark in PLAY mode I only got 70 MB/s max write speed and sometimes even 68.5 MB/s , brute-forcing 160 MHz preset can go up to 68.4 MB/s write speed in PLAY mode, so I thought will be no difference in video mode but there is, On video mode now I can get 59 MB/s write speed , before (brute-forcing 160MHz preset) it was 52 MB/s write speed.

Code: [Select]
{ 0xC0400600, 0xC0400604,/*C0400608, C040060C*/0xC0400610, 0xC0400614, 0xC0400618, 0xC0400624, 0xC0400628, 0xC040061C, 0xC0400620 }
{        0x3,        0x2,                             0x1, 0x1D000001,        0x0,      0x100,      0x101,      0x101,        0x1 }

Now, the first one, stays stable, I've tried my best, but it never goes to 20Mb/s  :D (I get about 75Mb/s in video mode  8) )

But
Hmmm something I am missing, Could you provide a Benchmark in PLAY mode using above settings you mentioned (The first one), because I have only 70 MB/s write speed in PLAY mode, and you can get up to 75 MB/s write speed in video mode, doesn't make sense, all the previous presets we have tested the write speed in PLAY Mode were identical to all DIGIC 5 Cameras

Edit: What is the card you are using ?
700D 1.1.5 | no more ISOless LV err 8 / SDR104 @ 240 MHz - Constant! | Fixed Scrambled LiveView in Higher resolution | Real-Time correct framing in the Way

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1699
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #402 on: July 01, 2020, 06:31:14 PM »
With the above settings I get with benchmark in photo mode:

Write 84.0Mb/s
Read 90.3Mb/s
Write 84.0Mb/s
Read 90.3Mb/s

The card is a 64Gb Sandisk Extreme Pro (95MB/s claim on label)

Walter Schulz

  • Contributor
  • Hero Member
  • *****
  • Posts: 8073
Re: UHS-I / SD cards investigation
« Reply #403 on: July 01, 2020, 06:34:39 PM »
These are very fine numbers and if they remain to be consistent: Chapeau!

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1699
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #404 on: July 01, 2020, 06:38:08 PM »
Current settings from theBilalFakhouri:
Code: [Select]
{ 0xC0400600, 0xC0400604,/*C0400608, C040060C*/0xC0400610, 0xC0400614, 0xC0400618, 0xC0400624, 0xC0400628, 0xC040061C, 0xC0400620 }
{        0x3,        0x2,                             0x1, 0x1D000001,        0x0,      0x100,      0x101,      0x101,        0x1 }

This combination works too(only changing 0xc0400614), also stable, but just a little slower (2Mb/s slower write speed, read speed the same)
Code: [Select]
{ 0xC0400600, 0xC0400604,/*C0400608, C040060C*/0xC0400610, 0xC0400614, 0xC0400618, 0xC0400624, 0xC0400628, 0xC040061C, 0xC0400620 }
{        0x3,        0x2,                             0x1, 0x1D000001,        0x0,      0x101,      0x101,      0x101,        0x1 }

Benchmark in photo mode:
Write 82.3Mb/s
Read 90.3Mb/s
Write 82.5Mb/s
Read 90.3Mb/s

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7188
Re: UHS-I / SD cards investigation
« Reply #405 on: July 01, 2020, 06:40:18 PM »
Ongoing patch:
Code: [Select]
static uint32_t sdr_160MHz[]   = {        0x2,        0x3,                             0x1, 0x1D000001,        0x0,      0x100,      0x100,      0x100,        0x1 };

Code: [Select]
static uint32_t sdr_160MHz[]   = {        0x2,        0x2,                             0x1, 0x1D000001,        0x0,      0x100,      0x100,      0x100,        0x1 };


Other "safe values" can+t take me any higher but hey, increase with 2-3Mb/s, always welcome.


Also tested Levas patch:

But results exactly like with the fastest above. Al tests on my eosm and a 128gb extreme pro 170MB/s card.

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 717
Re: UHS-I / SD cards investigation
« Reply #406 on: July 01, 2020, 06:42:42 PM »
Same settings, Same Card:
Code: [Select]
{ 0xC0400600, 0xC0400604,/*C0400608, C040060C*/0xC0400610, 0xC0400614, 0xC0400618, 0xC0400624, 0xC0400628, 0xC040061C, 0xC0400620 }
{        0x3,        0x2,                             0x1, 0x1D000001,        0x0,      0x100,      0x101,      0x101,        0x1 }

Canon 6D
With the above settings I get with benchmark in photo mode:

Write 84.0Mb/s
Read 90.3Mb/s
Write 84.0Mb/s
Read 90.3Mb/s

The card is a 64Gb Sandisk Extreme Pro (95MB/s claim on label)

Vs

700D
another-192-MHz" border="0

This is the strangest thing so far, so this preset is 192 MHz (at least on 6D)

Which sd_uhs are you are using, is sdr104 mode enabled also (from sd_uhs.c)?
I am confused :P
700D 1.1.5 | no more ISOless LV err 8 / SDR104 @ 240 MHz - Constant! | Fixed Scrambled LiveView in Higher resolution | Real-Time correct framing in the Way

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7188
Re: UHS-I / SD cards investigation
« Reply #407 on: July 01, 2020, 06:45:05 PM »
Are you formatting with exfat maybe? Strange Levas, getting that in between goodies.

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1699
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #408 on: July 01, 2020, 06:52:19 PM »
I'm using the custom made sd_uhs.mo from theBilalFakhour (the one you send today)
I've also put the same settings in the automated sd_uhs module from Danne. Same results.

Could it be that the 6d has some more cpu overhead ?
The same reason as video mode is always ~10Mb/s slower as photo mode ?

6d has digic 5+ most others have digic 5 without the plus.
According to wikipedia the 70d also has digic 5+, anyone with a 70d here to test read and write speed ?
 

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1699
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #409 on: July 01, 2020, 06:56:13 PM »
Pics or it didn't happen  :P


theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 717
Re: UHS-I / SD cards investigation
« Reply #410 on: July 01, 2020, 07:00:49 PM »
Are you formatting with exfat maybe?

It's actually 32GB, FAT32, Sandisk Extreme Pro 95MB/s, Okay I have just formatted it to ExFat, and made a test, same speed . .

Strange Levas, getting that in between goodies.

Yeah, what about 5D3, 100D and 70D? I am wondering :P

Could it be that the 6d has some more cpu overhead ?

Not sure, but I don't think this is the case, In video mode yes it might be a CPU overhead or maybe Memory Bandwidth same on all D5 Cameras, but the other presets gave the same results like 240 MHz, we got 99 MB/s in PLAY mode both on 6D and 700D
700D 1.1.5 | no more ISOless LV err 8 / SDR104 @ 240 MHz - Constant! | Fixed Scrambled LiveView in Higher resolution | Real-Time correct framing in the Way

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7188
Re: UHS-I / SD cards investigation
« Reply #411 on: July 01, 2020, 07:03:19 PM »
So 6D effectively gets 75Mb/s recording speed right now whereas eosm makes out in 55-57Mb/s? I´d say that is a significant change for the 6D. What was it before. Around 60Mb/s tops on the 6D?

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1699
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #412 on: July 01, 2020, 07:05:53 PM »
Yep, max I've seen is 63MB/s

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7188
Re: UHS-I / SD cards investigation
« Reply #413 on: July 01, 2020, 07:12:27 PM »
Brilliant.

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1699
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #414 on: July 01, 2020, 07:14:38 PM »
This is the source sd_uhs.c which gives me 75Mb/s write speed, probably very much the same as yours:
https://drive.google.com/file/d/1hRtjmh_--NVYXkouGNN0_jNDWhPEO2_H/view?usp=sharing

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7188
Re: UHS-I / SD cards investigation
« Reply #415 on: July 01, 2020, 08:25:07 PM »
It´s my old sd_uhs code tweaks. Do try this as it will probably work better generally:
https://bitbucket.org/Dannephoto/magic-lantern_jip-hop/src/e495cbc9685fbb81a8284984cbdffa17ca70352a/modules/sd_uhs/sd_uhs.c

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1699
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #416 on: July 01, 2020, 09:05:07 PM »
Just wondering, could it be that our settings are right for max sdr104 speed, but our cards can’t handle the speed ?

I had the same problem with the sandisk extreme pro 45Mb/s cards when first version of sd_uhs hack was introduced. Those cards also switched to 20Mb/s...

Maybe we should looking for better sd cards  ;D

70MM13

  • Senior
  • ****
  • Posts: 499
Re: UHS-I / SD cards investigation
« Reply #417 on: July 01, 2020, 09:23:13 PM »
i'm happy to try with my sandisk extreme pro 170mb/s if you think the 5d3 can play along ;)

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1699
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #418 on: July 01, 2020, 09:48:21 PM »
Would be interesting since the 5d3 is also digic 5+.
I also have one sandisk extreme pro 170mb card. But it’s unfortunately no different to my 95mb sandisk card.
Same write speed.

But if the 5d3 can do 75Mb/s on SD that would be huge if both CF and SD are used for recording.

Not sure if anything is different for 5d3. So I’m not sure if I can upload my sd_uhs.mo file ?
I don’t want to ruin a 5d3 or a good Sandisk card :P

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7188
Re: UHS-I / SD cards investigation
« Reply #419 on: July 01, 2020, 09:52:15 PM »
5D3 has an older sd slot, worse than eosm.
Anyway. Feel free to test this module:
https://bitbucket.org/Dannephoto/magic-lantern/downloads/sd_uhs.mo

I assume you run my experimental build so stick to that.

I changed this:
Code: [Select]
static uint32_t sdr_160MHz[]   = {        0x2,        0x3,                             0x1, 0x1D000001,        0x0,      0x100,      0x100,      0x100,        0x1 };to this:
Code: [Select]
static uint32_t sdr_160MHz[]   = {        0x2,        0x2,                             0x1, 0x1D000001,        0x0,      0x100,      0x100,      0x100,        0x1 };
Let´s start with that. Bleeding edge. Anything happens, what can I say. You get to keep the burnt card ;).

70MM13

  • Senior
  • ****
  • Posts: 499
Re: UHS-I / SD cards investigation
« Reply #420 on: July 01, 2020, 11:32:54 PM »
i tried it, and it worked, at least in terms of enabling it, but i can't get bench.mo to work...  i'm getting errors enabling the module.  do i need a special version to use with your latest build?

while i await your response i will do some recording tests with overclock on and see if it is reliable...

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1699
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #421 on: July 01, 2020, 11:36:31 PM »
If you disable global draw on the overlay tab and set REC indicator to instant bitrate on the movie tab, you can see the current writing speed while recording. No benchmark needed.

70MM13

  • Senior
  • ****
  • Posts: 499
Re: UHS-I / SD cards investigation
« Reply #422 on: July 01, 2020, 11:40:43 PM »
false start!  sd overclock turns "ON" but as soon as i hit record, it says "file create error".

looks like it isn't working... yet!

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7188
Re: UHS-I / SD cards investigation
« Reply #423 on: July 01, 2020, 11:46:05 PM »
Run only sd card. Not with cf card.

70MM13

  • Senior
  • ****
  • Posts: 499
Re: UHS-I / SD cards investigation
« Reply #424 on: July 02, 2020, 12:02:45 AM »
yup, it was sd only... :(