tinker2much
Posts: 153
Joined: Wed Jun 20, 2018 12:38 am

SD Card test won't work on original Pi B (256MB)

Fri Mar 20, 2020 12:08 am

I just ran the new SD Card speed test on my fleet of Raspberry Pi's.

It ran on zeros, zero Ws, pi2, pi3b, pi3a+, and pi4, and got QUITE a range of speeds, some passing, some failing, but that's another story.

It would not run at all on my original (256MB) model (1)B:

Code: Select all

[email protected]:~ $ sh /usr/share/agnostics/sdtest.sh
Run 1
fio: job startup hung? exiting.
fio: 1 job failed to start
Terminated
Has anyone else gotten this result?

Is this old Pi simply too under-provisioned to run the test?

tinker2much
Posts: 153
Joined: Wed Jun 20, 2018 12:38 am

Re: SD Card test won't work on original Pi B (256MB)

Fri Mar 27, 2020 1:36 am

Trying to expand the question here - are there any other items that won't work on the original Pi B with 256MB of memory?

@ejolson said here: https://www.raspberrypi.org/forums/view ... x#p1632530
In fact, it may already have happened that the original 256MB Pi B is not well supported by the current version of Raspbian.
Was he serious? There were many bits of humor/sarcasm/offtopic-ness/poking the bear happening in that thread so I'm not sure.

And, just to be clear, I'm NOT mad about this, even if the SD Card Test or any other software is now not working on the original Model B with its tiny memory. This would be the first instance I've noticed, and it's now 8 years since it came out, a lifetime in computer years. As I've said elsewhere on this forum, I applaud the efforts of Simon and so many others to make the software work on the wide range of pi hardware, and on ALL the Pi models back through time. I'm still running an internal web site on that original Model B - with real apache. (In a different case, I'm now running the Raspberry Pi Desktop on a Chromebook that Google's stopped supporting, and on an old Macbook that Apple's stopped supporting. I'm a big fan of the Foundation there too.)

So I'm just interested, and wonder what others may have noticed.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5453
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: SD Card test won't work on original Pi B (256MB)

Fri Mar 27, 2020 7:00 pm

O.K. I've used a P3A+ running the Pi version of the new Imaging Tool to write a 16Gb uSDHC card to be used in an adapter for my original B1 256Mb Pi - raspiblack: https://www.cpmspectrepi.uk/raspberry_p ... uePis.html
Buster runs fine but, of course much slower. With SSH enabled was able to connect to the RealVNC server running in virtual mode (as I do with the P3A+):

Code: Select all

[email protected]:~ $ uname -a
Linux raspiblack 4.19.97+ #1294 Thu Jan 30 13:10:54 GMT 2020 armv6l GNU/Linux
[email protected]:~ $ tail -4 /proc/cpuinfo
Hardware        : BCM2835
Revision        : 0002
Serial          : 00000000961a2588
Model           : Raspberry Pi Model B Rev 1
[email protected]:~ $ vncserver
VNC(R) Server 6.7.1 (r42348) ARMv6 (Jan 30 2020 15:13:47)
Installed "agnostics" w/o problems. Ran it and confirmed "failure":

Code: Select all

[email protected]:~ $ cat rpdiags.txt
Raspberry Pi Diagnostics - version 0.2
Fri Mar 27 18:32:37 2020

Test : SD Card Speed Test
Run 1
fio: job startup hung? exiting.
fio: 1 job failed to start
Test FAIL
NB: I'm not too surprised that it did since, IIRC, the sd card hardware (and associated firmware?) is very different to that of later Pi's,, especially those using a uSDHC card slot (B+ onwards). I don't think it's a memory issue. To check that I can retry with a B2 Pi once I've updated etc. ie.raspiblue - FWIW, an early quick test of Buster is here:: https://www.cpmspectrepi.uk/raspberry_p ... kTest.html
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

andrum99
Posts: 1067
Joined: Fri Jul 20, 2012 2:41 pm

Re: SD Card test won't work on original Pi B (256MB)

Fri Mar 27, 2020 8:12 pm

FTrevorGowen wrote:
Fri Mar 27, 2020 7:00 pm
O.K. I've used a P3A+ running the Pi version of the new Imaging Tool to write a 16Gb uSDHC card to be used in an adapter for my original B1 256Mb Pi - raspiblack: https://www.cpmspectrepi.uk/raspberry_p ... uePis.html
Buster runs fine but, of course much slower. With SSH enabled was able to connect to the RealVNC server running in virtual mode (as I do with the P3A+):

