[INFO] 1 CPU only / Shutdown CPU messages

Moderators: odroid, meveric, mdrjr

[INFO] 1 CPU only / Shutdown CPU messages

Unread postby mdrjr » Mon Feb 25, 2013 3:00 am

I've seem alot of questions regarding that subject.. so let me clarify in here..

Exynos 4412 the SoC used on ODROID-X/X2/U/U2/Q/Q2 is a mobile SoC (targeted for Phones and Tablet). Think on that battery life is a concern..

So the CPU has the capability of turning of CPU's while is not in use and turn it back on when its needed.

If you see messages like:

Code: Select all
[ 7754.974614] CPU2: shutdown
[ 7755.122554] CPU3: shutdown
[ 7758.026593] CPU3: Booted secondary processor
[ 7781.236735] CPU2: Booted secondary processor
[ 7787.929183] CPU2: shutdown
[ 7788.137525] CPU3: shutdown
[ 7793.056632] CPU3: Booted secondary processor
[ 7793.866764] CPU2: Booted secondary processor
[ 7794.919095] CPU2: shutdown
[ 7794.992459] CPU3: shutdown
[ 7796.476654] CPU3: Booted secondary processor
[ 7796.611715] CPU2: Booted secondary processor
[ 7797.953062] CPU2: shutdown
[ 7800.286813] CPU2: Booted secondary processor
[ 7801.156799] CPU1: Booted secondary processor
[ 7802.247271] CPU1: shutdown
[ 7804.089502] CPU2: shutdown
[ 7819.486792] CPU2: Booted secondary processor
[ 6818.836746] CPU2: Booted secondary processor
[ 6960.166681] CPU2: Booted secondary processor


or only 1 core on System Monitor.
System monitor when loads count the number of CPU's, if some of them aren't enabled to save power, it will not display it. It doesn't refresh the amount of CPU's while running.

Its an expected behave, that log above tells us that CPU's aren't in use and being shutdown, also when needed you can see them booting up.

If you want to disable that behave you can set the CPU governor to performance, that guy will leave all the CPU's enabled all the time!

Code: Select all
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor


This will stop that behave and leave all the CPU's online.

if you want to keep this on reboots:
edit /etc/init.d/ondemand

and change the line echo -n ondemand > $CPUFREQ
to echo -n performance > $CPUFREQ
mdrjr
Site Admin
 
Posts: 11695
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby helmutkemper » Mon Feb 25, 2013 4:34 am

[english] to install frenquency system monitor and controll number of cores active
[português] os comandos abaixo permitem instalar o monitor de freqüência da cpu, permitindo controlar a quantidade de cores ativos.

sudo add-apt-repository ppa:artfwo/ppa
sudo apt-get update
sudo apt-get install indicator-cpufreq
sudo reboot
User avatar
helmutkemper
 
Posts: 35
Joined: Mon Feb 25, 2013 2:13 am
languages_spoken: english
ODROIDs: ODROID-U2

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby triki001 » Thu May 16, 2013 12:26 am

Hi,

Could you explain me how can I do to add this bash command in android?

Thank you very much!
triki001
 
Posts: 11
Joined: Mon May 06, 2013 8:35 pm
languages_spoken: english, spanish
ODROIDs: ODROID-U2, ODROID-X2

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby mdrjr » Thu May 16, 2013 1:07 am

triki001 wrote:Hi,

Could you explain me how can I do to add this bash command in android?

Thank you very much!


Download one of those apps in the Play Store that run scripts.. and run the code above.

Also setcpu on play does that very well too.
mdrjr
Site Admin
 
Posts: 11695
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby triki001 » Thu May 16, 2013 4:28 pm

Hi,

Sorry but in the last post, what I really want to ask is how to configure Android to be able to run the command line "echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" during the "init" procedure. If I connect to Odroid through serial port, I can execute this line and it works but it's a bit boring to write this line each time I boot up the board...

Thank you very much.
triki001
 
