From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v4 4/9] sysctl: Make XEN_SYSCTL_numainfo a little more efficient Date: Tue, 10 Mar 2015 14:34:23 +0000 Message-ID: <54FF00EF.1060804@citrix.com> References: <1425954475-4913-1-git-send-email-boris.ostrovsky@oracle.com> <1425954475-4913-5-git-send-email-boris.ostrovsky@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1425954475-4913-5-git-send-email-boris.ostrovsky@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Boris Ostrovsky , jbeulich@suse.com, keir@xen.org, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, wei.liu2@citrix.com Cc: elena.ufimtseva@oracle.com, dario.faggioli@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 10/03/15 02:27, Boris Ostrovsky wrote: > Make sysctl NUMA topology query use fewer copies by combining some > fields into a single structure and copying distances for each node > in a single copy. > > Instead of using max_node_index for passing number of nodes keep this > value in num_nodes: almost all uses of max_node_index required adding > or subtracting one to eventually get to number of nodes anyway. > > Replace INVALID_NUMAINFO_ID with XEN_INVALID_MEM_SZ and add > XEN_INVALID_NODE_DIST. > > Signed-off-by: Boris Ostrovsky I have the same concerns with the interface as patch 3, but other comments. ~Andrew