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.3 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 24079C433DF for ; Thu, 4 Jun 2020 05:03:10 +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 E67B8206DC for ; Thu, 4 Jun 2020 05:03:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E67B8206DC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com 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 1jgi1Y-0002cj-Lv; Thu, 04 Jun 2020 05:02:40 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jgi1X-0002ce-0d for xen-devel@lists.xenproject.org; Thu, 04 Jun 2020 05:02:39 +0000 X-Inumbo-ID: 9c0f059c-a620-11ea-ae0d-12813bfff9fa Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 9c0f059c-a620-11ea-ae0d-12813bfff9fa; Thu, 04 Jun 2020 05:02:38 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A54A6AE16 for ; Thu, 4 Jun 2020 05:02:40 +0000 (UTC) To: "xen-devel@lists.xenproject.org" From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Subject: Xenstore quota and driver domains Message-ID: <35df958d-eff8-9ca7-fd72-05694f07248d@suse.com> Date: Thu, 4 Jun 2020 07:02:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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" A recent report on xen-users surfaced a problem we have with driver domains in medium sized or large configuration: the driver domain can easily hit the default Xenstore quota (in the report it was a driver domain for disks which hit the quota when 15 domUs were active at the same time). Setting the quota to a higher limit will work, of course, but this enables "normal" domUs to use this quota, too, thus hogging lots of Xenstore resources. I believe the most sensible way to solve that would be to have a way to set per-domain quota in Xenstore. As the original reporter already raised concerns regarding rebooting the server for applying new global quota, I believe new quota settings should be possible at runtime. The question is how this interface should look like. Right now I could think of two variants: 1. A new XS_SET_QUOTA and XS_GET_QUOTA wire command pair which can set and get the quota (both, default values for new domains and for any existing domain) 2. A new XS_CONTROL command for setting/getting quota (same scope as 1.) Both variants have advantages and disadvantages: 1. Pros: - clear interface, easily usable Cons: - requires more code churn in tools (libxenstore, xl, libxl) for support in domain-config - any extension will again require similar churn 2. Pros: - easy extensible domain-config possible (via a single item, e.g. "xenstore-quota='watches=10 entries=2000'") Cons: - text parsing in Xenstore instead of xl/libxl - XS_CONTROL sub-options for quota will be ABI Any thoughts? Juergen