Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Mar 2018 19:48:15 +0000
From:      Johannes Lundberg <johalun0@gmail.com>
To:        AN <andy@neu.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: problem with [intr{swi4: clock (0)}]
Message-ID:  <CAECmPwv%2BUDabW2%2B2rwPyDG0W_eqVuyqgTkLayi5xE-W6_3BdXA@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.21.1803211112520.46515@mail.neu.net>
References:  <alpine.BSF.2.21.1803211112520.46515@mail.neu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 21, 2018 at 15:38 AN <andy@neu.net> wrote:

> Hi:
>
> I would appreciate any help with this issue, this is a new machine built
> in the last week and if it is a hardware issue I want to return it.  The
> problem seems to have started in the last 24 hours or so.  I am seeing a
> really high cpu utilization for [intr{swi4: clock (0)}].  I have tried a
> couple things to troubleshoot:
>
> rebuilt world and kernel
> turned off Virtualbox ( did not load kernel module)
> turned off in BIOS network, audio
> installed disk from another similar machine, booted and it shows the exac=
t
> same problem.
>
> Here is what I see in top:
> last pid: 56553;  load averages:  0.09,  0.44,  0.26
> up 0+00:04:38  11:25:24
> 472 processes: 14 running, 418 sleeping, 40 waiting
> CPU 0:   0.0% user,  0.0% nice,  0.0% system, 27.5% interrupt, 72.5% idle
> CPU 1:   0.7% user,  0.0% nice,  0.0% system,  0.0% interrupt, 99.3% idle
> CPU 2:   0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
> CPU 3:   0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
> CPU 4:   0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
> CPU 5:   0.0% user,  0.0% nice,  0.7% system,  0.0% interrupt, 99.3% idle
> CPU 6:   0.8% user,  0.0% nice,  0.8% system,  0.0% interrupt, 98.5% idle
> CPU 7:   0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
> CPU 8:   0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
> CPU 9:   0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
> CPU 10:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
> CPU 11:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
> Mem: 1096M Active, 53M Inact, 300K Laundry, 568M Wired, 290M Buf, 14G Fre=
e
> Swap: 21G Total, 21G Free
>
>    PID USERNAME   PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
>     11 root       155 ki31     0K   192K CPU1    1   4:32 100.00%
> [idle{idle: cpu1}]
>     11 root       155 ki31     0K   192K CPU8    8   4:31 100.00%
> [idle{idle: cpu8}]
>     11 root       155 ki31     0K   192K CPU9    9   4:30 100.00%
> [idle{idle: cpu9}]
>     11 root       155 ki31     0K   192K CPU2    2   4:30 100.00%
> [idle{idle: cpu2}]
>     11 root       155 ki31     0K   192K CPU10  10   4:30 100.00%
> [idle{idle: cpu10}]
>     11 root       155 ki31     0K   192K CPU5    5   4:27 100.00%
> [idle{idle: cpu5}]
>     11 root       155 ki31     0K   192K RUN    11   4:25  99.82%
> [idle{idle: cpu11}]
>     11 root       155 ki31     0K   192K CPU6    6   4:30  98.93%
> [idle{idle: cpu6}]
>     11 root       155 ki31     0K   192K CPU7    7   4:31  96.83%
> [idle{idle: cpu7}]
>     11 root       155 ki31     0K   192K CPU3    3   4:27  94.94%
> [idle{idle: cpu3}]
>     11 root       155 ki31     0K   192K CPU4    4   4:29  94.11%
> [idle{idle: cpu4}]
>     11 root       155 ki31     0K   192K RUN     0   3:45  71.60%
> [idle{idle: cpu0}]
>     12 root       -60    -     0K   656K CPU0    0   0:53  28.43%
> [intr{swi4: clock (0)}]
>
>
> 28.20% [intr{swi4: clock (0)}] - the process is using close to 30% cpu
> time.
>
> I have no idea what could be causing this, any advice would be
> appreciated.  Thanks in advance.
>
> 12 root       -60    -     0K   656K WAIT    0   1:27  28.80% [intr{swi4:
> clock (0)}]
>
> systat shows:
>
>    1 users    Load  0.20  0.16  0.18                  Mar 21 11:35
>     Mem usage:  11%Phy  1%Kmem
> Mem: KB    REAL            VIRTUAL                      VN PAGER   SWAP
> PAGER
>          Tot   Share      Tot    Share    Free           in   out     in
> out
> Act 1357104  111928  4267688   193328  14176K  count
> All 1357984  112656  4285556   211028          pages
> Proc:
> Interrupts
>    r   p   d   s   w   Csw  Trp  Sys  Int  Sof  Flt      8 ioflt  996k
> total
>    1         314       2.0  296 2213  133  1.0  155        cow
> atkbd0 1
>                                                          8 zfod   996k
> cpu0:timer
>   0.1%Sys   1.9%Intr  0.1%User  0.0%Nice 98.0%Idle         ozfod    68
> xhci0 259
> |    |    |    |    |    |    |    |    |    |           %ozfod
> ahci0 260
> +                                                         daefr     5 re0
> 261
>                                           4 dtbuf          prcfr
> hdac0 262
> Namei     Name-cache   Dir-cache    349771 desvn       21 totfr
> hdac1 280
>     Calls    hits   %    hits   %      3740 numvn          react     4
> cpu6:timer
>       474     474 100                   958 frevn          pdwak     5
> cpu10:time
>                                                        456 pdpgs    11
> cpu7:timer
> Disks  ada0 pass0                                         intrn    10
> cpu11:time
> KB/t   0.00  0.00                                  469596 wire      3
> cpu1:timer
> tps       0     0                                 1121780 act       2
> cpu8:timer
> MB/s   0.00  0.00                                  170492 inact     8
> cpu9:timer
> %busy     0     0                                     300 laund     5
> cpu4:timer
>                                                   14516016 free      2
> cpu2:timer
>                                                     183472 buf       7
> cpu5:timer
>                                                                      7
> cpu3:timer
>
> FreeBSD BSD_12 12.0-CURRENT FreeBSD 12.0-CURRENT #18 r331138: Sun Mar 18
> 16:08:31 EDT 2018
> root@BSD_12:/usr/obj/usr/src/amd64.amd64/sys/MYKERNEL  amd64 1200060
>
> FreeBSD 12.0-CURRENT #18 r331138: Sun Mar 18 16:08:31 EDT 2018
>      root@BSD_12:/usr/obj/usr/src/amd64.amd64/sys/MYKERNEL amd64
> FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLV=
M
> 6.0.0)
> VT(vga): resolution 640x480
> CPU: AMD Ryzen 5 1600X Six-Core Processor            (3600.10-MHz K8-clas=
s
> CPU)
>    Origin=3D"AuthenticAMD"  Id=3D0x800f11  Family=3D0x17  Model=3D0x1  St=
epping=3D1
>
>
> Features=3D0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG=
E,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
>
>
> Features2=3D0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MO=
VBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
>    AMD Features=3D0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
>    AMD
>
> Features2=3D0x35c233ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OS=
VW,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX>
>    Structured Extended
>
> Features=3D0x209c01a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUS=
HOPT,SHA>
>    XSAVE Features=3D0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
>    AMD Extended Feature Extensions ID EBX=3D0x7<CLZERO,IRPerf,XSaveErPtr>
>    SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=3D32768
>    TSC: P-state invariant, performance statistics
> real memory  =3D 17179869184 (16384 MB)
> avail memory =3D 16596353024 (15827 MB)
> Event timer "LAPIC" quality 600
> ACPI APIC Table: <ALASKA A M I >
> FreeBSD/SMP: Multiprocessor System Detected: 12 CPUs
> FreeBSD/SMP: 1 package(s) x 2 cache groups x 3 core(s) x 2 hardware
> threads
> random: unblocking device.
> Firmware Warning (ACPI): Optional FADT field Pm2ControlBlock has valid
> Length but zero Address: 0x0000000000000000/0x1 (20180313/tbfadt-796)
> ioapic0 <Version 2.1> irqs 0-23 on motherboard
> ioapic1 <Version 2.1> irqs 24-55 on motherboard
> random: entropy device external interface
> kbd1 at kbdmux0
> netmap: loaded module
> module_register_init: MOD_LOAD (vesa, 0xffffffff809e79e0, 0) error 19
> random: registering fast source Intel Secure Key RNG
> random: fast provider: "Intel Secure Key RNG"
> nexus0
> vtvga0: <VT VGA driver> on motherboard
> cryptosoft0: <software crypto> on motherboard
> acpi0: <ALASKA A M I > on motherboard
>


Hi!

I had a similar problem caused by interrupt storm from the GPU on a
MacBook.

The problem is described here:
https://bugs.freedesktop.org/show_bug.cgi?id=3D98501

I disabled that IRQ by using a custom acpi config. I know it=E2=80=99s not =
the same
hardware but might give

I can share more details tomorrow when I=E2=80=99m at my computer if you th=
ink this
might be related.



>
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org=
"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAECmPwv%2BUDabW2%2B2rwPyDG0W_eqVuyqgTkLayi5xE-W6_3BdXA>