odroid c1 freezes frequently

Post Reply
klemperer
Posts: 20
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english
Contact:

odroid c1 freezes frequently

Unread post by klemperer » Tue Mar 20, 2018 11:21 am

My odroid C1 freezes every one or two days, and every time I have to cut the power and reboot the system.

I tried to figure out what was happening just before the system was dead.

The "htop" command output as follows:
htop.png
htop.png (39.88 KiB) Viewed 994 times
syslog and kern.log as follows:
syslog.png
syslog.png (24.17 KiB) Viewed 994 times
kern.png
kern.png (13.72 KiB) Viewed 994 times
Could any one help? Thanks

User avatar
odroid
Site Admin
Posts: 29750
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: odroid c1 freezes frequently

Unread post by odroid » Tue Mar 20, 2018 11:29 am

Which OS image do you use?
Which application software do you run on Linux?
It is very worth to trace the DRAM usage.

BTW, one of our local time and vpn server runs Ubuntu minimal image on C1+ over several months without reboot.
So we are thinking the C1+ system is quite stable.

klemperer
Posts: 20
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english
Contact:

Re: odroid c1 freezes frequently

Unread post by klemperer » Tue Mar 20, 2018 11:36 am

the Ubuntu 14 image When I bought C1, and upgraded to Ubuntu 16 several months ago.
The applications that consuming DRAM could be seen in the htop output.

klemperer
Posts: 20
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english
Contact:

Re: odroid c1 freezes frequently

Unread post by klemperer » Tue Mar 20, 2018 11:37 am

Was the CPU usage in normal status? Why only one kernel was shown?

User avatar
odroid
Site Admin
Posts: 29750
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: odroid c1 freezes frequently

Unread post by odroid » Tue Mar 20, 2018 11:42 am

Did you flash this Mate desktop version?
https://wiki.odroid.com/odroid-c1/os_images/ubuntu/v2.2
Or this minimal server version?
https://wiki.odroid.com/odroid-c1/os_im ... tu/minimal

If you want to test the multi-core functionality, try to run "stress" program.

Code: Select all

sudo apt install stress
stress --cpu 4

klemperer
Posts: 20
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english
Contact:

Re: odroid c1 freezes frequently

Unread post by klemperer » Tue Mar 20, 2018 11:47 am

V2.2, but I didn't flash the image. I just followed the instructions in the wiki and upgraded the system from Ubuntu 14 to Ubuntu 16.04

User avatar
odroid
Site Admin
Posts: 29750
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: odroid c1 freezes frequently

Unread post by odroid » Tue Mar 20, 2018 12:18 pm

What is your current kernel version?
Show me "uname -a" output.

klemperer
Posts: 20
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english
Contact:

Re: odroid c1 freezes frequently

Unread post by klemperer » Tue Mar 20, 2018 12:19 pm

Linux odroid 3.10.107 #1 SMP PREEMPT Mon Dec 11 22:09:29 CST 2017 armv7l armv7l armv7l GNU/Linux

User avatar
odroid
Site Admin
Posts: 29750
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: odroid c1 freezes frequently

Unread post by odroid » Tue Mar 20, 2018 12:21 pm

Kernel version is the latest one.

Run the stress command in background and check the htop CPU usage.

klemperer
Posts: 20
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english
Contact:

Re: odroid c1 freezes frequently

Unread post by klemperer » Tue Mar 20, 2018 12:28 pm

The htop output showed that only kernel threads (red) consumes 40% of CPU and no other colors. Why did it happen?

klemperer
Posts: 20
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english
Contact:

Re: odroid c1 freezes frequently

Unread post by klemperer » Tue Mar 20, 2018 12:29 pm

stress.png
stress.png (20.86 KiB) Viewed 984 times

klemperer
Posts: 20
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english
Contact:

Re: odroid c1 freezes frequently

Unread post by klemperer » Tue Mar 20, 2018 1:14 pm

By the way, my board is C1, not C1+. Will it be the problem?

User avatar
odroid
Site Admin
Posts: 29750
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: odroid c1 freezes frequently

Unread post by odroid » Tue Mar 20, 2018 1:22 pm

Since the Kernel itself doesn't run in parallel, the symptom is very normal.

klemperer
Posts: 20
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english
Contact:

Re: odroid c1 freezes frequently

Unread post by klemperer » Tue Mar 20, 2018 2:17 pm

then the high CPU load must be caused by some kernel thread(s), as the user threads seemed fine.

klemperer
Posts: 20
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english
Contact:

Re: odroid c1 freezes frequently

Unread post by klemperer » Tue Mar 20, 2018 2:57 pm

I just added 1G swap to C1, to see whether there will be improvement

User avatar
meveric
Posts: 9713
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go
Contact:

Re: odroid c1 freezes frequently

Unread post by meveric » Tue Mar 20, 2018 8:07 pm

in the first screenshot one can see that you're running Chromium on top of the OS.
Chromium is known to use A LOT of memory, and the C1 has very little memory.
You ran the system without any swap at all which is very likely causing the system to run in a memory limit which can cause freezes.
Adding swap (as you said in you last post) might help but it's probably no guarantee.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Jojo
Posts: 524
Joined: Mon May 18, 2015 12:13 am
languages_spoken: english, german
ODROIDs: C1, C1+, C2, HC1, HC2, VU8C
Location: Germany
Contact:

Re: odroid c1 freezes frequently

Unread post by Jojo » Tue Mar 20, 2018 8:16 pm

Another idea: what USB-devices are you using? Many users observed sudden freezes caused by a buggy USB driver.

Greetings
How to ask questions the smart way:
http://www.catb.org/esr/faqs/smart-questions.html

klemperer
Posts: 20
Joined: Mon Dec 11, 2017 9:27 am
languages_spoken: english
Contact:

Re: odroid c1 freezes frequently

Unread post by klemperer » Wed Mar 21, 2018 10:59 am

Thanks Jojo, I am using USB sound card, USB HDD, USB camera and USB keyboard with C1. All works fine. Is there any way to figure out which device might cause the freeze?

Jojo
Posts: 524
Joined: Mon May 18, 2015 12:13 am
languages_spoken: english, german
ODROIDs: C1, C1+, C2, HC1, HC2, VU8C
Location: Germany
Contact:

Re: odroid c1 freezes frequently

Unread post by Jojo » Wed Mar 21, 2018 5:31 pm

Well, from what I heard, these problems are caused if you mix high-speed and low-speed USB devices at the same USB hub (again, this is what I've heard/read). So my plan would be, to just disconnect all USB devices except the keyboard. Then you can test, if it runs longer and more stable.

Of course this might be the completely wrong track, but it might be worth a try.
How to ask questions the smart way:
http://www.catb.org/esr/faqs/smart-questions.html

User avatar
odroid
Site Admin
Posts: 29750
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: odroid c1 freezes frequently

Unread post by odroid » Wed Mar 21, 2018 6:01 pm

I don't think @klemperer's issue comes from USB devices.
When we ran a Chromium youtube loop test, we could see the system crash due to the low-memory-kill issue until we activated the swap memory or zram.

Anyway, to check the mixed USB speed problem, look into "lsusb -t" output.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest