I removed the suspect SD card from the RPi3 and tested it in my laptop.
# hdparm -Tt /dev/mmcblk0
/dev/mmcblk0: Timing cached reads: 15750 MB in 2.00 seconds = 7893.74 MB/sec Timing buffered disk reads: 88 MB in 3.05 seconds = 28.82 MB/sec <--- This was 365 kB/sec in the RPi3.
It seems to test OK in the laptop. Bad connection in the RPi3 ?
So I prepared a second class 10 SD card with the same image. I tested it in the laptop that I used to prepare it.
# hdparm -Tt /dev/mmcblk0
/dev/mmcblk0: Timing cached reads: 15908 MB in 2.00 seconds = 7973.32 MB/sec Timing buffered disk reads: 54 MB in 3.05 seconds = 17.71 MB/sec
The second SD is actually slower to read than the first one, in the laptop. 28.82 versus 17.71 MB/sec
I booted the 2nd SD card in the RPi3.
# hdparm -Tt /dev/mmcblk0
/dev/mmcblk0: Timing cached reads: 816 MB in 2.00 seconds 408.21 MB/sec Timing buffered disk reads: 66 MB in 3.03 seconds = 21.81 MB/sec <--- Faster than it was in the laptop !
#time dnf update - install 32 packages, update 275, just like last time
I ran #time dnf update and stopped it at 47 packages.
real: 30m46.181s user: 0.00s sys: 0m.020s
I retested the SD card and got the same read speeds as above.
On Wed, Jan 24, 2018 at 2:06 PM, Duff, Bryan bryan.duff1@abbott.com wrote:
That would be a good place to start. FWIW, all my micro SD cards are Sandisk ultra’s . Unfortunately I don’t see that /sys/block is well populated (no model).
-Bryan
*From:* linux guy [mailto:linuxguy123@gmail.com] *Sent:* Wednesday, January 24, 2018 2:51 PM *To:* Duff, Bryan *Cc:* Richard Ryniker; arm@lists.fedoraproject.org; marcin steć *Subject:* Re: [fedora-arm] Re: Exactly how slow is Fedora 27 on an RP3 ? dnf update takes hours ?
Found the issue:
sudo hdparm -Tt /dev/mmcblk0
/dev/mmcblk0:
Timing cached reads: 240 MB in 2.00 seconds = 119.84 MB/sec
Timing buffered disk reads: 2 MB in 5.60 seconds = 365.82 kB/sec <------ Wow !
Bad memory card ????
On Wed, Jan 24, 2018 at 1:39 PM, Duff, Bryan bryan.duff1@abbott.com wrote:
Eh, I’ll give it a go… on F26 armhf7l. Keep in mind my repos may be different, so it might very the timing by maybe 30s?
time sudo dnf install rygel –y
Unfortunately it’s only 21 packages for me. And now that I look at it, would probably be better to “dnf download” first and time that separately.
//start snip
…
Complete!
real 3m34.645s
user 1m54.094s
sys 1m19.396s
# and
sudo hdparm -Tt /dev/mmcblk0
/dev/mmcblk0:
Timing cached reads: 834 MB in 2.00 seconds = 417.21 MB/sec
Timing buffered disk reads: 68 MB in 3.06 seconds = 22.24 MB/sec
//end snip
Thanks.
-Bryan
*From:* linux guy [mailto:linuxguy123@gmail.com] *Sent:* Wednesday, January 24, 2018 2:31 PM *To:* Richard Ryniker *Cc:* arm@lists.fedoraproject.org; marcin steć *Subject:* [fedora-arm] Re: Exactly how slow is Fedora 27 on an RP3 ? dnf update takes hours ?
I just ran #time dnf install rygel on my fresh install. It required 56 packages.
real 64m43.986s
user 1m59.778s
sys 0m25.893s
This is on a console only machine, no GUI.
Could someone run the same process on their RPi3 and see what they get ?
This communication may contain information that is proprietary, confidential, or exempt from disclosure. If you are not the intended recipient, please note that any other dissemination, distribution, use or copying of this communication is strictly prohibited. Anyone who receives this message in error should notify the sender immediately by telephone or by return e-mail and delete it from his or her computer.
Update/solved.
So I finally got back to work on this project. I did installed another image on the Kingston card and ran dnf update. It took > 8 hours.
On the advice from my friend I purchased a Class 3 SanDisk "Extreme" 32 GB micro SD card. The packaging claims reads at 90 MB/sec (600x) and writes at 60 MB/sec (400x).
# time dnf update with this card now yields: real 37m8s, user 27m39s sys 4m36s. At least 16x faster. And the current dnf update is larger than what I was running several weeks ago.
#dnf install rygel takes a 5 minutes instead of over an hour.
Bottom line: the SD card (speed) makes a huge difference in the speed of an RPi3.
Thanks for the help.
On Fri, Feb 16, 2018 at 11:25 PM, linux guy linuxguy123@gmail.com wrote:
Update/solved.
So I finally got back to work on this project. I did installed another image on the Kingston card and ran dnf update. It took > 8 hours.
On the advice from my friend I purchased a Class 3 SanDisk "Extreme" 32 GB micro SD card. The packaging claims reads at 90 MB/sec (600x) and writes at 60 MB/sec (400x).
# time dnf update with this card now yields: real 37m8s, user 27m39s sys 4m36s. At least 16x faster. And the current dnf update is larger than what I was running several weeks ago.
#dnf install rygel takes a 5 minutes instead of over an hour.
Bottom line: the SD card (speed) makes a huge difference in the speed of an RPi3.
Yes, I tend to use either the Sandisk Extreme or Samsung EVO lines of SD card.
There's also been a big rework of the MMC subsystem that landed in 4.16 that moved to the block MQ kernel infra which should help performances, and will also enabled the use of HW queues on supported HW eventually so there should be improvements seen in F-28 for SD card performance.
Peter