Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2528429imm; Sat, 29 Sep 2018 22:27:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV63cFI21Ai5wToZtgY4eJr/0JoIvGR9fO1LVfbjnkEB9sxtYSY8LYe1gzhFdSZtVPSdagSaX X-Received: by 2002:a62:5c03:: with SMTP id q3-v6mr5738120pfb.182.1538285240507; Sat, 29 Sep 2018 22:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538285240; cv=none; d=google.com; s=arc-20160816; b=Dy1iBaIyjb27NO7zfxHF3rSwvLtuynI4Rvuj35Zgvq8FWLKfX8N+HDsNir35Ccab7h VGGGA55oPuyXG8mQVpkLW9sc82k/vX6k8N+cQNl2KkK0hFUbiBbp+6JvdH15H9yTzcio H7/s/XVxhp7HDpCGF6lqxGF5EEQYnmJjnYR2SxkapEijGgkgfjhsPw+EihN4QE/6CuID +NsPsosIgnx0Eqyjg9KwYbrms94lDckBZKL9kdd/UvgyPrv4z3O/1qKCnTSb8faMiW2X CvSYSU33E6C/SgLfWorCFbv5fatE/9PNwMUu1u1OMZpPODSHnG82AOlwepcloKNsraeQ H/KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature; bh=8lXR5/B56iLWx5c/1gZ8R4KC1yaaNEnkejVJhZGCo5Y=; b=UPky7192w1pLweC0WqDvGeua1gI3fiE2sjrfNottHnk3HeyTcWVD7PG61QyuDb/1zR 8JgNpJTC6wwc/V2YmChjS4OfW83vZq+MdrgXIbh2tLa1gwMwC5p1B39UNBvjCngRg207 xVwIknPyPebUEylPbovdmFuLSx9J6WOWlZAGFmzV/3uTAGaws3yqM5Q/SXvPGgAr8TKc g0ESlGGtF6HnBML/SFYw29v/9DYlgE5WTSxAPX96/nsJ2uKnspiy7qoEvCekpBLU23fd DSagSSy/SkTxHdCZ09a/Co7ZJhEpBXxK2OZ8QDn/PCdCV1S37r4A70FXfPdm/Rs8QV18 piDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hYK2hOfk; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7-v6si8965030pgj.443.2018.09.29.22.26.32; Sat, 29 Sep 2018 22:27:20 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hYK2hOfk; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727970AbeI3L56 (ORCPT + 99 others); Sun, 30 Sep 2018 07:57:58 -0400 Received: from mail-pf1-f169.google.com ([209.85.210.169]:33039 "EHLO mail-pf1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727719AbeI3L56 (ORCPT ); Sun, 30 Sep 2018 07:57:58 -0400 Received: by mail-pf1-f169.google.com with SMTP id d4-v6so6959542pfn.0; Sat, 29 Sep 2018 22:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8lXR5/B56iLWx5c/1gZ8R4KC1yaaNEnkejVJhZGCo5Y=; b=hYK2hOfkl+jiXjmM8a6P9fL9hVAZYzn3OtYZ5LlC2r0ZmdTTWyukdTiy3hyFwUy9wL vIeNgOFPwAn7IOhify41HFYY3UTlyc0kCUD04x1HfeDaQfsDSXgOzE2QycC/UM2JZiVI lAI3+ZEqg2CO2S7ASJR/+b40iQdv0KxM3JhFM9Yx0PBaphF2Fn3AKTsruEBzqztEZhF8 JgeBaQAaaVyTFmkMqx4Pdv68Vt6xnIX95o6imn5SI+1EkVr9jY3t3rDrCovhit7O+rFP jTOkEnaowZQxHaRDEnx0cmKXdUiLVqNAUxapr+LfvDZeU//sWcTt+gfGSNa/+D/tTZnZ jwnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8lXR5/B56iLWx5c/1gZ8R4KC1yaaNEnkejVJhZGCo5Y=; b=g7VFwtMdiOT6erfhcjRSmxigxpbytC8ZytUj7BavTbfBenXsPYITXHeRqC8KOZBNzl iA1Rr9raxFoMjbPs/+u7uPH9J6NRrGp7RwcjwkBf9mi4FWN9QiX16Nwevq8MS6XCzZpB s2KLSxRoTdAYPYRTiIUfGl8qNy1xkzaTX7cnP1wqgGWisH5SYLDdklk9vSJbsVlJBIn8 SlvjvKLE53UYd8b5QuEIUUcPiSzPPEJvHgs5pDXZm4qVSN+g/YTsw4Py/XVLBePGHtFt N8g+qDSnXlGi4ndIJ6meFde/hwSp3/2YnKNVDi7tQLwyzwzfSAm9yElnsdWsWMoQiQfz aWHw== X-Gm-Message-State: ABuFfogjg81xnW8gHGWSQJ+x/6pbuvkQ6vy2uhDlpDNszPjPG9i/dqyy rUhCljZC2rp/gVF+RvucI/ymBbfySCWqZsLTKtk9V10cRDaFMA== X-Received: by 2002:a17:902:43e4:: with SMTP id j91-v6mr5865108pld.74.1538285185803; Sat, 29 Sep 2018 22:26:25 -0700 (PDT) MIME-Version: 1.0 From: Feng Li Date: Sun, 30 Sep 2018 13:25:58 +0800 Message-ID: Subject: virtio-console downgrade the virtio-pci-blk performance To: linux-kernel , qemu-discuss@nongnu.org, qemu-devel@nongnu.org, "linux-scsi@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks in advance. -- Thanks and Best Regards, Alex