Code: Select all

[email protected]:~ $ uname -a
Linux raspiblack 4.19.97+ #1294 Thu Jan 30 13:10:54 GMT 2020 armv6l GNU/Linux
[email protected]:~ $ tail -4 /proc/cpuinfo
Hardware        : BCM2835
Revision        : 0002
Serial          : 00000000961a2588
Model           : Raspberry Pi Model B Rev 1
[email protected]:~ $ vncserver
VNC(R) Server 6.7.1 (r42348) ARMv6 (Jan 30 2020 15:13:47)
Installed "agnostics" w/o problems. Ran it and confirmed "failure":

Code: Select all

[email protected]:~ $ cat rpdiags.txt
Raspberry Pi Diagnostics - version 0.2
Fri Mar 27 18:32:37 2020

Test : SD Card Speed Test
Run 1
fio: job startup hung? exiting.
fio: 1 job failed to start
Test FAIL
NB: I'm not too surprised that it did since, IIRC, the sd card hardware (and associated firmware?) is very different to that of later Pi's,, especially those using a uSDHC card slot (B+ onwards). I don't think it's a memory issue. To check that I can retry with a B2 Pi once I've updated etc. ie.raspiblue - FWIW, an early quick test of Buster is here:: https://www.cpmspectrepi.uk/raspberry_p ... kTest.html
Trev.
It's probably a bug in fio - the tool that agnostics uses to run the actual test. Fio is just an IO benchmarking tool - it doesn't matter what kind of storage is in use - there's nothing SD card-specific about it - agnostics is just using it to read and write files.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5453
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: SD Card test won't work on original Pi B (256MB)

Fri Mar 27, 2020 8:30 pm

andrum99 wrote:
Fri Mar 27, 2020 8:12 pm
FTrevorGowen wrote:
Fri Mar 27, 2020 7:00 pm
....
[email protected]:~ $ cat rpdiags.txt
Raspberry Pi Diagnostics - version 0.2
Fri Mar 27 18:32:37 2020

Test : SD Card Speed Test
Run 1
fio: job startup hung? exiting.
fio: 1 job failed to start
Test FAIL
[/code]
NB: I'm not too surprised that it did since, IIRC, the sd card hardware (and associated firmware?) is very different to that of later Pi's,, especially those using a uSDHC card slot (B+ onwards). I don't think it's a memory issue. To check that I can retry with a B2 Pi once I've updated etc. ie.raspiblue - FWIW, an early quick test of Buster is here:: https://www.cpmspectrepi.uk/raspberry_p ... kTest.html
Trev.
It's probably a bug in fio - the tool that agnostics uses to run the actual test. Fio is just an IO benchmarking tool - it doesn't matter what kind of storage is in use - there's nothing SD card-specific about it - agnostics is just using it to read and write files.
That makes sense - still waiting for the B2 to finish upgrading before re-testing ....
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

andrum99
Posts: 1067
Joined: Fri Jul 20, 2012 2:41 pm

Re: SD Card test won't work on original Pi B (256MB)

Sat Mar 28, 2020 1:26 pm

Just tested this on my two first generation Pis - both have trouble. On the 512MB version it is rather more serious - the whole Pi hangs hard and needs the power yanked to get it working again. The 256MB version seems to just have heavy load for a few seconds, then goes back to normal. Both fail to run the test; the 256MB version has the same message in the log.

Reported as https://github.com/raspberrypi-ui/agnostics/issues/4

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5453
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: SD Card test won't work on original Pi B (256MB)

Sat Mar 28, 2020 2:13 pm

andrum99 wrote:
Sat Mar 28, 2020 1:26 pm
Just tested this on my two first generation Pis - both have trouble. On the 512MB version it is rather more serious - the whole Pi hangs hard and needs the power yanked to get it working again. The 256MB version seems to just have heavy load for a few seconds, then goes back to normal. Both fail to run the test; the 256MB version has the same message in the log.

