search for: get_num_cpus

Displaying 5 results from an estimated 5 matches for "get_num_cpus".

2009 Aug 24
2
Number of CPU's
Any way to get access to the number of CPU's, optionally their type, from within R? In linux I can just read /proc/cpuinfo but for win/mac ? Thanks! H?vard -- H?vard Rue Department of Mathematical Sciences Norwegian University of Science and Technology N-7491 Trondheim, Norway Voice: +47-7359-3533 URL : http://www.math.ntnu.no/~hrue Fax : +47-7359-3524 Email: havard.rue
2006 Jul 31
1
[PATCH 5/6] xen, tools: calculate nr_cpus via num_online_cpus
...iB info[''total_memory''] = info[''total_memory''] / 1024 diff -r 51045f276c90 tools/xenmon/xenbaked.c --- a/tools/xenmon/xenbaked.c Mon Jul 31 10:48:48 2006 -0500 +++ b/tools/xenmon/xenbaked.c Mon Jul 31 10:49:10 2006 -0500 @@ -462,10 +462,7 @@ unsigned int get_num_cpus(void) xc_interface_close(xc_handle); opts.cpu_freq = (double)op.u.physinfo.cpu_khz/1000.0; - return (op.u.physinfo.threads_per_core * - op.u.physinfo.cores_per_socket * - op.u.physinfo.sockets_per_node * - op.u.physinfo.nr_nodes); + return op.u.phy...
2006 Aug 14
0
[PATCH] remove another xc_dom0_op() user
...Levon <john.levon@sun.com> diff -r 09bc238664cb -r dc12f0942649 tools/xenmon/xenbaked.c --- a/tools/xenmon/xenbaked.c Mon Aug 14 15:40:36 2006 +0100 +++ b/tools/xenmon/xenbaked.c Mon Aug 14 23:57:43 2006 +0100 @@ -444,14 +444,11 @@ struct t_rec **init_rec_ptrs(struct t_bu */ unsigned int get_num_cpus(void) { - dom0_op_t op; + xc_physinfo_t physinfo; int xc_handle = xc_interface_open(); int ret; - op.cmd = DOM0_PHYSINFO; - op.interface_version = DOM0_INTERFACE_VERSION; - - ret = xc_dom0_op(xc_handle, &op); + ret = xc_physinfo(xc_handle, &physinfo); i...
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
...node_to_cpu'' ] return [[k, info[k]] for k in ITEM_ORDER] diff -r 6f3c6fb05af3 tools/xenmon/xenbaked.c --- a/tools/xenmon/xenbaked.c Mon Sep 11 13:45:23 2006 -0500 +++ b/tools/xenmon/xenbaked.c Sat Sep 16 08:17:13 2006 -0500 @@ -448,6 +448,9 @@ unsigned int get_num_cpus(void) int xc_handle = xc_interface_open(); int ret; + /* ensure memory_chunks and node_to_cpu are NULL */ + memset(&physinfo, 0, sizeof(physinfo)); + ret = xc_physinfo(xc_handle, &physinfo); if ( ret != 0 ) diff -r 6f3c6fb05af3 tools/xenstat/libxenstat/src/xens...