[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NU
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes |
Date: |
Thu, 27 Apr 2017 10:33:15 +0100 |
User-agent: |
Mutt/1.7.1 (2016-10-04) |
On Thu, Apr 27, 2017 at 11:27:15AM +0200, Andrew Jones wrote:
> On Thu, Apr 27, 2017 at 10:35:58AM +0800, He Chen wrote:
> > This patch is going to add SLIT table support in QEMU, and provides
> > additional option `dist` for command `-numa` to allow user set vNUMA
> > distance by QEMU command.
> >
> > With this patch, when a user wants to create a guest that contains
> > several vNUMA nodes and also wants to set distance among those nodes,
> > the QEMU command would like:
> >
> > #define MAX_NODES 128
> > #define NUMA_NODE_UNASSIGNED MAX_NODES
> > +#define NUMA_DISTANCE_MIN 10
> > +#define NUMA_DISTANCE_DEFAULT 20
> > +#define NUMA_DISTANCE_MAX 254
> > +#define NUMA_DISTANCE_UNREACHABLE 255
> > +# @NumaDistOptions:
> > +#
> > +# Set the distance between 2 NUMA nodes.
> > +#
> > +# @src: source NUMA node.
> > +#
> > +# @dst: destination NUMA node.
> > +#
> > +# @val: NUMA distance from source node to destination node.
> > +# When a node is unreachable from another node, set the distance
> > +# between them to 255.
We should probably also document that @val must be greater than 10,
unless src == dst, in which case it must be equal to 10.
> > +#
> > +# Since: 2.10
> > +##
> > +{ 'struct': 'NumaDistOptions',
> > + 'data': {
> > + 'src': 'uint16',
> > + 'dst': 'uint16',
> > + 'val': 'uint8' }}
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes, He Chen, 2017/04/26
- Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes, Igor Mammedov, 2017/04/27
- Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes, Andrew Jones, 2017/04/27
- Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes,
Daniel P. Berrange <=
- Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes, Eric Blake, 2017/04/27
- Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes, Igor Mammedov, 2017/04/27
- Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes, Markus Armbruster, 2017/04/27
- Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes, Igor Mammedov, 2017/04/27
- Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes, Eduardo Habkost, 2017/04/27
- Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes, He Chen, 2017/04/28
- Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes, Igor Mammedov, 2017/04/28