Date: Sat, 26 Nov 2022 18:06:19 -0500 From: Paul Procacci <pprocacci@gmail.com> To: 0x1eef <0x1eef@protonmail.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: High CPU usage / high number of interrupts Message-ID: <CAFbbPuiQtNa0BeZ7X0UhjFyynhFPKFXcF6NE2CZ7ra7hCgYUnw@mail.gmail.com> In-Reply-To: <NjJeOo65XxAgvh49UV6bzpgNunj1LH1uXy1xnv5QJgjgZfc0xtbKs7PBJb6Ub9LJaPwBKlf94hcsl_Qqt5Yrh_2-BuX5j4MjAdwSGwWEMs4=@protonmail.com> References: <NjJeOo65XxAgvh49UV6bzpgNunj1LH1uXy1xnv5QJgjgZfc0xtbKs7PBJb6Ub9LJaPwBKlf94hcsl_Qqt5Yrh_2-BuX5j4MjAdwSGwWEMs4=@protonmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000005c678205ee67b03a Content-Type: text/plain; charset="UTF-8" Hey, Not sure of the problem, but I don't see the correlation between Chrome and any usb driver. Out of curiosity, have you pulled a usb device one by one until the interrupts disappear? I'd be curious to know which device is slamming the system. Thanks, Paul On Sat, Nov 26, 2022 at 6:02 PM 0x1eef <0x1eef@protonmail.com> wrote: > Hi, everyone! > > When I use Chromium, I see a high rate of CPU usage across all four cores. > The rate can be anywhere from 20% to 50%, even above that. I am not doing > anything intensive, just browsing twitter, reddit, YouTube or GitHub. It > has been like this since I installed FreeBSD, but since it's not a blocker > I have been lazy about looking into it. > > I don't know why it happens. I can see that there are a high number of > interrupts on 'xhci0', and that seems to carry over to each CPU core as > well: > > # vmstat -i > interrupt total rate > irq1: atkbd0 50 0 > irq9: acpi0 403 0 > cpu0:timer 30716618 98 > cpu1:timer 25457926 81 > cpu2:timer 34344531 109 > cpu3:timer 25542867 81 > irq128: xhci0 328107434 1044 > irq130: nvme0:admin 15 0 > irq131: nvme0:io0 701041 2 > irq132: nvme0:io1 692045 2 > irq133: nvme0:io2 792760 3 > irq134: nvme0:io3 693091 2 > irq135: hdac0 1718425 5 > irq136: vgapci0 6273295 20 > Total 455040501 1448 > > > # dmesg | grep xhci0 > xhci0: <Intel Ice Lake-LP USB 3.1 controller> mem 0x95110000-0x9511ffff at > device 20.0 on pci0 > xhci0: 32 bytes context size, 64-bit DMA > usbus0 on xhci0 > > It might also be helpful to know that I tried OpenBSD on the same computer > but it was unusable for a similar reason: 95%+ interrupts on CPU. The > impact that had made all tasks extremely slow. On FreeBSD it is not as bad, > but I still think think it is not normal. > > Can anyone suggest what might be wrong, tips to debug, etc ? If more > information is needed, please let me know. Thanks for your time. > > Best, > 0x1eef > > > -- __________________ :(){ :|:& };: --0000000000005c678205ee67b03a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hey,</div><div><br></div><div>Not sure of the problem= , but I don't see the correlation between Chrome and any usb driver.<br= ></div><div>Out of curiosity, have you pulled a usb device one by one until= the interrupts disappear?<br><br></div><div>I'd be curious to know whi= ch device is slamming the system.</div><div><br></div><div>Thanks,</div><di= v>Paul<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class= =3D"gmail_attr">On Sat, Nov 26, 2022 at 6:02 PM 0x1eef <<a href=3D"mailt= o:0x1eef@protonmail.com">0x1eef@protonmail.com</a>> wrote:<br></div><blo= ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left= :1px solid rgb(204,204,204);padding-left:1ex"><div style=3D"font-family:Ari= al;font-size:14px"><span style=3D"line-height:1.5">Hi, everyone!</span><div= style=3D"line-height:1.5"><br></div><div style=3D"line-height:1.5">When I = use Chromium, I see a high rate of CPU usage across all four cores. The rat= e can be anywhere from 20% to 50%, even above that. I am not doing anything= intensive, just browsing twitter, reddit, YouTube or GitHub. It has been l= ike this since I installed FreeBSD, but since it's not a blocker I have= been lazy about looking into it.</div><div style=3D"line-height:1.5"><br><= /div><div style=3D"line-height:1.5">I don't know why it happens. I can = see that there are a high number of interrupts on 'xhci0', and that= seems to carry over to each CPU core as well:</div><div style=3D"line-heig= ht:1.5"><br></div><div style=3D"line-height:1.5"><span># vmstat -i =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</span><div><span>interrupt =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0total =C2=A0 =C2=A0 =C2=A0 rate</span></div><div><span>irq1: atkbd0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A050 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00</span></div><div><span>= irq9: acpi0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0403 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00</span></= div><div><span>cpu0:timer =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A030716618 =C2=A0 =C2=A0 =C2=A0 =C2=A0 98</span></= div><div><span>cpu1:timer =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A025457926 =C2=A0 =C2=A0 =C2=A0 =C2=A0 81</span></= div><div><span>cpu2:timer =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A034344531 =C2=A0 =C2=A0 =C2=A0 =C2=A0109</span></= div><div><span>cpu3:timer =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A025542867 =C2=A0 =C2=A0 =C2=A0 =C2=A0 81</span></= div><div><span>irq128: xhci0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0328107434 =C2=A0 =C2=A0 =C2=A0 1044</span></div><div><span= >irq130: nvme0:admin =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 15 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00</span></div><div><span>ir= q131: nvme0:io0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 701= 041 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02</span></div><div><span>irq132: nvme= 0:io1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 692045 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A02</span></div><div><span>irq133: nvme0:io2 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 792760 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A03</span></div><div><span>irq134: nvme0:io3 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 693091 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A02</span></div><div><span>irq135: hdac0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01718425 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A05</span></div><div><span>irq136: vgapci0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A06273295 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 20</span></div><div><span>Total =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0455040501 =C2=A0 =C2= =A0 =C2=A0 1448</span></div><span></span><br></div><div style=3D"line-heigh= t:1.5"><br></div><div style=3D"line-height:1.5"><span># dmesg | grep xhci0<= /span><div><span>xhci0: <Intel Ice Lake-LP USB 3.1 controller> mem 0x= 95110000-0x9511ffff at device 20.0 on pci0</span></div><div><span>xhci0: 32= bytes context size, 64-bit DMA</span></div><span>usbus0 on xhci0</span><br= ></div><div style=3D"line-height:1.5"><br></div><div style=3D"line-height:1= .5">It might also be helpful to know that I tried OpenBSD on the same compu= ter but it was unusable for a similar reason: 95%+ interrupts on CPU. The i= mpact that had made all tasks extremely slow. On FreeBSD it is not as bad, = but I still think=C2=A0 think it is not normal.</div><div style=3D"line-hei= ght:1.5"><br></div><div style=3D"line-height:1.5">Can anyone suggest what m= ight be wrong, tips to debug, etc ? If more information is needed, please l= et me know. Thanks for your time.</div><div style=3D"line-height:1.5"><br><= /div><div style=3D"line-height:1.5">Best,</div><span style=3D"line-height:1= .5">0x1eef</span><br></div><div style=3D"font-family:Arial;font-size:14px">= <br></div> <div style=3D"font-family:Arial;font-size:14px"> <div></div> =20 <div><br></div> </div> </blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g= mail_signature">__________________<br><br>:(){ :|:& };:</div> --0000000000005c678205ee67b03a--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPuiQtNa0BeZ7X0UhjFyynhFPKFXcF6NE2CZ7ra7hCgYUnw>