From owner-freebsd-current@freebsd.org Fri Mar 23 19:48:27 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97C9EF68E44 for ; Fri, 23 Mar 2018 19:48:27 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wr0-x22d.google.com (mail-wr0-x22d.google.com [IPv6:2a00:1450:400c:c0c::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C1E888F56 for ; Fri, 23 Mar 2018 19:48:27 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wr0-x22d.google.com with SMTP id c24so13244857wrc.6 for ; Fri, 23 Mar 2018 12:48:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bEDEUYK8wmYoj1Vg/ciPVvLTSvWgpB3fJhM3HO92TCY=; b=nqF1icOIW9DovJBZnyghjEgkK7hYydZkuausCWgLDtuMcd+9kOXhUuxD4Xbwm2mSeL RrN9ywJMgEeQd4ueleRMueqUifuTxHAMzOzO9Sj4DoSCIBlPD6wrFEPD52l4zl8lL4C+ qqQxHGQodJkW21l3C/I+UQnMjw/QpCQ4m8X7UPMv2dyzOWlE2bDuYS/ydIY0sgmZ6dNE SkHVZ7+3W7q7oSqV3bO991SpdIn7tnReKuHKzdXSJ1zgcdRZQil2xbg3ESFqagb36lOo Dvv6f3OWkj99Mp6L6RWkVlAOSMrt6zHxL0X+8iykeGkkgMU1PM7mWXuMManjFuP0JXEM LHzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bEDEUYK8wmYoj1Vg/ciPVvLTSvWgpB3fJhM3HO92TCY=; b=aD5hPYsYNxabdEoZ4c7ZsQAH63Bi5GH0aS9PykCU8MEHKQzy28NhRufNQi3Uthl6IS S9ro+vMoyCkp8C1QZOsnsl3hH9AxD6tCwiw2eiQG90dKslsoZ7QnvUhXqADcwNdpi5Sm 4E8Z34IpUdZL3A1qHr6VrHH8YrknkAgvI82J0gcmo1vk+1g1mYDKZKUOS3RYMvJfBe8X U5Ovj3kcOm5jtZurtXVPbNvbTon+YFgfG3eCx3238R7ZROk/RMaHn2gQ33+2HLhDX1re LaoqLGb9OavkJxqMZDKkEhtsn3kTdyJLGo+hqUDhgxks3nmfcHUxYHGbLW3MabQ/3Kdj XJ1g== X-Gm-Message-State: AElRT7HP0FLOo1I9xrbsIfv/42OQdAjRybfSPVsZqD1bt/4lKZKJLLJK 4Fy5dbS/I1V3kIM83BCqS7jreBLPp67tAaSFXZM= X-Google-Smtp-Source: AG47ELvFiEiN1qj6WVau51yAqXWt+44qDm4w+sJwfkbwC/ZVu7rK4xJNti8qFDNzOoDQUHxcosu7SRQGdll/npg/bKs= X-Received: by 10.223.170.66 with SMTP id q2mr9365066wrd.140.1521834505384; Fri, 23 Mar 2018 12:48:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Johannes Lundberg Date: Fri, 23 Mar 2018 19:48:15 +0000 Message-ID: Subject: Re: problem with [intr{swi4: clock (0)}] To: AN Cc: freebsd-current@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2018 19:48:27 -0000 On Wed, Mar 21, 2018 at 15:38 AN 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 > > > Features2=3D0x7ed8320b > AMD Features=3D0x2e500800 > AMD > > Features2=3D0x35c233ff > Structured Extended > > Features=3D0x209c01a9 > XSAVE Features=3D0xf > AMD Extended Feature Extensions ID EBX=3D0x7 > 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: > 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 irqs 0-23 on motherboard > ioapic1 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: on motherboard > cryptosoft0: on motherboard > acpi0: 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= " >