Posts: 11
Joined: Mon May 06, 2013 8:35 pm
languages_spoken: english, spanish
ODROIDs: ODROID-U2, ODROID-X2

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby Matt » Thu May 16, 2013 4:43 pm

triki001 wrote:Hi,

Sorry but in the last post, what I really want to ask is how to configure Android to be able to run the command line "echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" during the "init" procedure. If I connect to Odroid through serial port, I can execute this line and it works but it's a bit boring to write this line each time I boot up the board...

Thank you very much.


There is an app in the Google Play store called "SetCPU", and another called "No-Frills CPU Control". Both of them allow you to change the CPU Governor and Frequency settings (min/max frequencies, etc). In addition to allowing to set those options, they both allow you to set them at boot, every boot. Basically all these apps do is provide a GUI for modifying these files and SetCPU adds the ability to trigger changes to those files automatically when certain conditions are met (AC power connected, low battery, screen locked, etc).

I would recommend that you use one of those programs to handle setting the governor, because in order to run a script at boot you either have to edit one of the init scripts (which requires you to take the system image apart, modify it, and put it back together again... this is a lot of trouble and takes forever to do) oryou have to use an app that will run scripts on boot... and if you are using an app to run a script on boot, you might as well be using SetCPU, since that is all SetCPU is really doing.
ODROID Boards: U2, X2, XU+E rev.2
Accessories: VU, Smart Power, 13" LCD Kit (for the X2)
User avatar
Matt
 
Posts: 576
Joined: Tue Feb 26, 2013 4:57 pm
Location: Charlottesville, VA, USA
languages_spoken: English
ODROIDs: X2, U2, XU+E rev.2, Smart Power

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby triki001 » Thu May 16, 2013 8:57 pm

Matt wrote:
triki001 wrote:Hi,

Sorry but in the last post, what I really want to ask is how to configure Android to be able to run the command line "echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" during the "init" procedure. If I connect to Odroid through serial port, I can execute this line and it works but it's a bit boring to write this line each time I boot up the board...

Thank you very much.


There is an app in the Google Play store called "SetCPU", and another called "No-Frills CPU Control". Both of them allow you to change the CPU Governor and Frequency settings (min/max frequencies, etc). In addition to allowing to set those options, they both allow you to set them at boot, every boot. Basically all these apps do is provide a GUI for modifying these files and SetCPU adds the ability to trigger changes to those files automatically when certain conditions are met (AC power connected, low battery, screen locked, etc).

I would recommend that you use one of those programs to handle setting the governor, because in order to run a script at boot you either have to edit one of the init scripts (which requires you to take the system image apart, modify it, and put it back together again... this is a lot of trouble and takes forever to do) oryou have to use an app that will run scripts on boot... and if you are using an app to run a script on boot, you might as well be using SetCPU, since that is all SetCPU is really doing.


Hi Matt,

First of all, thank you for your anwser :)

Finally, what I've done is recompile the kernel enabling the CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE and that's all!

Thank you very much!
triki001
 
Posts: 11
Joined: Mon May 06, 2013 8:35 pm
languages_spoken: english, spanish
ODROIDs: ODROID-U2, ODROID-X2

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby Matt » Fri May 17, 2013 12:24 pm

That works, too! :)
ODROID Boards: U2, X2, XU+E rev.2
Accessories: VU, Smart Power, 13" LCD Kit (for the X2)
User avatar
Matt
 
Posts: 576
Joined: Tue Feb 26, 2013 4:57 pm
Location: Charlottesville, VA, USA
languages_spoken: English
ODROIDs: X2, U2, XU+E rev.2, Smart Power

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby jesus22 » Sat Jul 06, 2013 11:27 pm

Hello,

I want to enable all four cores, all the time on my Odroid-X2
I just installed the latest xubuntu build (from this link).
Specifically, this file: xubuntu-13.04-desktop-armhf_odroidx2_20130429_with_LCD.img.xz

I was able to get it up and running perfectly on my Odroid-X2.

