Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0D4CC433E0 for ; Sun, 5 Jul 2020 13:00:51 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 80C1A2070B for ; Sun, 5 Jul 2020 13:00:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80C1A2070B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=listes.aquilenet.fr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1js4Fp-0001xq-Rf; Sun, 05 Jul 2020 13:00:21 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1js4Fo-0001xl-K3 for xen-devel@lists.xenproject.org; Sun, 05 Jul 2020 13:00:20 +0000 X-Inumbo-ID: 79d2dfc8-bebf-11ea-bb8b-bc764e2007e4 Received: from hera.aquilenet.fr (unknown [185.233.100.1]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 79d2dfc8-bebf-11ea-bb8b-bc764e2007e4; Sun, 05 Jul 2020 13:00:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 37469865 for ; Sun, 5 Jul 2020 15:00:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7lHGnZwo_YMY for ; Sun, 5 Jul 2020 15:00:14 +0200 (CEST) Received: from function (lfbn-bor-1-797-11.w86-234.abo.wanadoo.fr [86.234.239.11]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 2912C23B6 for ; Sun, 5 Jul 2020 15:00:11 +0200 (CEST) Received: from samy by function with local (Exim 4.94) (envelope-from ) id 1js4Fd-004Wmv-1O for xen-devel@lists.xenproject.org; Sun, 05 Jul 2020 15:00:09 +0200 Date: Sun, 5 Jul 2020 15:00:08 +0200 From: Samuel Thibault To: xen-devel Subject: Block requests priorities? Message-ID: <20200705130008.w7z33nz6ue7ly7sx@function> Mail-Followup-To: Samuel Thibault , xen-devel MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hello, Every month, we are getting a RAID check at the same time as VMs backing up their data. Yes, probably not a good thing to do, but that should still be working, and what we see is the whole system gets overly sluggish since we mark all of these idle-prioritized. The RAID check is happening inside dom0, with the --idle option to make I/Os deprioritized. The backups are happening inside domUs, with ionice -c 3 to make I/O deprioritized as well. But AIUI, the fact that the backup I/Os should be reprioritized is not transmitted through the blkif protocol, and thus dom0 considers them just like other VM I/O requests. Shouldn't we add priorities to the blkif requests? Otherwise what I guess is happening is that some large VMs are backing up a lot of data, and even if *they* prioritize I/O requests inside the domUs, the flurry of I/O requests are still piling up inside dom0, at non-idle priority since the idle priority information is not transmitted. And then I/O requests from other VMs get delayed behind that flurry of requests. I'm not even sure that bfq happens to have the proper information in order to correctly establish fair queueing between domUs? Samuel