From owner-freebsd-virtualization@freebsd.org Sat May 29 15:25:23 2021 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 35DF56427EE for ; Sat, 29 May 2021 15:25:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Fsljv0bbjz3hQc for ; Sat, 29 May 2021 15:25:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0DFC96427ED; Sat, 29 May 2021 15:25:23 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0C8DB642994 for ; Sat, 29 May 2021 15:25:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fsljt6fr4z3hhg for ; Sat, 29 May 2021 15:25:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C9E714B66 for ; Sat, 29 May 2021 15:25:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 14TFPMjP011510 for ; Sat, 29 May 2021 15:25:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 14TFPM81011509 for virtualization@FreeBSD.org; Sat, 29 May 2021 15:25:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 254513] virtio_random: random_harvestq spinning on a CPU with Q35 virtio random device Date: Sat, 29 May 2021 15:25:23 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: performance, regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mandree@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 May 2021 15:25:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254513 --- Comment #10 from Matthias Andree --- since my virtual server is rented with just one core, it goes down to a cra= wl. More information: # kldload virtio_random ; devinfo -p vtrnd0 -v ; kldunload virtio_random vtrnd0 pnpinfo vendor=3D0x00001af4 device=3D0x1005 subvendor=3D0x1af4 device_type=3D0x00000004 virtio_pci4 pnpinfo vendor=3D0x1af4 device=3D0x1005 subvendor=3D0x1af4 subdevice=3D0x0004 class=3D0x00ff00 at slot=3D7 function=3D0 dbsf=3Dpci0:0:= 7:0 handle=3D\_SB_.PCI0.S38_ pci0 pcib0 pnpinfo _HID=3DPNP0A03 _UID=3D1 _CID=3Dnone at handle=3D\_SB_.PCI0 acpi0 nexus0 # pciconf -l -v [...] virtio_pci4@pci0:0:7:0: class=3D0x00ff00 rev=3D0x00 hdr=3D0x00 vendor=3D0x1= af4 device=3D0x1005 subvendor=3D0x1af4 subdevice=3D0x0004 vendor =3D 'Red Hat, Inc.' device =3D 'Virtio RNG' class =3D old # dmesg CPU: Intel Xeon E312xx (Sandy Bridge) (2600.04-MHz K8-class CPU) Origin=3D"GenuineIntel" Id=3D0x206a1 Family=3D0x6 Model=3D0x2a Steppi= ng=3D1 =20 Features=3D0x783fbff =20 Features2=3D0x9fba2203 AMD Features=3D0x28100800 AMD Features2=3D0x1 XSAVE Features=3D0x1 ... virtio_pci0: port 0xc0a0-0xc0bf mem 0xfebf1000-0xfebf1fff,0xfe000000-0xfe003fff irq 11 at device 3.0 on pci0 vtnet0: on virtio_pci0 vtnet0: Ethernet address: 00:1a:4a:d0:17:bf vtnet0: netmap queues/slots: TX 1/256, RX 1/128 000.000760 [ 450] vtnet_netmap_attach vtnet attached txq=3D1, txd=3D2= 56 rxq=3D1, rxd=3D128 virtio_pci1: port 0xc000-0xc03f mem 0xfebf2000-0xfebf2fff,0xfe004000-0xfe007fff irq 11 at device 4.0 on pci0 vtblk0: on virtio_pci1 vtblk0: 20480MB (41943040 512 byte sectors) virtio_pci2: port 0xc040-0xc07f mem 0xfebf3000-0xfebf3fff,0xfe008000-0xfe00bfff irq 10 at device 5.0 on pci0 vtblk1: on virtio_pci2 vtblk1: 1024MB (2097152 512 byte sectors) virtio_pci3: port 0xc0c0-0xc0df mem 0xfe00c000-0xfe00ffff irq 10 at device 6.0 on pci0 vtballoon0: on virtio_pci3 virtio_pci4: port 0xc0e0-0xc0ff mem 0xfe010000-0xfe013fff irq 11 at device 7.0 on pci0 ... vtrnd0: on virtio_pci4 random: registering fast source VirtIO Entropy Adapter [... kldunload here ...] vtrnd0: detached # kldload virtio_random ; sleep 5 ; procstat -w 1 kstack 7 ; kldunload virtio_random PID TID COMM TDNAME KSTACK=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 7 100061 rand_harvestq - mi_switch sleepq_timed= wait _sleep random_kthread fork_exit fork_trampoline=20 7 100061 rand_harvestq - mi_switch sleepq_timed= wait _sleep random_kthread fork_exit fork_trampoline=20 7 100061 rand_harvestq - mi_switch sleepq_timed= wait _sleep random_kthread fork_exit fork_trampoline=20 7 100061 rand_harvestq - mi_switch sleepq_timed= wait _sleep random_kthread fork_exit fork_trampoline --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=