In the command line, if I type uname -a I get back
Linux odroid 3.0.75-odroidx2 #6 SMP Mon Apr 29 10:54:21 KST 2013 armv7l armv7l armv7l GNU/Linux

======
Following the instructions below:
mdrjr wrote:
Code: Select all
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor


This will stop that behave and leave all the CPU's online.

if you want to keep this on reboots:
edit /etc/init.d/ondemand

and change the line echo -n ondemand > $CPUFREQ
to echo -n performance > $CPUFREQ

I am able to open up the file /etc/init.d/ondemand

Yet when I search for $CPUFREQ, I only find two lines that have that.
Neither of those lines are like the ones posted here.

So I am not sure what to modify.

Any thoughts?
I know the forum member above me said he recompiled the kernel... yet that flies above my head.

Any idea what I can do to change this?

Thank you!
jesus22
 
Posts: 18
Joined: Wed Mar 13, 2013 9:54 am
languages_spoken: english
ODROIDs: Odroid-X2

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby jesus22 » Sat Jul 06, 2013 11:28 pm

More info:

Inside the /etc/init.d/ondemand file I have:

Code: Select all
        for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
        do
                [ -f $CPUFREQ ] || continue
                echo -n $GOVERNOR > $CPUFREQ
        done


And if I run cat /proc/cpuinfo, I get back:
Code: Select all
root@odroid:~# cat /proc/cpuinfo
Processor       : ARMv7 Processor rev 0 (v7l)
processor       : 0
BogoMIPS        : 1992.29

processor       : 1
BogoMIPS        : 1992.29

processor       : 2
BogoMIPS        : 1992.29

processor       : 3
BogoMIPS        : 1992.29

Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc09
CPU revision    : 0

Hardware        : ODROIDX2
Revision        : 0000
Serial          : 0000000000000000
jesus22
 
Posts: 18
Joined: Wed Mar 13, 2013 9:54 am
languages_spoken: english
ODROIDs: Odroid-X2

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby Matt » Sun Jul 07, 2013 3:54 am

Code: Select all
        for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
        do
                [ -f $CPUFREQ ] || continue
                echo -n $GOVERNOR > $CPUFREQ
        done


What you have here is a variable named "$GOVERNOR" that is being written to /sys/devices/system/cpu/cpu{0, 1, 2, & 3}/cpufreq/scaling_governor. There are four cores, and each one has this entry in the sysfs filesystem. The reason that we are saving a variable to the governors is because it allows you to change the value of the governor near the beginning of the file so that you don't have to dig through the file to find the little bit of code that does it.

What you should do is look near the top of the file for a line that looks like:
Code: Select all
GOVERNOR='ondemand'


That is what you should change to 'performance'. The problem I see happening, though, is that I believe the GOVERNOR variable is set to performance by default in the xubuntu image.

The performance governor will use all four cores, and it will never downclock the cores to save power. BUT, it doesn't always keep those cores running, from what I have seen. I'm not sure there is a way to force the kernel to keep all four cores running all the time... It's possible that you could disable the Samsung DVFS (I think that is the acronym?) kernel config and recompile, but there are other sections of kernel code that rely on the Samsung DVFS, and I'm not sure if those bits of code are important or not... I guess it couldn't hurt anything to try. You might have to select a different processor scheduler, and I'm not sure one exists that is compatible with the Exynos SoCs... There is a generic DVFS in the kernel config, and it's possible that one of the four options causes the standard "all on, highest frequency" behavior expected of old X86 chips.
ODROID Boards: U2, X2, XU+E rev.2
Accessories: VU, Smart Power, 13" LCD Kit (for the X2)
User avatar
Matt
 
Posts: 576
Joined: Tue Feb 26, 2013 4:57 pm
Location: Charlottesville, VA, USA
languages_spoken: English
ODROIDs: X2, U2, XU+E rev.2, Smart Power

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby jesus22 » Sun Jul 07, 2013 9:34 am

Hello,

