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]> 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]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

-------------------------------------------------------------------------
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

Reply via email to