ps command with dual CPU

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

  1. #1

    Default ps command with dual CPU

    Hi,

    I would like to know the percentage of CPU that my program using. My
    machine has dual CPU and I used ps command to find out the cpu usage.
    However, I don't know whether the value of pcpu is the actual cpu
    usage of my program or I need to multiply it by two for the actual cpu
    usage.

    Thanks for the answer.

    Regards,
    Lek
    Pongthai Guest

  2. Similar Questions and Discussions

    1. Dual mail delivery from scheduled task on dual-instanceCFMX7 Enterprise system
      Hi all, first of all apologies in case this has been solved somewhere, but after a day of looking through forums and the web, I can not find...
    2. RUN/execute a Command-Line command from an ASP page
      Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2...
    3. Windows Explorer Right Click Command (+ Custom Command Script)
      Ok got a tricky question about custom scripts, I would like to add a Windows Explorer Right Click Command - that allows me to select an image/s...
    4. Multi command files and running them from the command prompt
      Use the -td§ option . Details are in the section titled Command Line Processor Options in the Command Reference. "Derek Clarkson"...
    5. Dual Xeon Linux vs. dual G5 : Where can I find direct speed comparison?
      It it hype or has apple blown away the x86 world? Any pointers most appreciated. Thanks Jim
  3. #2

    Default Re: ps command with dual CPU

    On Fri, 14 May 2004 01:36:48 -0700, "Michael Vilain <vilain@spamcop.net>" <> wrote:
    >In article <4bf99b6f.0405132021.4c83b864@posting.google.com >,
    > [email]pongthai@msn.com[/email] (Pongthai) wrote:
    >> I would like to know the percentage of CPU that my program using. My
    >> machine has dual CPU and I used ps command to find out the cpu usage.
    >> However, I don't know whether the value of pcpu is the actual cpu
    >> usage of my program or I need to multiply it by two for the actual cpu
    >> usage.
    >Unless your program is threaded, at most it will use only 1 CPU cycling
    >between waiting for I/O, CPU, or paging. A single-threaded application
    >cannot use both CPUs at once. Unless you re-write it to run using
    >threads, you're out of luck.
    Or the applications uses any resource that can be managed on the other CPU,
    such as the file system, video graphics, etc.

    TCS 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