Thank you for taking the time to explain it Matt!
Very much appreciated! :)

I am going to try and modify the GOVERNOR='ondemand' variable to read
GOVERNOR='performance'

And report back.

Thanks to everyone in these forums!

For reference: The reason I want to turn all of them ON is that I am using ffmpeg.
And I noticed, I get artifacts the first frames, if the cores have to be turned ON.
Versus, if I have them turned ON all the time, I don't get such artifacts in the finished video.

I will update my results.
Thank again
jesus22
 
Posts: 18
Joined: Wed Mar 13, 2013 9:54 am
languages_spoken: english
ODROIDs: Odroid-X2

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby sert00 » Tue Jul 09, 2013 4:49 am

Being this SoC born and created for mobile battery powered devices i think it-s right permit the cpu hotplugging,but we use this board always connected to AC and with this use have all core always on is good.
The only strange thing is in past months i noticed that benchmarks,especially on android,gave best scores with ondemand or interactive governors,for example min 1Ghz- max 2 Ghz rather than Performance min-max 2Ghz.It seems that scaling and ramping from a inferior to superior frequencies give best results..but probably it doesn-t reflect the real use but is only true on benchmarks and with apps coded with in mind SoC with scaling abilities.
Last edited by sert00 on Tue Jul 09, 2013 8:01 pm, edited 1 time in total.
2x Odroid-U2
2x Odroid-XU-E
Odroid-U3
Odroid-C1+
Odroid-XU4
Lcd touch panel 10.1"
....and many of the goodies available....
User avatar
sert00
 
Posts: 745
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: ODROID-U2*2__ODROID-U3__ODROID-XU-E__ODROID-XU-Ebeta__ODROID-C1__ODROID-XU4

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby Matt » Tue Jul 09, 2013 12:21 pm

I would prefer have all four processors on all the time, but the frequencies scaling based on load rather than the frequency staying at max and the number of cores scaling like the performance governor. Unfortunately, that doesn't seem to be an option. It would have to be faster to scale a frequency than it is to start a CPU core, then move the thread over to that core. With frequency scaling, you would only have to deal with the latency of the bump in frequency rather than the latency involved in starting up a dead core and then moving the thread over to that core (unless all cores' instructions and data are maintained in shared execute and data buffers).

In any case, I like the idea of keeping the lowest amount of power going to the CPU as is possible while keeping performance high rather than just running a high level of power through the CPU for the purpose of avoiding a slight bit of latency from time to time. I don't see any reason to waste that much power overnight or shortening the life of the CPU running higher voltage levels than needed when my X2 is doing nothing more than collecting more uptime. I'd really like to see a governor that behaved similarly to the default "Enhanced Intel SpeedStep" governor found on the Sandy & Ivy Bridge and Haswell processors.

Does anyone know if the userspace governor is capable of allowing a program to start and stop processor cores? If it can, I'd love to try to come up with a script or program that can implement a governor myself.
ODROID Boards: U2, X2, XU+E rev.2
Accessories: VU, Smart Power, 13" LCD Kit (for the X2)
User avatar
Matt
 
Posts: 576
Joined: Tue Feb 26, 2013 4:57 pm
Location: Charlottesville, VA, USA
languages_spoken: English
ODROIDs: X2, U2, XU+E rev.2, Smart Power

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby sert00 » Tue Jul 09, 2013 8:04 pm

<Great explanation Matt!
For my understanding,the userspace governor doesn't allow a program to interfere with frequencies,but go only with what the users set before as min\max...but i could be wrong.
2x Odroid-U2
2x Odroid-XU-E
Odroid-U3
Odroid-C1+
Odroid-XU4
Lcd touch panel 10.1"
....and many of the goodies available....
User avatar
sert00
 
Posts: 745
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: ODROID-U2*2__ODROID-U3__ODROID-XU-E__ODROID-XU-Ebeta__ODROID-C1__ODROID-XU4

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby jorricks » Thu Aug 15, 2013 2:56 am

