<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic meta-webkit uses heigher CPU usage even after using HW Acceleration on imx8m mini quad in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/meta-webkit-uses-heigher-CPU-usage-even-after-using-HW/m-p/1438151#M188922</link>
    <description>&lt;P&gt;Hi, I am using imx8m mini quad hardware with the latest BSP 5.10.72 - hard knot.&lt;/P&gt;&lt;P&gt;I have built a meta-webkit below are my configurations in local.conf&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;IMAGE_INSTALL_append = " wpewebkit cog"&lt;BR /&gt;PREFERRED_PROVIDER_virtual/wpebackend = "wpebackend-fdo"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After booting the system I am running the below command&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;cog --enable-media-stream=1 --platform=wl --set-permissions=all --enable-accelerated-2d-canvas=1 --enable-webgl=1 &lt;A href="https://browserbench.org/JetStream/" target="_blank" rel="noopener"&gt;https://browserbench.org/JetStream/&lt;/A&gt; &amp;amp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here, Obersrvations are,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;CPU usage goes from 90 to 200 % - CPU in performance mode ( by scaling governor )&lt;/LI&gt;&lt;LI&gt;VPUDEC log appearing in dmesg validating VPU being used for decode operation&lt;/LI&gt;&lt;LI&gt;gputop shows activities&lt;/LI&gt;&lt;LI&gt;In gputop in the DMA engine window, it shows DMA engine transactions&lt;/LI&gt;&lt;LI&gt;Benchmark shows the worst performance in jetstream2 ( scoring 17.842 )&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;In youtube, 720P achieved 30/60 FPS smooth video play with no artifacts, &lt;STRONG&gt;however higher CPU usage seems not justifiable.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;gst-launch-1.0 -v filesrc location=/home/root/output.mp4 ! qtdemux name=dd.video_0 ! queue ! h264parse ! v4l2h264dec ! imxvideoconvert_g2d ! queue ! glimagesink &amp;amp;&lt;BR /&gt;&lt;BR /&gt;The above pipeline gives &lt;STRONG&gt;13% CPU&lt;/STRONG&gt; usage conforming HW acceleration enabled from BSP and being used.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Further attached are the logs gstreamer logs and dot files when using cog as per the &lt;A href="https://github.com/Igalia/meta-webkit/wiki/Providing-useful-GStreamer-Zero-copy-issue-reports" target="_self"&gt;guidance link&lt;/A&gt; in log.zip - &lt;A href="https://github.com/Igalia/meta-webkit/files/8395537/log.zip" target="_blank" rel="noopener"&gt;log.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;From the same link ,&lt;/P&gt;&lt;PRE&gt;gst-play-1.0 --videosink glimagesink /path/to/video.mp4&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Also works smooth and CPU usage is near about &lt;STRONG&gt;30-35%&lt;/STRONG&gt; for gst-play and &lt;STRONG&gt;11%&lt;/STRONG&gt; for wayland&lt;BR /&gt;&lt;BR /&gt;Attached are the logs for VPU usage while running the above gst command - &lt;A href="https://github.com/Igalia/meta-webkit/files/8395568/vpu_log.txt" target="_blank" rel="noopener"&gt;vpu_log.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2022 06:07:43 GMT</pubDate>
    <dc:creator>r_trivedi123</dc:creator>
    <dc:date>2022-04-04T06:07:43Z</dc:date>
    <item>
      <title>meta-webkit uses heigher CPU usage even after using HW Acceleration on imx8m mini quad</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/meta-webkit-uses-heigher-CPU-usage-even-after-using-HW/m-p/1438151#M188922</link>
      <description>&lt;P&gt;Hi, I am using imx8m mini quad hardware with the latest BSP 5.10.72 - hard knot.&lt;/P&gt;&lt;P&gt;I have built a meta-webkit below are my configurations in local.conf&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;IMAGE_INSTALL_append = " wpewebkit cog"&lt;BR /&gt;PREFERRED_PROVIDER_virtual/wpebackend = "wpebackend-fdo"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After booting the system I am running the below command&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;cog --enable-media-stream=1 --platform=wl --set-permissions=all --enable-accelerated-2d-canvas=1 --enable-webgl=1 &lt;A href="https://browserbench.org/JetStream/" target="_blank" rel="noopener"&gt;https://browserbench.org/JetStream/&lt;/A&gt; &amp;amp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here, Obersrvations are,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;CPU usage goes from 90 to 200 % - CPU in performance mode ( by scaling governor )&lt;/LI&gt;&lt;LI&gt;VPUDEC log appearing in dmesg validating VPU being used for decode operation&lt;/LI&gt;&lt;LI&gt;gputop shows activities&lt;/LI&gt;&lt;LI&gt;In gputop in the DMA engine window, it shows DMA engine transactions&lt;/LI&gt;&lt;LI&gt;Benchmark shows the worst performance in jetstream2 ( scoring 17.842 )&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;In youtube, 720P achieved 30/60 FPS smooth video play with no artifacts, &lt;STRONG&gt;however higher CPU usage seems not justifiable.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;gst-launch-1.0 -v filesrc location=/home/root/output.mp4 ! qtdemux name=dd.video_0 ! queue ! h264parse ! v4l2h264dec ! imxvideoconvert_g2d ! queue ! glimagesink &amp;amp;&lt;BR /&gt;&lt;BR /&gt;The above pipeline gives &lt;STRONG&gt;13% CPU&lt;/STRONG&gt; usage conforming HW acceleration enabled from BSP and being used.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Further attached are the logs gstreamer logs and dot files when using cog as per the &lt;A href="https://github.com/Igalia/meta-webkit/wiki/Providing-useful-GStreamer-Zero-copy-issue-reports" target="_self"&gt;guidance link&lt;/A&gt; in log.zip - &lt;A href="https://github.com/Igalia/meta-webkit/files/8395537/log.zip" target="_blank" rel="noopener"&gt;log.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;From the same link ,&lt;/P&gt;&lt;PRE&gt;gst-play-1.0 --videosink glimagesink /path/to/video.mp4&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Also works smooth and CPU usage is near about &lt;STRONG&gt;30-35%&lt;/STRONG&gt; for gst-play and &lt;STRONG&gt;11%&lt;/STRONG&gt; for wayland&lt;BR /&gt;&lt;BR /&gt;Attached are the logs for VPU usage while running the above gst command - &lt;A href="https://github.com/Igalia/meta-webkit/files/8395568/vpu_log.txt" target="_blank" rel="noopener"&gt;vpu_log.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 06:07:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/meta-webkit-uses-heigher-CPU-usage-even-after-using-HW/m-p/1438151#M188922</guid>
      <dc:creator>r_trivedi123</dc:creator>
      <dc:date>2022-04-04T06:07:43Z</dc:date>
    </item>
  </channel>
</rss>

