From owner-freebsd-virtualization@freebsd.org Fri Jun 4 14:59:19 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 956C264FF4E for ; Fri, 4 Jun 2021 14:59:19 +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 4FxQs33cY4z3nHr for ; Fri, 4 Jun 2021 14:59:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7A0BD64FF4D; Fri, 4 Jun 2021 14:59:19 +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 79C8664FFCB for ; Fri, 4 Jun 2021 14:59:19 +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 4FxQs32rNkz3nKd for ; Fri, 4 Jun 2021 14:59:19 +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 472171F19D for ; Fri, 4 Jun 2021 14:59:19 +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 154ExJeF041879 for ; Fri, 4 Jun 2021 14:59:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 154ExJin041878 for virtualization@FreeBSD.org; Fri, 4 Jun 2021 14:59:19 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 216759] [kern] Memory speed with small blocks (1K) up to 35 times slower than host system (under QEMU emulation, but not only) Date: Fri, 04 Jun 2021 14:59:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: rainer@ultra-secure.de X-Bugzilla-Status: In Progress 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: Fri, 04 Jun 2021 14:59:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216759 --- Comment #24 from rainer@ultra-secure.de --- I still have very slow IO in FreeBSD 13.0 amd64 on KVM. Even with this kvmclock driver (compile from ports as of today). Host: ii qemu-system-x86 1:2.11+dfsg-1ubuntu7.23=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 amd64 QEMU full system emulation binaries (x86) Linux ewos1-com17-prod 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Guest: (freebsd ) 0 # uname -a FreeBSD freebsd 13.0-RELEASE-p1 FreeBSD 13.0-RELEASE-p1 #0: Wed May 26 22:1= 5:09 UTC 2021=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC= =20 amd64 (freebsd ) 1 # kldload kvmclock=20 (freebsd ) 0 # sysctl kern.timecounter kern.timecounter.tsc_shift: 1 kern.timecounter.smp_tsc_adjust: 0 kern.timecounter.smp_tsc: 0 kern.timecounter.invariant_tsc: 0 kern.timecounter.fast_gettime: 1 kern.timecounter.tick: 1 kern.timecounter.choice: kvmclock(975) i8254(0) ACPI-fast(900) TSC-low(-100) dummy(-1000000) kern.timecounter.hardware: kvmclock kern.timecounter.alloweddeviation: 5 kern.timecounter.timehands_count: 2 kern.timecounter.stepwarnings: 0 kern.timecounter.tc.kvmclock.quality: 975 kern.timecounter.tc.kvmclock.frequency: 1000000000 kern.timecounter.tc.kvmclock.counter: 2592740499 kern.timecounter.tc.kvmclock.mask: 4294967295 kern.timecounter.tc.i8254.quality: 0 kern.timecounter.tc.i8254.frequency: 1193182 kern.timecounter.tc.i8254.counter: 56633 kern.timecounter.tc.i8254.mask: 65535 kern.timecounter.tc.ACPI-fast.quality: 900 kern.timecounter.tc.ACPI-fast.frequency: 3579545 kern.timecounter.tc.ACPI-fast.counter: 15142699 kern.timecounter.tc.ACPI-fast.mask: 16777215 kern.timecounter.tc.TSC-low.quality: -100 kern.timecounter.tc.TSC-low.frequency: 1300025233 kern.timecounter.tc.TSC-low.counter: 3482345276 kern.timecounter.tc.TSC-low.mask: 4294967295 (freebsd ) 0 # time dc3dd wipe=3D/dev/vtbd1 dc3dd 7.2.646 started at 2021-06-04 14:54:43 +0200 compiled options: command line: dc3dd wipe=3D/dev/vtbd1 device size: 209715200 sectors (probed), 107,374,182,400 bytes sector size: 512 bytes (probed) 2559508480 bytes ( 2.4 G ) copied ( 2% ), 145 s, 17 M/s=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 input results for pattern `00': 4999040 sectors in output results for device `/dev/vtbd1': 4999040 sectors out dc3dd aborted at 2021-06-04 14:57:07 +0200 dc3dd wipe=3D/dev/vtbd1 0.79s user 1.55s system 1% cpu 2:24.62 total (freebsd ) 1 # sysctl kern.timecounter.hardware=3DTSC-low kern.timecounter.hardware: kvmclock -> TSC-low (freebsd ) 0 # time dc3dd wipe=3D/dev/vtbd1=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 dc3dd 7.2.646 started at 2021-06-04 14:59:07 +0200 compiled options: command line: dc3dd wipe=3D/dev/vtbd1 device size: 209715200 sectors (probed), 107,374,182,400 bytes sector size: 512 bytes (probed) 2588770304 bytes ( 2.4 G ) copied ( 2% ), 150 s, 16 M/s=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 input results for pattern `00': 5056192 sectors in output results for device `/dev/vtbd1': 5056192 sectors out dc3dd aborted at 2021-06-04 15:01:37 +0200 dc3dd wipe=3D/dev/vtbd1 0.99s user 1.53s system 1% cpu 2:29.96 total This volume should be good for 5000 IOPs and 250MB/s. --=20 You are receiving this mail because: You are the assignee for the bug.=