Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Value under the CPU property?

Closed Thread
 
Thread Tools Display Modes
Old 01-10-2008   #1 (permalink)
Cyberstorme
Guest


 

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?
Old 01-10-2008   #2 (permalink)
Karl Mitschke
Guest


 

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


Old 01-10-2008   #3 (permalink)
Marco Shaw [MVP]
Guest


 

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
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use the property of a property? John Vottero PowerShell 2 4 Weeks Ago 11:18 AM
Use my custom TypeDescriptor to obtains default Value on property inXAML Property Editor of Visual Studio 2008 azerty Avalon 0 04-14-2008 06:14 AM
Splitting a property Kari PowerShell 3 12-07-2007 07:55 AM
How to set file property # to a value > 99 KE7LYS Vista file management 2 05-07-2007 03:58 PM








Vistax64.com 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 2005-2008

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