Eay guys,

I have an ODROID-u2 and as the tutorial didn't work I don't know what to do xD..
This is what I get:
Code: Select all
 
$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
performance
performance
performance


Does this mean I already have them all on performance?
jorricks
 
Posts: 48
Joined: Thu Aug 15, 2013 2:36 am
languages_spoken: english
ODROIDs: ODROID-U2

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby mdrjr » Thu Aug 15, 2013 3:59 am

correct :) no scaling or cpu dvfs with performance
mdrjr
Site Admin
 
Posts: 11695
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby Vort » Tue Jan 30, 2018 10:50 pm

mdrjr wrote:
Code: Select all
[ 7754.974614] CPU2: shutdown
[ 7755.122554] CPU3: shutdown
[ 7758.026593] CPU3: Booted secondary processor
[ 7781.236735] CPU2: Booted secondary processor
[ 7787.929183] CPU2: shutdown
[ 7788.137525] CPU3: shutdown
[ 7793.056632] CPU3: Booted secondary processor
[ 7793.866764] CPU2: Booted secondary processor
[ 7794.919095] CPU2: shutdown
[ 7794.992459] CPU3: shutdown
[ 7796.476654] CPU3: Booted secondary processor
[ 7796.611715] CPU2: Booted secondary processor
[ 7797.953062] CPU2: shutdown
[ 7800.286813] CPU2: Booted secondary processor
[ 7801.156799] CPU1: Booted secondary processor
[ 7802.247271] CPU1: shutdown
[ 7804.089502] CPU2: shutdown
[ 7819.486792] CPU2: Booted secondary processor
[ 6818.836746] CPU2: Booted secondary processor
[ 6960.166681] CPU2: Booted secondary processor


Yes the same here on my U3 with Ubuntu 14.04 LTS Server.

But when I filter out these lines from the dmesg output there's nothing else in it:
Code: Select all
$ dmesg | grep -v CPU2 | grep -v CPU3
$

Does this mean there are no any other kernel messages or all the rest is flushed by those?
I expect to hear something else from the kernel :?
:D
Vort
 
Posts: 153
Joined: Fri Nov 22, 2013 10:04 pm
languages_spoken: english

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby odroid » Wed Jan 31, 2018 10:48 am

What is your current CPU governor?
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby Vort » Wed Jan 31, 2018 5:31 pm

It's ondemand and I'd like to stay with it:
Code: Select all
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
ondemand
$


This is not a big problem for me.
All I am asking about is "Is it normal if there are no any other kernel messages than the two cited above?".
dmesg reports are for approximately two days.

System load is not high, see the welcome ssh logging message:
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.8.13.30 armv7l)

* Documentation: https://help.ubuntu.com/

System information as of Tue Jan 30 15:41:16 EET 2018

System load: 0.83 Processes: 82
Usage of /: 33.4% of 3.00GB Users logged in: 1
Memory usage: 11% IP address for eth0: * * * *
Swap usage: 0%

Thank you!
Last edited by Vort on Sat Feb 03, 2018 11:51 pm, edited 2 times in total.
Vort
 
Posts: 153
Joined: Fri Nov 22, 2013 10:04 pm
languages_spoken: english

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby odroid » Wed Jan 31, 2018 5:38 pm

Since the U3 was retired a couple of years ago, I can't recall the CPU hot-plug characteristics. :(
What happens if you change the CPU governor to performance?
User avatar
odroid
Site Admin
 
Posts: 29098
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby Vort » Wed Jan 31, 2018 5:48 pm

Switched right now to it
Code: Select all
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance


and the dmesg shows only these two kernel messages

[702290.373894] CPU2: Booted secondary processor
[702292.478431] CPU2: shutdown
[702812.675237] CPU2: Booted secondary processor
[702813.275235] CPU3: Booted secondary processor
[702827.579977] CPU3: shutdown
[702828.784675] CPU2: shutdown
[702992.675794] CPU2: Booted secondary processor

