Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3792681imm; Mon, 1 Oct 2018 04:43:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV601mX9OSX7gO6shRMMe310Wnoe2V30WXmUKK1Dcg8gKqcNT/XTkW5yd7w/RhNbgxh1LApkR X-Received: by 2002:a62:63c2:: with SMTP id x185-v6mr10994714pfb.13.1538394204568; Mon, 01 Oct 2018 04:43:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538394204; cv=none; d=google.com; s=arc-20160816; b=cJ3TZbZsq3g3maMECZockYsR3xcGms41Dz2DgdGi/Rb633oBPw6/x++TTwN93GIThv Q3d9YvXeCZox0ovrTkeWBrNXk23o4fDztWJwce7hTiniEh7iIX54Q3FOHbWE3/petDtM du55rRBCK6M169RjvX9ELOMaP1JV0FEDug4rtYOk9DBeGwtBYten4wdXwp2eAhm2BeAL 1fwvEMP/ZAmQyu7sQ0wLvKQgrA6ft9wXVFVUz2Lxlkq/b4yzp7KnTEqryUYazKomlbjd Cwh8H7qJ1Gxl/UccdY0TxPKmU7O9e/K9vOGgtR3hIelbrfKIqlJcmfmZW6LYDuGpIRhD MTMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=KrDuBevPsE7CVyXeXiABlcrUss9kRXz5iuMRKpEttCk=; b=yNsPwWid0DhsvN4PiYV63xZR/6osAD18gEKNg36Uzo0xf+F5fiDK3ppDkc8w5mbr68 CgG2WaJF5RWR/OuwrZED4Q8HbZ9KA0KfVYqBNdIXhPYsvou3rWrkfRUMwiEKlbW5s8xv 6JOvCe0WYzKlITBXfXLTLyrjDn7Otsrqg0vtKYxqwjPJ5kb1VtjaNGmYrEKQ+0Y/iXvf txiMWHDzZlUZokgLMns5teFktlrrdozJsrDyYsfFrGYHJDYWqPZUzwO3KNQXq67+SXaS hAYLuA41BimHKeLcSJBx7K4sG8zJ9TVYWdAbnZCjaJkDmLerEDiL4zWo5ivjiippLny1 wCvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q137-v6si13050879pfq.178.2018.10.01.04.43.09; Mon, 01 Oct 2018 04:43:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729271AbeJASTN (ORCPT + 99 others); Mon, 1 Oct 2018 14:19:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34234 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729047AbeJASTN (ORCPT ); Mon, 1 Oct 2018 14:19:13 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BE0BF300197E; Mon, 1 Oct 2018 11:41:50 +0000 (UTC) Received: from work-vm (ovpn-117-221.ams2.redhat.com [10.36.117.221]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8C15E60162; Mon, 1 Oct 2018 11:41:49 +0000 (UTC) Date: Mon, 1 Oct 2018 12:41:47 +0100 From: "Dr. David Alan Gilbert" To: Feng Li Cc: linux-kernel , qemu-discuss@nongnu.org, qemu-devel@nongnu.org, "linux-scsi@vger.kernel.org" Subject: Re: [Qemu-devel] virtio-console downgrade the virtio-pci-blk performance Message-ID: <20181001114146.GA2508@work-vm> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Mon, 01 Oct 2018 11:41:50 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Feng Li (lifeng1519@gmail.com) wrote: > Hi, > I found an obvious performance downgrade when virtio-console combined > with virtio-pci-blk. > > This phenomenon exists in nearly all Qemu versions and all Linux > (CentOS7, Fedora 28, Ubuntu 18.04) distros. > > This is a disk cmd: > -drive file=iscsi://127.0.0.1:3260/iqn.2016-02.com.test:system:fl-iscsi/1,format=raw,if=none,id=drive-virtio-disk0,cache=none,aio=native > -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1,write-cache=on > > If I add "-device > virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 ", the virtio > disk 4k iops (randread/randwrite) would downgrade from 60k to 40k. > > In VM, if I rmmod virtio-console, the performance will back to normal. > > Any idea about this issue? > > I don't know this is a qemu issue or kernel issue. It sounds odd; can you provide more details on: a) The benchmark you're using. b) the host and the guest config (number of cpus etc) c) Why are you running it with iscsi back to the same host - why not just simplify the test back to a simple file? Dave > > Thanks in advance. > -- > Thanks and Best Regards, > Alex > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK