RKMedia性能测试总结

沉默小金 2020-11-17 15:41:28 8810

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

声明:本文内容由易百纳平台入驻作者撰写,文章观点仅代表作者本人,不代表易百纳立场。如有内容侵权或者其他问题,请联系本站进行删除。
红包 1556 456 评论 打赏
评论
1个
内容存在敏感词
手气红包
  • 斌斌 2023-11-22 09:40:20
    回复
    rk-msch-probe_XX工具哪里可以获取
相关专栏
置顶时间设置
结束时间
删除原因
  • 广告/SPAM
  • 恶意灌水
  • 违规内容
  • 文不对题
  • 重复发帖
打赏作者
易百纳技术社区
沉默小金
您的支持将鼓励我继续创作!
打赏金额:
¥1易百纳技术社区
¥5易百纳技术社区
¥10易百纳技术社区
¥50易百纳技术社区
¥100易百纳技术社区
支付方式:
微信支付
支付宝支付
易百纳技术社区微信支付
易百纳技术社区
打赏成功!

感谢您的打赏,如若您也想被打赏,可前往 发表专栏 哦~

举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

审核成功

发布时间设置
发布时间:
是否关联周任务-专栏模块

审核失败

失败原因
备注
拼手气红包 红包规则
祝福语
恭喜发财,大吉大利!
红包金额
红包最小金额不能低于5元
红包数量
红包数量范围10~50个
余额支付
当前余额:
可前往问答、专栏板块获取收益 去获取
取 消 确 定

小包子的红包

恭喜发财,大吉大利

已领取20/40,共1.6元 红包规则

    易百纳技术社区