Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Re: getting cpu load

    On Tue, 15 Jul 2003 17:11:29 +0000, shea martin wrote:
    > Is there a system call to get the current cpu load of the system??
    Are you referring to the load average as reported by utilities like
    uptime(1)? If so my first recommendation is to not even bother. The load
    average doesn't mean what many people intuitively expect. Search this
    newsgroup for previous discussions of how it is calculated. Specifically,
    it can include factors having nothing to do with what percentage of
    the time each CPU is working versus idle.

    If you're looking for the percentage of time each CPU is idle/non-idle
    the answer is: it's system dependent. You'll have to tell us which OS
    and version you're working with. If it's Linux or FreeBSD you'll find the
    source for those systems to be a good source for answers to this type of
    question.

    Kurtis D. Rader Guest

  2. Similar Questions and Discussions

    1. How can I load load Additional extensions ?
      My OS is Winxp . My web server is apache 2 which is installed as a NT service . My php version is 4.32 , and I extracted it into "c:\php" . I...
    2. my swf doesn't load
      Dnia Fri, 13 Aug 2004 10:16:47 GMT, decorix <decorix@hotmail.com> napisał: My english is poor :) Some serv change filenames (for example:...
    3. I want to load a swf from another swf?
      I want to build a preloader in a movie that loads another hidden movie. After the hidden movie is loaded it become visible and the preloader...
    4. my .swf won't load
      Do you have a limit on your file sizes for that site? Your 6 meg file is there.. Portfolio.swf, but there is another file with lower case p.....
    5. load of ram
      Hi, for a long time we want to detect what is the ram load. Now my question: Is there an easy way, to get the information for the size of a...
  3. #2

    Default Re: getting cpu load

    Dnia Tue, 15 Jul 2003 17:11:29 GMT, shea martin napisał(a):
    > Is there a system call to get the current cpu load of the system??
    On Linux read it from /proc/loadavg

    --
    [ Wojtek Walczak - gminick (at) underground.org.pl ]
    [ <http://gminick.linuxsecurity.pl/> ]
    [ "...rozmaite zwroty, matowe od patyny dawnosci." ]

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