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

Walter Schulz

  • Contributor
  • Hero Member
  • *****
  • Posts: 8078
Re: UHS-I / SD cards investigation
« Reply #700 on: August 30, 2021, 09:51:09 AM »

Pretty sure it's not fake, fake cards write speeds maxes out at 20-25 MB/s

Source?

Also my friend got same SD card version from same local store nearly the same time, his card appear to maxes out @ 55 MB/s on PC, on camera with the overclock it gives the full speed.

Which proves what?

I think only some of Sandisk Extreme PRO UHS-I U3 95 MB/s cards have this issue, probably I will get the maximum write/read speed on PC using a Sandisk card reader or on another OS.

Source?

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 720
Re: UHS-I / SD cards investigation
« Reply #701 on: August 30, 2021, 02:14:47 PM »
Source?

I had three fake Sandisk Extreme PRO cards before, all of them had ~20-25 MB/s write speed (or a bit more), source is coming from my own tests :D
Also the fake cards didn't accept the overclock.

I am not sure if there are fake Sandisk Extreme PRO cards which have same performance as authentic ones (at least on camera). If this is the situation here, that's would be another story . .

Which proves what?

The local seller have imported many affected cards in the same time, probably Sandisk had bunch of these affected cards at that time.

Source?

Idea from a mind, I am guessing.
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

z56667895

  • New to the forum
  • *
  • Posts: 2
Re: UHS-I / SD cards investigation
« Reply #702 on: September 02, 2021, 07:45:04 PM »
Any setting errors cause slow writing speed?

My RAW recording can only record about 2 seconds in any mode

I don't know what caused it
My card is Sandisk Extreme PRO 170MB/s 128G

No problem testing the memory card on the computer





theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 720
Re: UHS-I / SD cards investigation
« Reply #703 on: September 04, 2021, 05:16:27 PM »
This card appears to accept 240 MHz overclock (tested on 700D by a user interacted with me on FB)



-No overclock:
Write 35.2 MB/s
Read 43 MB/s

-160 MHz:
Write 52 MB/s
Read 74 MB/s

-192 MHz:
Write 58 MB/s
Read ~84 MB/s

-240 MHz:
Write ~62 MB/s
Read 106 MB/s

-All previous tests was in play mode, we didn't test write speed using card reader on PC.
-We recorded many clips, it didn't switch to 48 MHz, seems like a stable card with 240 MHz overclock.
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

Walter Schulz

  • Contributor
  • Hero Member
  • *****
  • Posts: 8078
Re: UHS-I / SD cards investigation
« Reply #704 on: September 04, 2021, 06:04:37 PM »
There is a bar code on the rear of the blister pack and a string like "SDSQUSC-128G-ANCMA" above. This is the only identifier giving valid information about type and revision. Are you able to retrieve this string? Would be helpful to get a grip on working cards.

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7188
Re: UHS-I / SD cards investigation
« Reply #705 on: September 04, 2021, 10:37:43 PM »
This card appears to accept 240 MHz overclock (tested on 700D by a user interacted with me on FB)



-No overclock:
Write 35.2 MB/s
Read 43 MB/s

-160 MHz:
Write 52 MB/s
Read 74 MB/s

-192 MHz:
Write 58 MB/s
Read ~84 MB/s

-240 MHz:
Write ~62 MB/s
Read 106 MB/s

-All previous tests was in play mode, we didn't test write speed using card reader on PC.
-We recorded many clips, it didn't switch to 48 MHz, seems like a stable card with 240 MHz overclock.

Behaviour on 5d3?

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 720
Re: UHS-I / SD cards investigation
« Reply #706 on: September 05, 2021, 11:18:16 AM »
There is a bar code on the rear of the blister pack and a string like "SDSQUSC-128G-ANCMA" above. This is the only identifier giving valid information about type and revision. Are you able to retrieve this string? Would be helpful to get a grip on working cards.

That was:
SDSDUN4-128G-GN6IN

Yeah, it's better to list these cards in a spreadsheet in Google Drive or ML Wiki

Behaviour on 5d3?

That card was tested by a user with his 700D, not me, he doesn't have 5D3
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

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 720
Re: UHS-I / SD cards investigation
« Reply #707 on: September 17, 2021, 07:32:58 AM »
I did some experiments lately with SD overlocking stuff,

