How to get Processor information

How to get Processor information

Post by David Weatherwa » Fri, 09 Feb 2001 01:05:25



I tried this site, and the perfpmr for 4.3.3.0 says page not found

Any other place to find this?

Thanks




>>I want to be able to get Processor information from my AIX box 4.3.3.0
>>- in a format similar to windows - like Pentium III 600Mhz or similar
>>- want to be more detailed then PowerPC, etc...

>One of the tools in the package from

>ftp://ftp.software.ibm.com/aix/tools/perftools/perfpmr/

>Is called lsc. It gives me this output:

># ./lsc                                                                        
>Please wait while we determine the processor megahertz rate ...
>attribute        value              description

>architecture     PowerPC            Processor architecture
>implementation   NorthStar          Processor Implementation
>version          PowerPC_RS64II     Processor version
>clock_speed      340.3              CPU clock speed in MHz (approximation)
>width            64                 Processor width (bits)
>ncpus            2                  Number of CPUs
>realmem          2097152            Amount of usable real memory (Kilobytes)
>cache_attrib     1                  Split instruction and data cache
>icache_size      64                 L1 instruction cache size (Kilobytes)
>icache_asc       1                  L1 instruction cache Associativity
>icache_block     128                L1 instruction cache block size (bytes)
>icache_line      128                L1 instruction cache line size (bytes)
>dcache_size      64                 L1 data cache size (Kilobytes)
>dcache_asc       2                  L1 data cache Associativity
>dcache_block     128                L1 data cache block size (bytes)
>dcache_line      128                L1 data cache line size (bytes)
>L2_cache_size    4096               L2 cache size (Kilobytes)
>L2_cache_asc     1                  L2 cache associativity
>tlb_attrib       3                  Combined instruction and data TLB
>tlb_size         512                TLB size (entries)
>tlb_asc          4                  TLB associativity
>resv_size        128                Size of reservation (bytes)
>priv_lck_cnt     0                  Spin lock count in supervisor mode
>prob_lck_cnt     0                  Spin lock count in problem state
>rtc_type         RTC_POWER_PC       RTC type
>virt_alias       0                  Hardware aliasing not supported
>cach_cong        0                  Number of page bits for cache synonym
>Xint             156250             Used in time base conversion
>Xfrac            53243              Used in time base conversion

 
 
 

1. getting the network interface information and default gateway information ??

hi,
  iam trying to get the network interface information and the default
information.After doing some googling i found out the relevant
structures and the ioctl calls for getting the interfaces information(
i suppose i have all that right).
struct ifconf(and using the ioctl SIOCGIFCONF).
there is another structure
struct ifreq
but i dont think i need that one.

Now how do i do to get the interface address(aliases also).i have
written a small program, but dont know where iam going wrong.the code
is

#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <net/if.h>
#include <netinet/in.h>

int
main(int argc, char* argv[])
{
    struct ifconf ifc;
    struct ifreq *ifr;
    struct sockaddr_in *sin;
    char buf[128];

    if ((s = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
        perror("socket");
        return 1;
    }

    ifc.ifc_buf = buf;
    ifc.ifc_len = sizeof(buf);
    if (ioctl(s, SIOCGIFCONF, &ifc) < 0) {
        perror("ioctl SIOCGIFCONF");
        return 1;
    }

    ifc.ifc_len /= sizeof(struct ifreq);
    for (i=0; i<ifc.ifc_len; i++) {
        ifr = (struct ifreq *) &ifc.ifc_req[i];
        sin = (struct sockaddr_in *) &ifr->ifr_addr;
        printf("%s \n",sin->sin_addr);
        }
    }
    return 0;

And how can i get the default gateway address within my program.

any help will be highly appreciated.

thanks
rohit

2. network printer

3. Intel processor stepping information

4. can't shutdown with 'shutdown'

5. Information about processors

6. minilinux and hard disk > 16 sectors

7. Processor Information

8. Cisco-2500 like Chassis

9. information about processor type ?

10. Q: How to get information about the type of processor

11. howt to get processor information

12. Processor information

13. Processor Information