search for: xenstat_get_nod

Displaying 4 results from an estimated 4 matches for "xenstat_get_nod".

Did you mean: xenstat_get_node
2006 Jul 28
1
RE: [PATCH] Minor fix to xentop to stop it dying whendomains go away at the wrong time
...a retryable error occurs (with a small 1/4s delay so we don''t > spin > > wildly whilst things stabilize). > > Thinking about this some more, those retryable failures will generally > mean that a domain is being created or being destroyed. In those two > cases, perhaps xenstat_get_node() should simply prune the problematic > domain from the list it returns? That would avoid unbounded delay in > xenstat_get_node(). > > I think what you have so far is okay: fatal error in a collector causes > error in the caller; recoverable error could cause domain to be pruned &g...
2006 Jul 31
1
[PATCH 5/6] xen, tools: calculate nr_cpus via num_online_cpus
....nr_nodes); + return op.u.physinfo.nr_cpus; } diff -r 51045f276c90 tools/xenstat/libxenstat/src/xenstat.c --- a/tools/xenstat/libxenstat/src/xenstat.c Mon Jul 31 10:48:48 2006 -0500 +++ b/tools/xenstat/libxenstat/src/xenstat.c Mon Jul 31 10:49:10 2006 -0500 @@ -226,9 +226,7 @@ xenstat_node *xenstat_get_node(xenstat_h } node->cpu_hz = ((unsigned long long)physinfo.cpu_khz) * 1000ULL; - node->num_cpus = - (physinfo.threads_per_core * physinfo.cores_per_socket * - physinfo.sockets_per_node * physinfo.nr_nodes); + node->num_cpus = physinfo.nr_cpus; node->tot_mem = ((unsigned...
2007 Oct 19
4
[PATCH] nr_cpus calculation problem due to incorrect sockets_per_node
Testing on an 8-node 128-way NUMA machine has exposed a problem with Xen''s nr_cpus calculation. In this case, since Xen cuts off recognized CPUs at 32, the machine appears to have 16 CPUs on the first and second nodes and none on the remaining nodes. Given this asymmetry, the calculation of sockets_per_node (which is later used to calculate nr_cpus) is incorrect:
2006 Sep 29
4
[PATCH 4/6] xen: export NUMA topology in physinfo hcall
...nfo(xc_handle, &physinfo); if ( ret != 0 ) diff -r 6f3c6fb05af3 tools/xenstat/libxenstat/src/xenstat.c --- a/tools/xenstat/libxenstat/src/xenstat.c Mon Sep 11 13:45:23 2006 -0500 +++ b/tools/xenstat/libxenstat/src/xenstat.c Sat Sep 16 08:17:13 2006 -0500 @@ -222,6 +222,9 @@ xenstat_node *xenstat_get_node(xenstat_h /* Store the handle in the node for later access */ node->handle = handle; + + /* ensure memory_chunks and node_to_cpu are NULL */ + memset(&physinfo, 0, sizeof(physinfo)); /* Get information about the physical system */ if (xc_physinfo(handle->xc_handle, &p...