Filtered:
Code: Select all
# dmesg | grep -v CPU2 | grep -v CPU3
#



Again this is not a big problem for me, just curious about :)
Vort
 
Posts: 153
Joined: Fri Nov 22, 2013 10:04 pm
languages_spoken: english

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby meveric » Wed Jan 31, 2018 5:50 pm

Vort wrote:All I am asking about is "Is it normal if there are no any other kernel messages than the two cited above?".

This really depends on what you do with the ODROID.

The ODROID U3 was a very stable board, and in most cases the dmesg could stay completely quiet if you there's not much going on:
Code: Select all
[   32.977119] mali-utgard mali-utgard.0: start latency exceeded, new value 500 ns
[   36.722023] mali-utgard mali-utgard.0: stop latency exceeded, new value 875 ns
[   41.245535] mali-utgard mali-utgard.0: start latency exceeded, new value 542 ns
[   41.247298] mali-utgard mali-utgard.0: state restore latency exceeded, new value 58083 ns
[ 1300.016772] mali-utgard mali-utgard.0: stop latency exceeded, new value 1000 ns
[ 1786.020055] mali-utgard mali-utgard.0: state save latency exceeded, new value 31167 ns
[13534.361188] usb 1-3.3: USB disconnect, device number 5
[13546.557564] smsc95xx 1-2:1.0 eth0: link down
[13616.000237] CIFS VFS: Server 192.168.0.35 has not responded in 120 seconds. Reconnecting...
[3405090.813079] usb 1-3.1: new high-speed USB device number 6 using s5p-ehci
[3405090.919204] usb 1-3.1: New USB device found, idVendor=05c6, idProduct=6764
[3405090.920599] usb 1-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[3405090.928079] usb 1-3.1: Product: A0001
[3405090.931873] usb 1-3.1: Manufacturer: OnePlus
[3405090.936322] usb 1-3.1: SerialNumber: b64b4cf7
[3439755.417584] usb 1-3.1: USB disconnect, device number 6
[3493385.460464] usb 1-3.1: new high-speed USB device number 7 using s5p-ehci
[3493385.566589] usb 1-3.1: New USB device found, idVendor=05c6, idProduct=6764
[3493385.567992] usb 1-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[3493385.575479] usb 1-3.1: Product: A0001
[3493385.579284] usb 1-3.1: Manufacturer: OnePlus
[3493385.583719] usb 1-3.1: SerialNumber: b64b4cf7
[3527475.353593] usb 1-3.1: USB disconnect, device number 7
[3571253.981723] usb 1-3.1: new high-speed USB device number 8 using s5p-ehci
[3571254.087973] usb 1-3.1: New USB device found, idVendor=05c6, idProduct=6764
[3571254.089370] usb 1-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[3571254.096854] usb 1-3.1: Product: A0001
[3571254.100645] usb 1-3.1: Manufacturer: OnePlus
[3571254.105095] usb 1-3.1: SerialNumber: b64b4cf7
[3621729.270978] smsc95xx 1-2:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[3621729.275081] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[3634900.121605] usb 1-3.1: USB disconnect, device number 8
[3636859.589982] smsc95xx 1-2:1.0 eth0: link down
[6283957.270365] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[6283957.272171] smsc95xx 1-2:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1


If you check the output of one of my U3 you see in the timestamps that there's really nothing going on on it (especially since that one is just sitting there idling).

I have another U3 that is constantly doing heavy network traffic, here I see tons of:

Code: Select all
[8333094.242085] net_ratelimit: 50 callbacks suppressed
[8333094.242144] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333118.595306] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333119.784463] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333119.843577] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333119.845198] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333124.534809] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333130.309937] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333130.310671] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333130.316866] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333130.537675] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333138.497403] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333138.498046] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333138.504405] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333138.510635] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333138.517026] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333138.523111] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333138.529404] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333138.535627] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333138.541782] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333138.548008] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333245.168332] net_ratelimit: 22769 callbacks suppressed
[8333245.168393] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped
[8333245.781975] smsc95xx 1-2:1.0 eth0: kevent 2 may have been dropped


