usb cam(C270)

Linux 3.9.7

s5pv210


Camera 设置5 帧的时候,显示有些卡顿,但是cpu利用率比较低 45%左右,

Camera设置10帧的时候,显示比较流畅,感觉不到延时,cpu利用率最高%75,

但是继续提高camera的帧率,在30帧的时候,cpu占用率反而小了66%左右,


FPS 10
CPU: 44.5% usr  1.1% sys  0.0% nic 54.2% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 0.36 0.24 0.11 2/41 970
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
  967   946 0        S    32968  7.5   0 45.4 ./cam
  970   946 0        R     3036  0.6   0  0.2 top
  946     1 0        S     3036  0.6   0  0.0 -/bin/sh
    1     0 0        S     3032  0.6   0  0.0 init
  908     2 0        SW       0  0.0   0  0.0 [kworker/0:2]
    3     2 0        SW       0  0.0   0  0.0 [ksoftirqd/0]
    6     2 0        SW       0  0.0   0  0.0 [kworker/u:0]
  307     2 0        SW       0  0.0   0  0.0 [bdi-default]
  321     2 0        SW       0  0.0   0  0.0 [khubd]
    8     2 0        SW       0  0.0   0  0.0 [rcu_preempt]
    2     0 0        SW       0  0.0   0  0.0 [kthreadd]
    5     2 0        SW<      0  0.0   0  0.0 [kworker/0:0H]
    7     2 0        SW<      0  0.0   0  0.0 [kworker/u:0H]
    9     2 0        SW       0  0.0   0  0.0 [rcu_bh]
   10     2 0        SW       0  0.0   0  0.0 [rcu_sched]
   11     2 0        SW       0  0.0   0  0.0 [watchdog/0]
   12     2 0        SW<      0  0.0   0  0.0 [khelper]
   13     2 0        SW       0  0.0   0  0.0 [kdevtmpfs]
   14     2 0        SW<      0  0.0   0  0.0 [netns]
   15     2 0        SW       0  0.0   0  0.0 [kworker/u:1]

FPS 15   
Mem: 35308K used, 403156K free, 0K shrd, 156K buff, 8776K cached
CPU: 73.0% usr  1.6% sys  0.0% nic 25.2% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 0.61 0.36 0.18 2/41 974
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
  971   946 0        S    32968  7.5   0 74.3 ./cam
  974   946 0        R     3036  0.6   0  0.2 top
  946     1 0        S     3036  0.6   0  0.0 -/bin/sh
    1     0 0        S     3032  0.6   0  0.0 init
  908     2 0        SW       0  0.0   0  0.0 [kworker/0:2]
    3     2 0        SW       0  0.0   0  0.0 [ksoftirqd/0]
    6     2 0        SW       0  0.0   0  0.0 [kworker/u:0]
  307     2 0        SW       0  0.0   0  0.0 [bdi-default]
  321     2 0        SW       0  0.0   0  0.0 [khubd]
    8     2 0        SW       0  0.0   0  0.0 [rcu_preempt]
    2     0 0        SW       0  0.0   0  0.0 [kthreadd]
    5     2 0        SW<      0  0.0   0  0.0 [kworker/0:0H]
    7     2 0        SW<      0  0.0   0  0.0 [kworker/u:0H]
    9     2 0        SW       0  0.0   0  0.0 [rcu_bh]
   10     2 0        SW       0  0.0   0  0.0 [rcu_sched]
   11     2 0        SW       0  0.0   0  0.0 [watchdog/0]
   12     2 0        SW<      0  0.0   0  0.0 [khelper]
   13     2 0        SW       0  0.0   0  0.0 [kdevtmpfs]
   14     2 0        SW<      0  0.0   0  0.0 [netns]
   15     2 0        SW       0  0.0   0  0.0 [kworker/u:1]

