RKMedia performance test summary

1. To view soft links, you only need to replace the soft link library.

2、

System performance testing tools:

\\10.10.10.164\Common_Repository\DDR related tools

Rockchip Microchip's dedicated chip performance testing tool supports all RK chips.

Examples of printing performance and CPU usage indicators (rk-msch-probe_XX tool usage reference document)

$ rk-msch-probe_v1.06 -c rv1126 -f 924 & top -d 2

Modify the CPU to performance mode:

echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq

rv1126 npu fixed frequency 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 single npu function test tool:

mediaserver -S -d -c ../share/mediaserver/rv1109-uvc/camera_nv12_rga_nn_link-facelandmark.conf 

4、

Print frame rate code:

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 above, set the fixed frequency and check the frequency command (when UAC measures the CPU occupancy rate):
Check the cpu frequency: cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq
Check the supported frequency: cat /sys/devices /system/cpu/cpufreq/policy0/scaling_available_frequencies 

Fixed frequency: echo userspace > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
Set frequency 1g: echo 1008000 > /sys/devices/system/cpu/cpufreq/policy0/ scaling_setspeed


 

Guess you like

Origin blog.csdn.net/zhoudidong/article/details/107101929