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

Test and fix the Kernel 4.14 features

Moderators: mdrjr, odroid

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

Unread postby odroid » Mon Sep 11, 2017 6:13 pm

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.
User avatar
odroid
Site Admin
 
Posts: 25311
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby reza » Wed Sep 13, 2017 1:37 am

so the linux-odroid-xu4 will get updated to 4.14 ?
reza
 
Posts: 58
Joined: Tue Mar 15, 2016 3:40 am
languages_spoken: english
ODROIDs: xu4

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

Unread postby odroid » Wed Sep 13, 2017 9:48 am

It may need 3~4 months at least.
User avatar
odroid
Site Admin
 
Posts: 25311
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby reza » Wed Sep 13, 2017 7:07 pm

so I got it right the first time?
the correct kernel to install is always linux-odroid-xu3/4 and not linux-arm?
reza
 
Posts: 58
Joined: Tue Mar 15, 2016 3:40 am
languages_spoken: english
ODROIDs: xu4

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

Unread postby odroid » Fri Sep 15, 2017 8:17 am

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: 25311
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby odroid » Fri Sep 15, 2017 10:53 am

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.
User avatar
odroid
Site Admin
 
Posts: 25311
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby mad_ady » Fri Sep 15, 2017 1:13 pm

User avatar
mad_ady
 
Posts: 2876
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2

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

Unread postby mad_ady » Fri Sep 15, 2017 1:41 pm

@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.
User avatar
mad_ady
 
Posts: 2876
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2

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

Unread postby gregor » Wed Sep 20, 2017 9:28 pm

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 ?
gregor
 
Posts: 17
Joined: Wed Sep 20, 2017 9:24 pm
languages_spoken: english
ODROIDs: HC-1

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

Unread postby odroid » Thu Sep 21, 2017 7:24 am

@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?
User avatar
odroid
Site Admin
 
Posts: 25311
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

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

Unread postby tkaiser » Thu Sep 21, 2017 6:33 pm

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.
tkaiser
 
Posts: 120
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1

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

Unread postby SamVDB² » Wed Nov 15, 2017 11:14 pm

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.
SamVDB²
 
Posts: 6
Joined: Mon Oct 30, 2017 3:42 pm
languages_spoken: english

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

Unread postby joaofl » Thu Nov 16, 2017 12:10 am

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.
joaofl
 
Posts: 29
Joined: Sat Feb 27, 2016 2:29 am
Location: Portugal, Brasil
languages_spoken: english, portuguese, spanish
ODROIDs: XU4

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

Unread postby odroid » Thu Nov 16, 2017 9:54 am

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.
User avatar
odroid
Site Admin
 
Posts: 25311
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Previous

Return to Linux Kernel 4.14 Debugging Party

Who is online

Users browsing this forum: No registered users and 1 guest

cron