FPS 20
CPU: 68.8% usr  1.2% sys  0.0% nic 29.9% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 0.30 0.40 0.23 1/41 984
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
  981   946 0        S    32968  7.5   0 69.8 ./cam
  984   946 0        R     3036  0.6   0  0.2 top
  946     1 0        S     3036  0.6   0  0.0 -/bin/sh
    1     0 0        S     3032  0.6   0  0.0 init
  908     2 0        SW       0  0.0   0  0.0 [kworker/0:2]
    3     2 0        SW       0  0.0   0  0.0 [ksoftirqd/0]
    6     2 0        SW       0  0.0   0  0.0 [kworker/u:0]
  307     2 0        SW       0  0.0   0  0.0 [bdi-default]
  321     2 0        SW       0  0.0   0  0.0 [khubd]
    8     2 0        SW       0  0.0   0  0.0 [rcu_preempt]
    2     0 0        SW       0  0.0   0  0.0 [kthreadd]
    5     2 0        SW<      0  0.0   0  0.0 [kworker/0:0H]
    7     2 0        SW<      0  0.0   0  0.0 [kworker/u:0H]
    9     2 0        SW       0  0.0   0  0.0 [rcu_bh]
   10     2 0        SW       0  0.0   0  0.0 [rcu_sched]
   11     2 0        SW       0  0.0   0  0.0 [watchdog/0]
   12     2 0        SW<      0  0.0   0  0.0 [khelper]
   13     2 0        SW       0  0.0   0  0.0 [kdevtmpfs]
   14     2 0        SW<      0  0.0   0  0.0 [netns]
   15     2 0        SW       0  0.0   0  0.0 [kworker/u:1]

FPS 25
Mem: 35560K used, 402904K free, 0K shrd, 156K buff, 8860K cached
CPU: 67.0% usr  1.0% sys  0.0% nic 32.0% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 0.61 0.50 0.29 2/41 988
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
  985   946 0        S    32968  7.5   0 67.7 ./cam
  988   946 0        R     3036  0.6   0  0.2 top
  946     1 0        S     3036  0.6   0  0.0 -/bin/sh
    1     0 0        S     3032  0.6   0  0.0 init
  908     2 0        SW       0  0.0   0  0.0 [kworker/0:2]
    3     2 0        SW       0  0.0   0  0.0 [ksoftirqd/0]
    6     2 0        SW       0  0.0   0  0.0 [kworker/u:0]
  307     2 0        SW       0  0.0   0  0.0 [bdi-default]
  321     2 0        SW       0  0.0   0  0.0 [khubd]
    8     2 0        SW       0  0.0   0  0.0 [rcu_preempt]
    2     0 0        SW       0  0.0   0  0.0 [kthreadd]
    5     2 0        SW<      0  0.0   0  0.0 [kworker/0:0H]
    7     2 0        SW<      0  0.0   0  0.0 [kworker/u:0H]
    9     2 0        SW       0  0.0   0  0.0 [rcu_bh]
   10     2 0        SW       0  0.0   0  0.0 [rcu_sched]
   11     2 0        SW       0  0.0   0  0.0 [watchdog/0]
   12     2 0        SW<      0  0.0   0  0.0 [khelper]
   13     2 0        SW       0  0.0   0  0.0 [kdevtmpfs]
   14     2 0        SW<      0  0.0   0  0.0 [netns]
   15     2 0        SW       0  0.0   0  0.0 [kworker/u:1]

FPS 30
Mem: 35596K used, 402868K free, 0K shrd, 156K buff, 8888K cached
CPU: 65.1% usr  1.0% sys  0.0% nic 33.8% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 0.76 0.59 0.35 2/41 992
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
  989   946 0        S    32968  7.5   0 66.1 ./cam
  992   946 0        R     3036  0.6   0  0.0 top
  946     1 0        S     3036  0.6   0  0.0 -/bin/sh
    1     0 0        S     3032  0.6   0  0.0 init
  908     2 0        SW       0  0.0   0  0.0 [kworker/0:2]
    3     2 0        SW       0  0.0   0  0.0 [ksoftirqd/0]
    6     2 0        SW       0  0.0   0  0.0 [kworker/u:0]
  307     2 0        SW       0  0.0   0  0.0 [bdi-default]
  321     2 0        SW       0  0.0   0  0.0 [khubd]
    8     2 0        SW       0  0.0   0  0.0 [rcu_preempt]
   11     2 0        SW       0  0.0   0  0.0 [watchdog/0]
    2     0 0        SW       0  0.0   0  0.0 [kthreadd]
    5     2 0        SW<      0  0.0   0  0.0 [kworker/0:0H]
    7     2 0        SW<      0  0.0   0  0.0 [kworker/u:0H]
    9     2 0        SW       0  0.0   0  0.0 [rcu_bh]
   10     2 0        SW       0  0.0   0  0.0 [rcu_sched]
   12     2 0        SW<      0  0.0   0  0.0 [khelper]
   13     2 0        SW       0  0.0   0  0.0 [kdevtmpfs]
   14     2 0        SW<      0  0.0   0  0.0 [netns]
   15     2 0        SW       0  0.0   0  0.0 [kworker/u:1]
  


Logo

更多推荐