Reported as https://github.com/raspberrypi-ui/agnostics/issues/4
Hmmm. I eventually got it installed on my B2 Pi following a full upgrade. Realised today what probably caused install issues - forgot it was using a 8Gb Samsung card (IIRC, Samsung being the card maker that "helped" with early "SD card issues") and, basically had to uninstall stuff (flagged as no longer in use) post-full-upgrade, for the install to work. All that took quite some time (>1hr?). First test run through a complete wobbly. Unistalling and then re-installing resulted in it working but, given as that old card was always going to be "too slow", tests reported as failed.

Code: Select all

[email protected]:~ $ uname -a
Linux raspiblue16GbSM 4.19.97+ #1294 Thu Jan 30 13:10:54 GMT 2020 armv6l GNU/Linux
[email protected]:~ $ cat rpdiags.txt
Raspberry Pi Diagnostics - version 0.2
Fri Mar 27 21:27:20 2020

Test : SD Card Speed Test
Test PASS

Run 1
Test FAIL

prepare-file;0;0;3962;7
seq-write;0;0;3834;7
rand-4k-write;0;0;307;76
rand-4k-read;4035;1008;0;0
Sequential write speed 3834 kb/s (target 10000) - FAIL
Note that sequential write speed declines over time as a card is used - your card may require reformatting
Random write speed 76 IOPS (target 500) - FAIL
Random read speed 1008 IOPS (target 1500) - FAIL
Run 2
prepare-file;0;0;3935;7
seq-write;0;0;3986;7
rand-4k-write;0;0;337;84
rand-4k-read;3967;991;0;0
Sequential write speed 3986 kb/s (target 10000) - FAIL
Note that sequential write speed declines over time as a card is used - your card may require reformatting
Random write speed 84 IOPS (target 500) - FAIL
Random read speed 991 IOPS (target 1500) - FAIL
Run 3
prepare-file;0;0;3956;7
seq-write;0;0;3985;7
rand-4k-write;0;0;597;149
rand-4k-read;4072;1018;0;0
Sequential write speed 3985 kb/s (target 10000) - FAIL
Note that sequential write speed declines over time as a card is used - your card may require reformatting
Random write speed 149 IOPS (target 500) - FAIL
Random read speed 1018 IOPS (target 1500) - FAIL
(NB: the "deliberate mistake" in the hostname! :oops: )
Trev.
(FWIW, some of my, still growing, Pi collection can be seen here: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm - I do try and re-test new Raspbian releases on the older ones when I can)
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2237
Joined: Thu Jul 11, 2013 2:37 pm

Re: SD Card test won't work on original Pi B (256MB)

Sun Mar 29, 2020 11:59 am

The FIO benchmark is using enormous amounts of RAM. It's >82% as reported by top on a 512MB pi zero W. On 512/256MB it looks like you either enter swap hell, or the job terminates on a timeout.
Rockets are loud.
https://astro-pi.org

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2237
Joined: Thu Jul 11, 2013 2:37 pm

Re: SD Card test won't work on original Pi B (256MB)

Sun Mar 29, 2020 12:13 pm

In /usr/share/agnostics/sdtest.sh add --max-jobs=4 as an argument to the FIO invocation. Seems to cut RAM usage by a drastic amount.
Rockets are loud.
https://astro-pi.org

mattmiller
Posts: 2187
Joined: Thu Feb 05, 2015 11:25 pm

Re: SD Card test won't work on original Pi B (256MB)

Sun Mar 29, 2020 12:25 pm

I just ran the new SD Card speed test on my fleet of Raspberry Pi's.
Must have missed some announcement somewhere - what new SD Card speed test?

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5453
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: SD Card test won't work on original Pi B (256MB)

Sun Mar 29, 2020 1:17 pm

mattmiller wrote:
Sun Mar 29, 2020 12:25 pm
I just ran the new SD Card speed test on my fleet of Raspberry Pi's.
Must have missed some announcement somewhere - what new SD Card speed test?
See the March 4th. blog: https://www.raspberrypi.org/blog/sd-card-speed-test/
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5453
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: SD Card test won't work on original Pi B (256MB)

Sun Mar 29, 2020 1:21 pm

jdb wrote:
Sun Mar 29, 2020 12:13 pm
In /usr/share/agnostics/sdtest.sh add --max-jobs=4 as an argument to the FIO invocation. Seems to cut RAM usage by a drastic amount.
Thanks @jdb - I'll give that a try with raspiblack (Pi #1) sometime later today and report back. At some point I'll test with raspigrey, my model A Pi, too.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Return to “Troubleshooting”