RKMedia性能测试总结
1、
查看软连接,只需要替换软连接的库即可
2、
系统性能测试工具:
\\10.10.10.164\Common_Repository\DDR相关工具
瑞芯微芯片专用芯片性能测试工具,支持RK全部芯片。
打印性能和cpu占用率指标示例(rk-msch-probe_XX工具使用方法参考文档)
$ rk-msch-probe_v1.06 -c rv1126 -f 924 & top -d 2
将CPU修改为性能模式:
echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq
rv1126 npu定频600:
cat /sys/devices/platform/ffbb0000.rkvenc/devfreq/ffbb0000.rkvenc/cur_freq
echo 600000000 > /sys/devices/platform/ffbc0000.npu/devfreq/ffbc0000.npu/min_freq
echo 600000000 > /sys/devices/platform/ffbc0000.npu/devfreq/ffbc0000.npu/max_freq
cat /sys/devices/platform/ffbc0000.npu/devfreq/ffbc0000.npu/cur_freq
3、
rv1126单个npu功能测试工具:
mediaserver -S -d -c ../share/mediaserver/rv1109-uvc/camera_nv12_rga_nn_link-facelandmark.conf
4、
打印帧率代码:
int64_t SystemTime2() {
struct timespec t;
t.tv_sec = t.tv_nsec = 0;
clock_gettime(CLOCK_MONOTONIC, &t);
return (int64_t)(t.tv_sec) * 1000 + t.tv_nsec / 1000000;
}
void DumpFps() {
static int mFrameCount;
static int mLastFrameCount = 0;
static int mLastFpsTime = 0;
static float mFps = 0;
mFrameCount++;
int64_t now = SystemTime2();
int64_t diff = now - mLastFpsTime;
if (diff > 500) {
mFps = ((mFrameCount - mLastFrameCount) * 1000) / diff;
mLastFpsTime = now;
mLastFrameCount = mFrameCount;
LOG("---mFps = %2.3f\n", mFps);
}
}
5、
1109上面,设置定频和查看频率的命令(UAC测算CPU占用率的时候):
查看cpu频率:cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq
查看支持的频率:cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies
定频:echo userspace > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
设置频率1g: echo 1008000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed
来源:https://blog.csdn.net/zhoudidong/article/details/107101929
- 分享
- 举报
-
斌斌 2023-11-22 09:40:20回复 举报rk-msch-probe_XX工具哪里可以获取
-
浏览量:1965次2018-10-13 15:59:14
-
浏览量:2182次2020-07-30 18:04:03
-
浏览量:3064次2017-11-28 12:33:29
-
浏览量:1941次2018-12-21 20:01:47
-
浏览量:1707次2019-12-31 16:25:11
-
浏览量:10301次2020-12-07 23:36:10
-
浏览量:1917次2018-10-19 22:26:34
-
浏览量:875次2023-01-06 11:47:57
-
浏览量:2080次2019-01-02 16:57:12
-
浏览量:5131次2020-05-08 15:46:11
-
浏览量:2091次2018-12-09 14:53:14
-
浏览量:6816次2021-01-16 15:50:24
-
浏览量:3966次2020-11-17 10:13:00
-
浏览量:4683次2021-06-28 14:52:06
-
浏览量:583次2023-09-08 10:12:29
-
浏览量:674次2023-10-26 11:54:12
-
浏览量:2507次2020-06-12 19:39:57
-
浏览量:1693次2018-12-29 14:28:16
-
浏览量:2399次2020-08-19 16:47:34
-
广告/SPAM
-
恶意灌水
-
违规内容
-
文不对题
-
重复发帖
沉默小金
感谢您的打赏,如若您也想被打赏,可前往 发表专栏 哦~
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明