What's new

INIT process FULL CPU load

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

maurer

Regular Contributor
Hi,

I'm running john927's fork v12 (latest) on my good old rt-n16 and experiencing 100% CPU load:
Mem: 74200K used, 52252K free, 0K shrd, 13912K buff, 23364K cached
CPU: 4% usr 93% sys 0% nic 0% idle 0% io 0% irq 2% sirq
Load average: 1.08 1.08 0.94 4/98 762
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
1 0 mau R 2492 2% 99% /sbin/init noinitrd

mau@RT-N16:/tmp/home/root# cat /proc/1/status
Name: init
State: R (running)
SleepAVG: 0%
Tgid: 1
Pid: 1
PPid: 0
TracerPid: 0
Uid: 0 0 0 0
Gid: 0 0 0 0
FDSize: 32
Groups:
VmPeak: 2492 kB
VmSize: 2460 kB
VmLck: 0 kB
VmHWM: 1060 kB
VmRSS: 1060 kB
VmData: 628 kB
VmStk: 84 kB
VmExe: 900 kB
VmLib: 776 kB
VmPTE: 16 kB
Threads: 1
SigQ: 2/1023
SigPnd: 00000000000000000000000000000000
ShdPnd: 00000000000000000000000000006000
SigBlk: 0000000000000000000000000001e007
SigIgn: 00000000000000000000000000000000
SigCgt: 00000000000000000000000000061ab8
CapInh: 0000000000000000
CapPrm: 00000000ffffffff
CapEff: 00000000fffffeff

What i've done so far:
-reboot router;
-umount usb card;
-kill my vpn processes and any other consuming process;

But the load on init remained the same

Can someone help him track down this abnormal load on my system?

Thanks
 
Last edited:
What was the previous code on the router prior to loading V12?

Have you tried doing a factory reset and reconfiguring? (Don't load a saved configuration from the router gui)
 
i was hoping to avoid a factory default :) already performed when downgrading from merlin's 378.50 to v11.
I've reconfigured everything manually except NAT rules that i've applied by "nvram set" from previous version.

I will try again a factory default but to be honest - i don't like it :|

thanks for your reply !
 
If you came from V11, a factory reset shouldn't be necessary. Before you do that, can you login to the router and enter

env
 
USER=mau
TERMINFO=/opt/share/terminfo
HOME=/root
SSH_TTY=/dev/pts/0
PS1=\u@\h:\w\$
LOGNAME=mau
TEMP=/opt/tmp
TERM=xterm
PATH=/opt/usr/sbin:/opt/sbin:/opt/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
TMP=/opt/tmp
SHELL=/bin/sh
PWD=/tmp/home/root
SSH_CONNECTION=10.1.1.147 49636 10.1.1.1 22
 
It looks like you have Entware/Optware/DM installed. Something may be corrupted there. Can you temporarily uninstall it and see if that resolves the problem?
 
Code:
strace -p 1

might provide some additional hints as what the init process is doing.
 
Code:
strace -p 1

might provide some additional hints as what the init process is doing.

I guess you need to install it through Entware/Optware for that (also tried other process ids)....

Code:
admin@AC68R-XXXXX:/tmp/home/root# strace -p 1
-sh: strace: not found
 
I guess you need to install it through Entware/Optware for that (also tried other process ids)....

Code:
admin@AC68R-XXXXX:/tmp/home/root# strace -p 1
-sh: strace: not found

Could be - I know it's in the source tree, but I couldn't remember if I was using that one, or installed through Entware. Should be trivial for the OP to install it since he's already setup for a repo, based on his path configuration.
 
Code:
mau@RT-N16:/tmp/home/root# strace -p 1
strace: attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted

version from entware

anyway i've found the issue - after factory defaults and reconfiguration :(...
the init was still at 100%

and the issue was...
Code:
rc_service=start_radvd
i've set rc_service= to empty and now is ok
as a conclusion ipv6 is broken for native type
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top