[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::axp-developer

Title:Alpha Developer Support
Notice:[email protected], 800-332-4786
Moderator:HYDRA::SYSTEM
Created:Mon Jun 06 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3722
Total number of notes:11359

3578.0. "Landmark Systems Corporation" by HYDRA::AXPDEVELOPER (Alpha Developer support) Mon May 05 1997 10:10

    Company Name :  Landmark Systems Corporation
    Contact Name :  Shyam R. Harohalli
    Phone        :  (703) 902 8124
    Fax          :  
    Email        :  [email protected]
    Date/Time in :   5-MAY-1997 09:10:22
    Entered by   :  Mark Schafer
    SPE center   :  MRO

    Category     :  unix
    OS Version   :  
    System H/W   :  


    Brief Description of Problem:
    -----------------------------

From:	SMTP%"[email protected]"  2-MAY-1997 18:34:09.28
To:	[email protected]
CC:	
Subj:	CPU Information.

Return-Path: [email protected]
Received: by vaxsim.mro.dec.com (UCX V4.1-12, OpenVMS V6.2 VAX);
	Fri, 2 May 1997 18:33:59 -0400
Received: from fwout.landmark.com by mail13.digital.com (8.7.5/UNX 1.5/1.0/WV)
	id SAA03593; Fri, 2 May 1997 18:29:18 -0400 (EDT)
Received: by fwout.landmark.com; id SAA07968; Fri, 2 May 1997 18:28:27 -0400 (EDT)
Received: from saturn.landmark.com(192.246.113.34) by fw.landmark.com via smap (3.2)
	id xma007966; Fri, 2 May 97 18:28:16 -0400
Received: from proda.landmark.com (proda.landmark.com [199.100.108.22]) by Landmark.Com (Howdy Partner/nope) with ESMTP id SAA17150 for <[email protected]>; Fri, 2 May 1997 18:18:29 -0400 (EDT)
From: Shyam Harahalli <[email protected]>
Received: (from shyamh@localhost)
          by proda.landmark.com (8.8.4/8.8.4)
	  id SAA31790 for [email protected]; Fri, 2 May 1997 18:18:28 -0400
Message-Id: <[email protected]>
Subject: CPU Information.
To: [email protected]
Date: Fri, 2 May 1997 18:18:28 -0400 (EDT)
In-Reply-To: <[email protected]> from "[email protected]" at Apr 14, 97 02:58:29 pm
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text


	Hello,
	I am trying to collect certain information regarding the cpu
	utilization.  I used the (getsysinfo(GSI_CPU_INFO, &cpuin_d,...)
	where cpuin_d is a structure of type cpu_info, defined in
	/usr/include/machine/hal_sysinfo.h.

	The structure cpu_info is defined as follows:
struct cpu_info {
        int     current_cpu;
        int     cpus_in_box;
        int     cpu_type;
        int     ncpus;
        ulong_t cpus_present;
        ulong_t cpus_running;
        long    unused[4];      /* future expansion */
};


	I happened to be comparing this cpu structures with other platforms
	- HP-UX, AIX and Solaris.  In all these three, the cpu_info returns
	additional statistics such as CPU-states, context swithces.  Is there
	a method in Digital UNIX, where we can get these statistics per 
	processor.  I have given a sample of cpu-info structure in Solaris
	below.  This info is extracted using kstat interface on Solaris.	

---------
typedef struct cpu_sysinfo {
    ulong   cpu[CPU_STATES]; /* CPU utilization         */
    ulong   wait[W_STATES]; /* CPU wait time breakdown      */
    ulong   bread;      /* physical block reads         */
    ulong   bwrite;     /* physical block writes (sync+async)   */
    ulong   lread;      /* logical block reads          */
    ulong   lwrite;     /* logical block writes         */
    ulong   phread;     /* raw I/O reads            */
    ulong   phwrite;    /* raw I/O writes           */
    ulong   pswitch;    /* context switches         */
    ulong   trap;       /* traps                
.
.
---------
	Thanks,

	Shyam
	

-- 
---------------------------------------------------------
Shyam R. Harohalli
Landmark Systems Corporation
8000 Towers Crescent Drive
Vienna, Virginia 22182-2700
Telephone:	(703) 902 8124 (Work)
		(703) 352 4929 (Home)
---------------------------------------------------------

T.RTitleUserPersonal
Name
DateLines