so depending on what you ODROID does it might not talk at all.
Also please keep in mind that "dmesg" only gives so much lines back.. it will not give the ENTIRE log, but only like the last 1000 lines or so as it is an in memory log.
And if your dmesg is spammed with messages about CPU on CPU off all the time due to the governor (which is not a problem) then there might just not be more than that in the log in the last 1000 lines.
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.
User avatar
meveric
 
Posts: 9452
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

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby Vort » Wed Jan 31, 2018 6:09 pm

meveric wrote:
Vort wrote:All I am asking about is "Is it normal if there are no any other kernel messages than the two cited above?".

This really depends on what you do with the ODROID.


Thank you very much meveric, that's what I'm curious about.
My U3's Ubuntu 14.04 Server runs only one user application which is not very demanding so, considering your experience, one could assume it's normal there are not too much of kernel messages.

Meanwhile I found this solution

Getting rid of bothersome kernel "Booted secondary processor" and "shutdown" notice messages from kern.log
Top level category: LAMP ( Debian on Odroid U2 )

http://www.ahsanscorner.com/content/201 ... e-messages

and would like to try it at the next reboot since it seems systemctl is not present in Ubuntu 14.04.
Vort
 
Posts: 153
Joined: Fri Nov 22, 2013 10:04 pm
languages_spoken: english

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby meveric » Wed Jan 31, 2018 6:58 pm

systemctl is part of systemd. Systemd was not available under Ubuntu 14.04 yet.
But the guide should work nontheless just do a service rsyslog restart instead.
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.
User avatar
meveric
 
Posts: 9452
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

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby Vort » Wed Jan 31, 2018 8:14 pm

meveric wrote:service rsyslog restart instead.

Yes Sir! ;)

Carefully followed the instructions of that guide but till now it doesn't do the trick.
$ dmesg -T | tail -15
[Wed Jan 31 12:42:22 2018] CPU2: shutdown
[Wed Jan 31 12:45:59 2018] CPU2: Booted secondary processor
[Wed Jan 31 12:46:01 2018] CPU2: shutdown
[Wed Jan 31 12:48:43 2018] init: rsyslog main process (17007) terminated with status 1
[Wed Jan 31 12:48:43 2018] init: rsyslog main process ended, respawning

[Wed Jan 31 12:54:26 2018] CPU2: Booted secondary processor
[Wed Jan 31 12:54:27 2018] CPU3: Booted secondary processor
[Wed Jan 31 12:54:29 2018] CPU3: shutdown
[Wed Jan 31 12:54:30 2018] CPU2: shutdown
[Wed Jan 31 12:54:49 2018] CPU2: Booted secondary processor
[Wed Jan 31 12:54:50 2018] CPU2: shutdown
[Wed Jan 31 13:10:40 2018] CPU2: Booted secondary processor
[Wed Jan 31 13:10:41 2018] CPU3: Booted secondary processor
[Wed Jan 31 13:10:56 2018] CPU3: shutdown
[Wed Jan 31 13:10:56 2018] CPU2: shutdown
$


I'll try with reboot and report back but not earlier than tomorow.
Vort
 
Posts: 153
Joined: Fri Nov 22, 2013 10:04 pm
languages_spoken: english

Re: [INFO] 1 CPU only / Shutdown CPU messages

Unread postby Vort » Thu Feb 01, 2018 5:47 pm

Did several reboots (with some editing of the .conf file) and no, it doesn't work for me.
I suspect this works under systemd Debian and derivatives but not for Ubuntu 14.04.

Not a problem, I'll try to look for the kernel messaging options.

Thank you odroid and meveric!
Vort
 
Posts: 153
Joined: Fri Nov 22, 2013 10:04 pm
languages_spoken: english


Return to Ubuntu (All Linux'es)

Who is online

Users browsing this forum: No registered users and 2 guests