Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Test and fix the Kernel 4.14 features
User avatar
odroid
Site Admin
Posts: 35297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 1089 times
Been thanked: 825 times
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by odroid »

Right. 4.12 and 4.13 have a wrong configuration.
I think we will have some trial patches when 4.14 RC1 or RC2 is available.

reza
Posts: 61
Joined: Tue Mar 15, 2016 3:40 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by reza »

so the linux-odroid-xu4 will get updated to 4.14 ?

User avatar
odroid
Site Admin
Posts: 35297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 1089 times
Been thanked: 825 times
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by odroid »

It may need 3~4 months at least.

reza
Posts: 61
Joined: Tue Mar 15, 2016 3:40 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by reza »

so I got it right the first time?
the correct kernel to install is always linux-odroid-xu3/4 and not linux-arm?

User avatar
odroid
Site Admin
Posts: 35297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 1089 times
Been thanked: 825 times
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by odroid »

Yes, only linux-odroid-xu3 is available.
https://wiki.odroid.com/odroid-xu4/os_i ... st-upgrade

Note that we've released 4.9 updates frequently.
https://github.com/hardkernel/linux/releases

User avatar
odroid
Site Admin
Posts: 35297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 1089 times
Been thanked: 825 times
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by odroid »

The old CloudShell(GL3321G controller) stability issue on Kernel 4.9 could be solved when we reduced the size of the storage queue.

The queue size can be accessed with this node.
/sys/class/block/sda/queue/max_sectors_kb

The default value is 240 and it can increase to 1024 with USB 3.0 port.
If the size is bigger than 20, we could reproduce the random failure.
So we tried echo 20 > /sys/class/block/sda/queue/max_sectors_kb and the stability issue was gone.
But the multiple transfer performance is lower around 5% ~ 10%.

Please try it and let us know the result.

mad_ady
Posts: 8464
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 577 times
Been thanked: 461 times
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by mad_ady »


mad_ady
Posts: 8464
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 577 times
Been thanked: 461 times
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by mad_ady »

@odroid: I have a suggestion for HC2 and future odroid products: put the usb chipset enable signal on a gpio so it can be reset from userspace. I've seen problems on xu4 + storage which require a full usb poweroff to recover.

gregor
Posts: 17
Joined: Wed Sep 20, 2017 9:24 pm
languages_spoken: english
ODROIDs: HC-1
Has thanked: 0
Been thanked: 0
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by gregor »

Good day all.
I bought HC-1 to build Nextcloud platform, with HGST 1TB HDD. Unfortunatelly when transfering backup using rsync, after while seems HDD is dying. No longer being mounted, or even accessible as /dev/sda1
Just replaced it for quick test with Intel SSD, and so far all seems very stable.
Is it compatibility issue with HGST ? Any way to fix it ?

User avatar
odroid
Site Admin
Posts: 35297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 1089 times
Been thanked: 825 times
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by odroid »

@gregor
We tested a brand new HGST 1TB/7200rpm 2.5" HDD on HC1 for a couple of weeks and there was no issue.
Which power supply do you use?

tkaiser
Posts: 672
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by tkaiser »

gregor wrote:Any way to fix it ?
Check/replace your power supply since only possible reason (current too limited, voltage drops too low or even both at the same time). You could measure voltage on pins 8 / 11 of the SATA power connector (see picture here: https://forum.armbian.com/index.php?/to ... ata-cable/ )

At least the JMS578 on HC1 has no known compatibility issues with any SATA devices so far.

SamVDB²
Posts: 7
Joined: Mon Oct 30, 2017 3:42 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by SamVDB² »

odroid wrote:The old CloudShell(GL3321G controller) stability issue on Kernel 4.9 could be solved when we reduced the size of the storage queue.

The queue size can be accessed with this node.
/sys/class/block/sda/queue/max_sectors_kb

The default value is 240 and it can increase to 1024 with USB 3.0 port.
If the size is bigger than 20, we could reproduce the random failure.
So we tried echo 20 > /sys/class/block/sda/queue/max_sectors_kb and the stability issue was gone.
But the multiple transfer performance is lower around 5% ~ 10%.

Please try it and let us know the result.
Well I guess this works when a HDD is connected, but I'm using a USB3 UVC framegrabber and I don't have such a parameter.. :roll:
To be complete, this is my setup:
USB3 UVC framegrabber connected to XU4 and recording a video with gstreamer while at the same time copying a large file via network port. Almost immediately after starting the file copy, gstreamer stops getting frames from the framegrabber :( Currently testing with 4.9.61.

joaofl
Posts: 40
Joined: Sat Feb 27, 2016 2:29 am
languages_spoken: english, portuguese, spanish
ODROIDs: XU4
Location: Portugal, Brasil
Has thanked: 0
Been thanked: 0
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by joaofl »

odroid wrote:It may need 3~4 months at least.
I saw that kernel 4.14 was released with some potential improvements (viewtopic.php?f=146&t=28692). Do you think it fixed this issue?

Since I could not fix it at all with the kernel 4.9, I had to go back to the 3.10 version, in which it gets stable with no errors like those. However, Im looking forward to get the best performance out of my XU4.

User avatar
odroid
Site Admin
Posts: 35297
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 1089 times
Been thanked: 825 times
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by odroid »

We still need to add echo 20 > /sys/class/block/sda/queue/max_sectors_kb command for some non-UAS capable storages even with Kernel 4.14.

datpersonwitaboard
Posts: 11
Joined: Fri Jun 23, 2017 2:45 am
languages_spoken: english
ODROIDs: XU4, Cloudshell 2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Unstable HDD(USB3.0) on Cloudshell w/ kernel 4.9

Post by datpersonwitaboard »

I'm interested in the photos!
I've this quite annoying bug and hope to fix it - but can't tell where to look....

Post Reply

Return to “Linux Kernel 4.14 Debugging Party”

Who is online

Users browsing this forum: No registered users and 2 guests