Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

反馈一个BUG:在路由器上运行的时间长了以后CPU会直接吃满 #338

Open
chainofhonor opened this issue Jan 19, 2025 · 0 comments

Comments

@chainofhonor
Copy link

路由器是网件R6220 cpu是MT7621
刷了OPENWRT
运行以后,刚开始看cpu使用率都是正常的
但是过几天再看,这个进程占用的CPU就是长期占用50%[即吃满了一个核心]
但是网络啥的都没有任何问题

我是写了一个循环脚本,来让进程死掉以后自动重新运行
while [ true ]
do
wca=ps |grep udpspeeder |wc -l

    if [ $wca -lt 2 ]
    then
	/root/udpspeeder/udpspeeder.sh &

            var=`date +%Y-%m-%d_%H:%M`
            echo $var >> /root/dnsmasq/log.txt
            sleep 3
    fi

    sleep 1

done

我不确定是不是这个循环脚本造成的
但是我重启路由器以后会自动启动这个脚本,最开始的cpu占用率也是正常的

我先观察几天吧,看看是不进程重启以后就会触发这个bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant