host_basic_info
host_basic_info
- Subject: host_basic_info
- From: Shaun Wexler <email@hidden>
- Date: Mon, 9 May 2005 22:27:00 -0700
I would like some clarification for the new fields in struct
host_basic_info in Tiger, anticipating support for cpu's with
multiple cores.
struct host_basic_info {
// PANTHER:
integer_t max_cpus; /* max number of CPUs
possible */
integer_t avail_cpus; /* number of CPUs now
available */
natural_t memory_size; /* size of memory in
bytes, capped at 2 GB */
cpu_type_t cpu_type; /* cpu type */
cpu_subtype_t cpu_subtype; /* cpu subtype */
// TIGER adds:
cpu_threadtype_t cpu_threadtype; /* cpu threadtype */
integer_t physical_cpu; /* number of physical
CPUs now available */
integer_t physical_cpu_max; /* max number of
physical CPUs possible */
integer_t logical_cpu; /* number of logical
cpu now available */
integer_t logical_cpu_max; /* max number of
logical CPUs possible */
uint64_t max_mem; /* actual size of
physical memory */
};
In Panther I used max_cpus to determine the max number of worker
threads that should be spawned for a particular purpose. Does this
equate to physical_cpu_max or logical_cpu_max in Darwin 8.0.0? I
need to use the largest of these values. I suppose that any *new*
hardware will not run Panther anyway, but the question remains the
same: which is largest, and which value will be used for max_cpus?
Also, I couldn't find anything except 0 for cpu_threadtype; are there
other values of concern yet?
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden