From owner-freebsd-virtualization@FreeBSD.ORG Thu May 8 20:41:04 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4650DD04 for ; Thu, 8 May 2014 20:41:04 +0000 (UTC) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 03469FE for ; Thu, 8 May 2014 20:41:03 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 1231128428; Thu, 8 May 2014 22:41:01 +0200 (CEST) Received: from [192.168.1.2] (ip-89-177-49-222.net.upcbroadband.cz [89.177.49.222]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id BFF6D28426; Thu, 8 May 2014 22:40:59 +0200 (CEST) Message-ID: <536BEBDB.405@quip.cz> Date: Thu, 08 May 2014 22:40:59 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Andreas Nilsson Subject: Re: Disk IO throttling for VM guests? References: <536BA96E.5090800@quip.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18 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: Thu, 08 May 2014 20:41:04 -0000 Andreas Nilsson wrote: > On Thu, May 8, 2014 at 5:57 PM, Miroslav Lachman <000.fbsd@quip.cz > > wrote: > > Is there any possibilities to limit disk IO for virtualization guest > on FreeBSD? > I would like to know, if it is possible to limit IOps for jails, or > Bhyve guest, or VirtualBox quests. There are ways to limit CPU or > RAM for them, but CPU and RAM are really huge these days. On the > other hand, HDDs are still very IO limited and if one guest runs > disk IO hungy task, then all other guest are affected / slow. > > I read about plugable GEOM scheduler few years ago (GEOM_SCHED), but > it seems that it is dead project and there is no module for it to > allow some scheduling according to PID, JID or something like this. > > So do we have anything like this for Jails or Bhyve? > http://wiki.qemu.org/Features/ DiskIOLimits > http://wiki.smartos.org/ display/DOC/Tuning+the+IO+ Throttle > > Miroslav Lachman > > > Well, there is rctl. I haven't tried it yet though. > > Best regards > Andreas As far as I know, it is just another way to limit CPU, memory, swap, SysV semaphores, but no way to limit disk iops or bandwidth. Miroslav Lachman