After calling sdSoftReset the camera switch from 96 MHz to 48 MHz mode, and AccessMode from 7 to 3, resulting in 21 MB/s write speed, changing preset to 96 MHz makes the write speed ~36 MB/s instead of ~41 MB/s , changing AccessMode from 3 back to 7 makes the write speed ~41 MB/s (now we got back original write speed), from there I could overclock to 160 MHz without a problem, but doing an overclock to 192 MHz/240 MHz makes the camera switches back to 48 MHz (21 MB/s)

After some research I found something (probably related to Bus speed configuration) which changes its value from 0 to 1 after doing sdSoftReset and especially after hitting recording button (after doing write/read processes), I tracked what part of code does that in 700D ROM, and found out it's coming from sdReadBlk and sdWriteBlk, well let's force that "something" value from 1 to 0 using this code (for 700D):

Code: [Select]
patch_instruction(0xff74c814, 0x13a01001, 0x13a01000, "0xff74c814"); // sdWriteBlk
patch_instruction(0xff74cae0, 0x13a01001, 0x13a01000, "0xff74cae0"); //sdReadBlk

-->I could overclock to 192/240 MHz presets (after a sdSoftReset/after switching to 48 MHz) :D (didn't blow up the card or camera . . managed to record several clips and +50 GB of data, everything was stable)

I am not really sure what that "something" does, do you remember these initial 192/240 MHz presets (which were and still not stable):
https://www.magiclantern.fm/forum/index.php?topic=12862.msg228447#msg228447
https://www.magiclantern.fm/forum/index.php?topic=12862.msg228460#msg228460

Above patch forced these none-stable presets to work, and it didn't switch to 48 MHz . . but I experienced speed drops then --> Card can't be accessed a.k.a "Card full" issue, well we knew those presets weren't stable and we are not using them, but we know current 192/240 MHz presets are stable (on 700D/6D)

--> So from above experiment and results it might be there some Hope to force 240 MHz on EOS M, and 192/240 MHz on 70D, please try the following sd_uhs.mo (for 70D/EOS M):

Download: https://drive.google.com/file/d/1DGa2nhSdgu8tSY2Yy22tZQR3PmYpwB4i/view?usp=sharing

If it worked --> you will have stable 192/240 MHz overclock
If it didn't work --> you might experience speed drops while recording and emergency stops, then "Card full" issue might appear (maybe something else?)

-Do this test at your own risk
-If it worked, it's might not be the correct way to force these presets

Edit: Doesn't work well, not stable at 240 MHz for EOS M, don't use it.
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 #708 on: September 17, 2021, 07:39:06 AM »
Hehe, nice work man. Will test in the evening  :)

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1859
Re: UHS-I / SD cards investigation
« Reply #709 on: September 17, 2021, 07:30:09 PM »
I tried your module on my EOSM with SanDisk Extreme Pro 95MB/s 64GB:
240MHz: 21MB/s (R/W)
192MHz: 86MB/s (R) 79MB/s (W)
5D3.113 | EOSM.202

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 720
Re: UHS-I / SD cards investigation
« Reply #710 on: September 17, 2021, 07:41:19 PM »
@masc

Hmmm, could you share a picture for "Memory patches" from "Debug" tab
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

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1859
Re: UHS-I / SD cards investigation
« Reply #711 on: September 17, 2021, 07:50:13 PM »
could you share a picture for "Memory patches" from "Debug" tab
This is booted with 240MHz setting.
5D3.113 | EOSM.202

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 720
Re: UHS-I / SD cards investigation
« Reply #712 on: September 17, 2021, 08:03:46 PM »
It seems the patch didn't apply, will check why
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

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 720
Re: UHS-I / SD cards investigation
« Reply #713 on: September 17, 2021, 08:08:14 PM »
Okay, it was a typo, updated the link, please try this:
https://drive.google.com/file/d/1DGa2nhSdgu8tSY2Yy22tZQR3PmYpwB4i/view?usp=sharing
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

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1859
Re: UHS-I / SD cards investigation
« Reply #714 on: September 17, 2021, 08:34:36 PM »
I tried again. With 240MHz setting, I get a console-like output when starting the cam. Recording 12bit 5K frtp works without problem. The benchmark is... strange...:
W 96.1MB/s
R 889.6MB/s
W 134.7MB/s
R 4785.0MB/s
LOL... really? First try had even bigger values.  :P (While the benchmark screenshot is all black.)
Recording 14bit lossless 5K frtp 1440x1860 was working with green indicator all the time.
5D3.113 | EOSM.202

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 720
Re: UHS-I / SD cards investigation
« Reply #715 on: September 17, 2021, 08:49:26 PM »
Cool, it didn't switch . . but

