Date: Fri, 07 Aug 2020 10:18:10 +0200 From: Jan Beich <jbeich@FreeBSD.org> To: "Mikhail T." <mi+t@aldan.algebra.com> Cc: gecko@freebsd.org Subject: Re: Firefox playing videos takes too much CPU Message-ID: <h7te-c1j1-wny@FreeBSD.org> In-Reply-To: <2685ecb1-5cd8-a77f-5146-eba1b37099a8@aldan.algebra.com> (Mikhail T.'s message of "Thu, 6 Aug 2020 20:38:23 -0400") References: <2685ecb1-5cd8-a77f-5146-eba1b37099a8@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Mikhail T." <mi+t@aldan.algebra.com> writes: > Hello! I noticed recently, how much CPU playing a video takes... A > firefox-process, playing a modest 1080p clip (such as this > <https://www.youtube.com/watch?v=DrJY_-BIasY>) for example, will show > in top as taking between 150-160% CPU (and mine are E5-1620 0 @ > 3.60GHz), with Xorg taking /another/ 30%. If I pause the video, > CPU-usage drops down to single-digits, so it definitely is the > playback... Try profiling e.g., "pmcstat -t firefox -P instructions -T". > If I download that same video (using youtube-dl), and give it to > mplayer, the playback will only cost about 60% CPU for the mplayer > itself -- plus 20% for the Xorg. Mplayer using the simple "x11" > video-output, nothing particularly fancy. The video card is an old > Radeon (5670/5690/5730). > > Is there a good explanation for this discrepancy? Thank you! Yours, Maybe https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203732
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?h7te-c1j1-wny>