[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grant operation batching


  • To: Demi Marie Obenour <demi@xxxxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 20 May 2022 08:24:48 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0yvV6XaqRyg33fLdED6d6S29/wXFFo5+6nKAJQOkLvI=; b=RjAjRN5eIneuOcbGFU2kkpVaYPn4K6zy2S5hNymMvLrvXk9q7wcVCA8EqZdyj47tCFf/xKxrfb6xkL6b98jpp/LK9jc0hdabagpeo2Uos0qi6am0YH6GXtFHbZRnd7GYwJtM8tKwl6BEmoL3Y6oQOuIkVHstPriJLqZ8/9u9hZ/XltIHW0+aBW+bc7WrPxrgxzV40CDGYXOvvbKiLrQV5aIDjj8S5TVrCzh2iNVVADo3tlT9h0x8PVXvs1ubLu7++gEz+LCluC5ghfw15uO4YSpjgBwy64rsIrJgVpw/twNhIJNAzRAb7p1RKfMFWH+qL4g2kJBWjKwPRuL9Kl8MXA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E+D+QmOIPtrvK/TMt17aQ7g7ympV3NMSuNBJ3WSGngyXl8bcBEhYJPT/guY4v9Gp1hDsjtIWQL+smVXfE46YACDNPyL+iPYvPcjK7LXh3B2RIBQpDhyx7RxDI7bOGtUOcuhytvi0EKe3DD7K5D+oppPjGOwE9Yz5wN//H/YEdrf5SfqESPFpXGUJHhvw2u9QtWW0u8K7KD4BS5Ql1XxP+J7OBo0VxsXTO+kNU6l9aWwIQYv5BHr33TyFGNueJ3RU8GxKzkKuqBp7VIkaqw4Lcv3K4ETtp+3Cfa13m0BiLCTLY9LgWRU59Bp/ZTed8t2K+EDKR5IjFqXK6pNJiKYiMw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Xen developer discussion <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 20 May 2022 06:25:02 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 20.05.2022 01:22, Demi Marie Obenour wrote:
> It is well known that mapping and unmapping grants is expensive, which
> is why blkback has persistent grants.  Could this cost be mitigated by
> batching, and if it was, would it affect the tradeoff of memcpy() vs
> grant table operations?

Which backend driver are you thinking about? The in-kernel Linux
xen-blkback already batches grant operations, afaics. Such
batching is helpful, but the main cost is assumed (known?) to be
with the (installing and) tearing down of the actual mappings of
the guest pages (into/)from backend address space.

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.