Tuesday, August 10, 2021

Re: chromium sound handling

On Tuesday, August 10, 2021, Greg Steuck <gnezdo@openbsd.org> wrote:

> Mihai Popescu <mihscu@gmail.com> writes:
>
> > Hello,
> >
> > I am running a recent snapshot of amd64 with chromium. Whenever there is
> > sound played alone or with a video inside the chromium browser, I get
> some
> > interruptions from time to time, mostly when I scroll or the page is
> > loading something in a dynamic mode. It can be reproduced very easily.
> > Firefox is working fine.
> >
> > Do I have to do some tuning for chromium, or is it that my computer is
> too
> > slow?
>
> I tested under xmonad on a
> cpu0: Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz, 7095.28 MHz, 06-8e-0c
> inteldrm0: msi, COMETLAKE, gen 9
> inteldrm0: 3840x2160, 32bpp
>
> I watched http://youtu.be/eXjRcfw9CPQ video and scrolled the page back
> and forth. It played OK at 1440 and constantly rebuffered at 2160. The
> audio was smooth with some occasional clicks even though the video was a
> bit jerky.
>
> I saw all 4 cpus running some user time (<50%) with typical top(1)
> output being something like this:
>
> PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
> 18037 greg 10 0 834M 893M onproc/2 fsleep 31:13 129.25% chrome
> 86660 greg 46 0 222M 386M run/0 - 5:10 21.92% chrome
> 94707 greg 10 0 182M 75M onproc/2 fsleep 6:49 18.65% chrome
> 91124 greg 2 0 313M 247M sleep/2 poll 2:40 6.05% chrome
>
> I guess your machine is too slow for what chromium is doing. They run a
> bunch of different processes so having more cores should help.
>
> Thanks
> Greg



I'm not on my machine right now but I have seen this related with the video
display. A lot of times I put music then go away, after some minutes my
monitor turns off the screen, if I come back and move the mouse just so the
screen turns on again I ear my audio jump. Sometimes it just stops and have
to stop/pause song in mpd. But not related directly to mpd, have seen it
with chrome/Firefox also. Will share dmesg later when I'm on my machine.

No comments:

Post a Comment