1:根据进程名字杀死某一进程
ps -aux | grep feedwdt.sh |grep -v 'grep' |awk '{print $2}' | xargs kill -9
2:查看系统的默认单进程可打开的句柄数
ulimit -n
3: 查看各个进程所占用的句柄数
lsof -n|awk '{print $2}'|sort|uniq -c|sort -nr|more
4:加速视频
export CANDIDATE=$(ifconfig eth0 | grep inet | awk '{print $2}' | awk -F ":" '{print $2}')
5:查询当前系统打开的句柄数
lsof -n |awk '{print $0}'|wc -l
6:打开ftp
tcpsvd -vE 0.0.0.0 21 ftpd -w / 1>/dev/null 2>&1 &
7:查看五代CPU与NPU的频率
NPU
cat /sys/devices/platform/ffbc0000.npu/devfreq/ffbc0000.npu/cur_freq //查看NPU当前的频率
cat /sys/devices/platform/ffbc0000.npu/devfreq/ffbc0000.npu/available_frequencies //查看NPU支持的频率
echo userspace > /sys/class/devfreq/ffbc0000.npu/governor
echo 934000000 > /sys/class/devfreq/ffbc0000.npu/userspace/set_freq
CPU
cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq //查看CPU频率
cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies //查看CPU支持的频率
echo 1008000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed //设置CPU频率
查询 librknn_runtime版本:
strings /usr/lib/librknn_runtime.so | grep version
查询 NPU 驱动版本:
dmesg | grep -i galcore
查询 rknn_server 版本:
strings /usr/bin/rknn_server | grep build