This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/TDA2EXEVM:VSDK 中 Weston 的 CPU 利用率03_04_00_00

Guru**** 2001725 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/708669/linux-tda2exevm-cpu-utilization-for-weston-in-vsdk-03_04_00_00

器件型号:TDA2EXEVM

工具/软件:Linux

尊敬的先生:

 我曾在 VSDK 03_04_00_00主题中提出过有关 Weston 的问题:

e2e.ti.com/.../707254

 在 VSDK 03_04_00_00中使用 Weston 时、现在可以在使用单个摄像头案例8 DispDistSrc (Weston)+ Display (1920x1080 HDMI)时运行桌面外壳。

但是、当使用 Weston-flower 等普通 Weston 客户端运行演示程序时、CPU 利用率几乎为100%。

 使用相同的 Weston 配置并在 PROCESSOR-SDK-LINUK-Automotive ra7xx-EVM-03_04_00_03中使用相同的 Weston 客户端 Weston-flower、CPU 利用率低于2%。

 此问题的原因可能是什么?是否可以解决此问题?

此致、

/ckhsu

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    ckhsu、

    这是非常奇怪的、不应该发生。 这不是正常行为。

    您如何测量 CPU 使用率? 如果您使用的是 TOP、您能给我发送 TOP 的输出吗?

    此致、

    Subhajit

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的先生:
    下面是我们在顶部看到的日志。 您可能会看到、顶部本身并未占用太多 CPU 利用率、Weston-client 也不会占用太多、但大多数 CPU 利用率都在 apps.out 中

    [2018-07-13 15:05:50.214]内存:222256K 已使用,1485356K 可用,18216K 分流器,4860K 缓冲器,91524K 高速缓存
    [2018-07-13 15:05:50.229] CPU:17% usr 82% sys 0% NIC 0%闲置0% IO 0% IRQ 0% sirq
    [2018-07-13 15:05:50.229]负载平均值:0.38 0.12 0.04 3/136 796
    [2018-07-13 15:05:50.229] PID PPID 用户 STAT VSZ %VSZ %CPU 命令
    [2018-07-1315:05:50.251] 727685 root S 652m 39%96%./apps.out
    [2018-07-13 15:05:50.251] 795 1 root R 8660 1% 2%/usr/bin/weston-editor
    [2018-07-13 15:05:50.251] 793 1根 R 6088 0% 2%/usr/bin/weston-dnd
    [2018-07-13 15:05:50.267] 791 1 root S 6196 0%/usr/bin/weston-flower
    [2018-07-13 15:05:50.267] 649 644 root S 55844 3% 0% Weston --idle-time=0
    [2018-07-13 15:05:50.267] 665 649 root S 14772 1% 0%/usr/libexec/weston-desktop-shell
    [2018-07-13 15:05:50.283] 202 1 systemd- S 11992 1% 0%/lib/systemd/systemd-timesyncd
    [2018-07-13 15:05:50.283] 177 1 root S 10696 1% 0%/lib/systemd/systemd-udevd
    [2018-07-13 15:05:50.298] 102 1 root S 10244 1% 0%/lib/systemd/systemd-journald
    [2018-07-13 15:05:50.298] 661 1 root S 9760 1% 0%/usr/bin/lad_dra7xx -g -l lad.txt
    [2018-07-13 15:05:50.298] 682 674 root S 7120 0%(SD-pam)
    [2018-07-13 15:05:50.314] 674 1 root S 5204 0%/lib/systemd/systemd -用户
    [2018-07-13 15:05:50.314] 1 0 root S 4876 0%{systemd}/sbin/init
    [2018-07-13 15:05:50.314] 627 1 root S 4864 0%/bin/login --
    [2018-07-13 15:05:50.330] 399 1条消息 b S 4192 0%/usr/bin/dbus-demon --system --address=systemd:
    [2018-07-13 15:05:50.330] 621 1 systemd- S 2984 0%/lib/systemd/systemd-resolved
    [2018-07-13 15:05:50.352] 426 1 systemd- S 2676 0%/lib/systemd/systemd-networkd
    [2018-07-13 15:05:50.352] 685 627 root S 2672 0%-sh
    [2018-07-13 15:05:50.352] 644 1 root S 2668 0%{runWeston}/bin/sh /usr/bin/runWeston
    [2018-07-13 15:05:50.367] 435 1 root S 2600 0%/lib/systemd/systemd-logind

    MEM:226644K 已用、1480968K 空闲、19780K 闪存、4868K 缓冲器、93460K 已缓存
    [2018-07-13 15:05:55.261] CPU:18% USR 78%系统0% NIC 2%空闲0% IO 0% IRQ 0% sirq
    [2018-07-13 15:05:55.261]负载平均值:0.83 0.22 0.07/136 796
    [2018-07-13 15:05:55.261] PID PPID 用户 STAT VSZ %VSZ %CPU 命令
    [2018-07-1315:05:55.268] 727685 root S 652m 39%94%./apps.out
    [2018-07-13 15:05:55.268] 795 1 root S 10232 1%/usr/bin/weston-editor
    [2018-07-13 15:05:55.268] 793 1 root S 7268 0% 1%/usr/bin/weston-dnd
    [2018-07-13 15:05:55.287] 649 644 root S 59552 3% 0% Weston --idle-time=0
    [2018-07-13 15:05:55.287] 796 727 root R 2372 0%顶部
    [2018-07-13 15:05:55.287] 14 2根软件0%0%[kworker/0:1]
    [2018-07-13 15:05:55.287] 665 649 root S 14772 1% 0%/usr/libexec/weston-desktop-shell
    [2018-07-13 15:05:55.302] 202 1 systemd- S 11992 1% 0%/lib/systemd/systemd-timesyncd
    [2018-07-13 15:05:55.302] 177 1 root S 10696 1% 0%/lib/systemd/systemd-udevd
    [2018-07-13 15:05:55.318] 102 1 root S 10244 1% 0%/lib/systemd/systemd-journald
    [2018-07-13 15:05:55.318] 661 1 root S 9760 1% 0%/usr/bin/lad_dra7xx -g -l lad.txt
    [2018-07-1315:05:55.318] 682 674 root S 71200%(SD-pam)
    [2018-07-13 15:05:55.334] 791 1 root S 6196 0%/usr/bin/weston-flower
    [2018-07-13 15:05:55.334] 674 1 root S 5204 0%/lib/systemd/systemd -用户
    [2018-07-13 15:05:55.349] 1 0 root S 4876 0%{systemd}/sbin/init
    [2018-07-13 15:05:55.349] 627 1 root S 4864 0%/bin/login --
    [2018-07-13 15:05:55.349] 399 1信息 b S 4192 0%/usr/bin/dbus-demon --system --address=systemd:
    [2018-07-13 15:05:55.368] 621 1 systemd- S 2984 0%/lib/systemd/systemd-resolved
    [2018-07-13 15:05:55.368] 426 1 systemd- S 2676 0%/lib/systemd/systemd-networkd
    [2018-07-13 15:05:55.368] 685 627 root S 2672 0%-sh

    MEM:226644K 已用、1480968K 空闲、19780K 闪存、4868K 缓冲器、93468K 缓存
    [2018-07-13 15:06:00.259] CPU:13% usr 82% sys 0% NIC 5%闲置0% IO 0% IRQ 0% sirq
    [2018-07-13 15:06:00.259]负载平均值:1.16 0.30 0.10 1/136 796
    [2018-07-13 15:06:00.259] PID PPID 用户 STAT VSZ %VSZ %CPU 命令
    [2018-07-1315:06:00.284] 727685 root S 652m 39%95%./apps.out
    [2018-07-13 15:06:00.284] 796 727 root R 2372 0% 0%顶部
    [2018-07-13 15:06:00.284] 649 644 root S 59552 3% 0% Weston --idle-time=0
    [2018-07-13 15:06:00.284] 665 649 root S 14772 1% 0%/usr/libexec/weston-desktop-shell
    [2018-07-13 15:06:00.302] 202 1 systemd- S 11992 1% 0%/lib/systemd/systemd-timesyncd
    [2018-07-13 15:06:00.302] 177 1 root S 10696 1% 0%/lib/systemd/systemd-udevd
    [2018-07-13 15:06:00.317] 102 1 root S 10244 1% 0%/lib/systemd/systemd-journald
    [2018-07-13 15:06:00.317] 795 1 root S 10232 1% 0%/usr/bin/weston-editor
    [2018-07-13 15:06:00.317] 661 1 root S 9760 1% 0%/usr/bin/lad_dra7xx -g -l lad.txt
    [2018-07-13 15:06:00.333] 793 1 root S 7268 0%/usr/bin/weston-dnd
    [2018-07-1315:06:00.333] 682 674 root S 71200%(SD-pam)
    [2018-07-13 15:06:00.333] 791 1 root S 6196 0%/usr/bin/weston-flower
    [2018-07-13 15:06:00.349] 674 1 root S 5204 0%/lib/systemd/systemd -用户
    [2018-07-13 15:06:00.349] 1 0 root S 4876 0%{systemd}/sbin/init
    [2018-07-13 15:06:00.364] 627 1 root S 4864 0%/bin/login --
    [2018-07-13 15:06:00.364] 399 1信息 b S 4192 0%/usr/bin/dbus-demon --system --address=systemd:
    [2018-07-13 15:06:00.364] 621 1 systemd- S 2984 0%/lib/systemd/systemd-resolved
    [2018-07-13 15:06:00.380] 426 1 systemd- S 2676 0%/lib/systemd/systemd-networkd
    [2018-07-13 15:06:00.380] 685 627 root S 2672 0%-sh
    [2018-07-13 15:06:00.380] 644 1 root S 2668 0%{runWeston}/bin/sh /usr/bin/runWeston

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    ckhsu、

    apps.out 运行大量线程。 您能否找出是哪个线程导致了这个 CPU 负载? 此外、当 CPU 负载较高时、您能否看到 UI 正在变化? 您可以使用鼠标在屏幕中拖动 Weston 客户端以更改 UI。

    此致、

    Subhajit