Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Value under the CPU property?

Reply
 
Old 01-10-2008   #1 (permalink)
Cyberstorme


 
 

Value under the CPU property?

This may have already been answered. Any pointers is much appreciated.

When running get-process on one of our servers, the value returned for the
CPU property (for some of the processes) lists values in the thousands. I was
expecting the values to add upto 100%? Why would the value being shown be in
the 1000s range?

My System SpecsSystem Spec
Old 01-10-2008   #2 (permalink)
Karl Mitschke


 
 

Re: Value under the CPU property?

Hello Cyberstorme,
Quote:

> This may have already been answered. Any pointers is much appreciated.
>
> When running get-process on one of our servers, the value returned for
> the CPU property (for some of the processes) lists values in the
> thousands. I was expecting the values to add upto 100%? Why would the
> value being shown be in the 1000s range?
help get-process -full shows that the (s) next to CPU stands for seconds:

-- CPU(s): The amount of processor time that the process has used on all
processors, in seconds.

Karl


My System SpecsSystem Spec
Old 01-10-2008   #3 (permalink)
Marco Shaw [MVP]


 
 

Re: Value under the CPU property?

Cyberstorme wrote:
Quote:

> This may have already been answered. Any pointers is much appreciated.
>
> When running get-process on one of our servers, the value returned for the
> CPU property (for some of the processes) lists values in the thousands. I was
> expecting the values to add upto 100%? Why would the value being shown be in
> the 1000s range?
That value is the CPU time used up by the process.

PSH>(get-process powershell).cpu
1.34375

So far, the PowerShell process has used up 1.3 seconds of my CPU time
since my machine has started up.

You're looking for the current CPU% used?

Check this out:
http://www.leeholmes.com/blog/Access...owerShell.aspx

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Set Focus To Specific Property In Property Grid .NET General
How do I use the property of a property? PowerShell
How to set file property # to a value > 99 Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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