Michael,
I believe the system is aware of what it's running, here's some
additional information. Nmon reports it incorrectly as being a Power4.
[EMAIL PROTECTED]:/ # odmget -q name=proc0 CuAt
CuAt:
name = "proc0"
attribute = "type"
value = "PowerPC_POWER5"
type = "R"
generic = "D"
rep = "sl"
nls_index = 49
CuAt:
name = "proc0"
attribute = "frequency"
value = "1902096000"
type = "R"
generic = "D"
rep = "s"
nls_index = 69
CuAt:
name = "proc0"
attribute = "smt_threads"
value = "2"
type = "R"
generic = "D"
rep = ""
nls_index = 82
CuAt:
name = "proc0"
attribute = "smt_enabled"
value = "true"
type = "R"
generic = "D"
rep = ""
nls_index = 83
[EMAIL PROTECTED]:/opt/monitor_tools # rpm -qi ganglia-gmond
Name : ganglia-gmond Relocations: (not relocateable)
Version : 3.0.7 Vendor: Ganglia Development
Team <[EMAIL PROTECTED]>
Release : 1 Build Date: Tue Mar 25 16:43:49 CDT
2008
Install date: Thu Jul 31 13:43:34 CDT 2008 Build Host: aix53.perzl.org
Group : System Environment/Base Source RPM: ganglia-3.0.7-1.src.rpm
Size : 868977 License: BSD
URL : http://ganglia.info/
Summary : Ganglia Monitor daemon http://ganglia.sourceforge.net/
Description :
Ganglia is a scalable, real-time monitoring and execution environment
with all execution requests and statistics expressed in an open
well-defined XML format.
This gmond daemon provides the ganglia service within a single cluster or
Multicast domain.
Nathan Ave-Lallemant
________________________________
From: Michael Perzl [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2008 3:45 PM
To: Bernard Li
Cc: Ave-Lallemant, Nathan P; [email protected]
Subject: Re: [Ganglia-general] cpu_in_lpar Metric Calculation
Hi Bernard,
the code to determie machine_type is actually
g_val_t
machine_type_func( void )
{
g_val_t val;
perfstat_cpu_total_t c;
if (perfstat_cpu_total( NULL, &c, sizeof( perfstat_cpu_total_t ), 1 ) == -1)
strcpy( val.str, "Unknown type" );
else
strncpy( val.str, c.description, MAX_G_STRING_SIZE );
return( val );
}
and that should be read every time. From the man page of perfstat_cpu_total:
The perfstat_cpu_total subroutine retrieves information from the ODM database.
This information is
automatically cached into a dictionary which is assumed to be frozen once
loaded. The perfstat_reset
subroutine must be called to flush the dictionary whenever the machine
configuration has changed.
What does nmon say, does it produce the correct value ?
What is the output of "odmget -q "name=proc0" CuAt" ?
Regards,
Michael
Bernard Li wrote:
Hi Nathan:
On Fri, Aug 1, 2008 at 7:14 AM, Ave-Lallemant, Nathan P
<[EMAIL PROTECTED]><mailto:[EMAIL PROTECTED]> wrote:
Incorrect fields:
machine_type (still lists PowerPC_POWER4 on a P5 system)
I vaguely remember something about Ganglia reporting the arch of the
system which it was built on -- is it possible that the binaries were
built on a PowerPC_POWER4 system and not P5 system?
Cheers,
Bernard
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ganglia-general mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/ganglia-general
________________________________
CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are
intended solely for the use of the individual or entity to whom they are
addressed and may contain confidential and privileged information protected by
law. If you received this e-mail in error, any review, use, dissemination,
distribution, or copying of the e-mail is strictly prohibited. Please notify
the sender immediately by return e-mail and delete all copies from your system.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general