Accessing CPU utilization in UNIX

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default Accessing CPU utilization in UNIX

    Hi all,

    I'm working on a real-time database project under UNIX written in C and need
    to access some value for the CPU utilization (the time percentage of its
    time the CPU is not idle). I understand that the kstat library is useful for
    this
    purpose, but not exactly how.
    The kstat chain contains the information I need, but how do I know which
    name to look for in the chain and how to get the right data?

    Tips would be greatly appreciated. Thanks in advance.


    Mikael Björk Guest

  2. Similar Questions and Discussions

    1. JRUN using 90% plus CPU Utilization
      Not sure what to do with this server. It is running ms windows server 2003 with ColdFusion MX 7 Standard. Java VM Version 1.4.2_09-b05. The server...
    2. SQL Server Utilization
      Hi, Is there anyway I can limit the processing power for SQL server 2000? Everytime I do a big import it kills my webserver. Thankyou
    3. Accessing MS docs on A unix server
      So far all my flash scripting has been done on a local unix server. I am venturing out and wanting to acces data, documents on remote servers. My...
    4. IIS 5.0 CPU 100% utilization problem
      Hi, I have an IIS 5.0 problem where my CPU utilization is at 100%. My specs are: Two 4Gb, 4 CPU machines ( with 70 users shared across both...
    5. Pagefile utilization
      In AIX4.3.3, $ lsps -s Total Paging Space Percent Used 3072MB 13% Does the percent used show the current usage of the pagefile or...
  3. #2

    Default Re: Accessing CPU utilization in UNIX

    Mikael Björk wrote:
    > Hi all,
    >
    > I'm working on a real-time database project under UNIX written in C and need
    > to access some value for the CPU utilization (the time percentage of its
    > time the CPU is not idle). I understand that the kstat library is useful for
    > this
    > purpose, but not exactly how.
    > The kstat chain contains the information I need, but how do I know which
    > name to look for in the chain and how to get the right data?
    Which Unix, what version?

    --
    + Regards, +
    + Nick +
    + +
    + My email address is real +

    Nicholas Bachmann Guest

  4. #3

    Default Re: Accessing CPU utilization in UNIX

    I'm using Solaris 5.8.

    "Nicholas Bachmann" <usenet@not-real.org> wrote in message
    news:h69u7c.5r4.ln@bachmann.ath.cx...
    > Mikael Björk wrote:
    > > Hi all,
    > >
    > > I'm working on a real-time database project under UNIX written in C and
    need
    > > to access some value for the CPU utilization (the time percentage of its
    > > time the CPU is not idle). I understand that the kstat library is useful
    for
    > > this
    > > purpose, but not exactly how.
    > > The kstat chain contains the information I need, but how do I know which
    > > name to look for in the chain and how to get the right data?
    >
    > Which Unix, what version?
    >
    > --
    > + Regards, +
    > + Nick +
    > + +
    > + My email address is real +
    >

    Mikael Björk Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139