These big values happens probably due to instability, could you try recording 1736x976 @ 23.976 FPS in 14-bit uncompressed, press Info to toggle to Canon Preview, try to record as long as possible, what is the reported write speed? is there an emergency stops? do you have "Card full" issue?
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 #716 on: September 17, 2021, 08:53:36 PM »
Also verify by checking the recorded files even after getting those wacky numbers. Shouldn't give you normal files but who knows what works with this hack :).

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1859
Re: UHS-I / SD cards investigation
« Reply #717 on: September 17, 2021, 08:56:29 PM »
... could you try recording 1736x976 @ 23.976 FPS in 14-bit uncompressed, press Info to toggle to Canon Preview, try to record as long as possible, what is the reported write speed?
Sorry... stupid question...: how to record uncompressed? I use Danne's Feb build (I think it is not possbile here) - do I need the standard nightly for that? And where to find the "reported write speed"?
5D3.113 | EOSM.202

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7188
Re: UHS-I / SD cards investigation
« Reply #718 on: September 17, 2021, 09:04:44 PM »
I think I turned off the uncompressed alternative in my version. But do recordings work in general with 240mhz patch?

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1859
Re: UHS-I / SD cards investigation
« Reply #719 on: September 17, 2021, 09:13:44 PM »
I think I turned off the uncompressed alternative in my version. But do recordings work in general with 240mhz patch?
Yes, worked fine. I recorded 14bit lossless 1440x1836 for over a minute, indicator always green. File worked fine in MLVApp. Did not see any pink frame or something else...
5D3.113 | EOSM.202

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7188
Re: UHS-I / SD cards investigation
« Reply #720 on: September 17, 2021, 09:15:45 PM »
Interesting. And it kept working even after you were getting those wacky test numbers?

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1859
Re: UHS-I / SD cards investigation
« Reply #721 on: September 17, 2021, 09:18:59 PM »
Interesting. And it kept working even after you were getting those wacky test numbers?
Tried again for this: after the benchmark I get a "File create error".
5D3.113 | EOSM.202

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7188
Re: UHS-I / SD cards investigation
« Reply #722 on: September 17, 2021, 09:21:31 PM »
I see. So maybe it´s the usual lucky first recording and then it breaks. Too bad I have no battery in my cam and charger at home.

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 720
Re: UHS-I / SD cards investigation
« Reply #723 on: September 17, 2021, 09:30:14 PM »
Sorry... stupid question...: how to record uncompressed? I use Danne's Feb build (I think it is not possbile here) - do I need the standard nightly for that? And where to find the "reported write speed"?

Not sure how to do it from Danne build, use the official crop_rec_4k build:
https://builds.magiclantern.fm/jenkins/job/crop_rec_4k/80/artifact/platform/EOSM.202/magiclantern-crop_rec_4k.2018Jul22.EOSM202.zip

You can change bit-depth from mlv_lite submenu, maybe you need to use Movie crop mode (lower the resolution to 1736x976) because official build doesn't have mv1080 patch. I mean reported write speed by mlv_lite, like this:



I want you test 1736x976 @ 23.976 FPS in 14-bit uncompressed because it has fixed write speed which is 67.8 MB/s , and recording should be continuous only with 240 MHz preset, look out for speed drops during recording . .
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

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1859
Re: UHS-I / SD cards investigation
« Reply #724 on: September 17, 2021, 09:31:34 PM »
Tested a little more: recording as long as possible with 5K frtp setting from above:
1st file stopped after 11.8GB, 4272frames, 2:58min. No error visible in file.
2nd file stopped ("card full", while 36GB are still left) after 11.3GB. I can't open the file, because of error "Invalid blocksize '0', corrupted file".

Edit: 11,8GB*1024/178s = 67,88MB/s.
5D3.113 | EOSM.202