2013-04-25 26 views
6

Tôi đang sử dụng Powershell để trả về giá trị cho các quầy hiệu suất nhất định và tôi thấy rằng nó đang đề cập đến "Giá trị gia tăng" khi trình bày thông tin. Tôi đang tìm kiếm mỗi lần truy cập để được báo cáo trên chính nó, vì vậy tôi có thể thực hiện phân tích như nhìn thấy giá trị phân vị thứ 90 hoặc tối đa/phút, vì vậy tôi cần biết làm thế nào nó đến với Giá trị nấu chín. Đây là mã Tôi hiện đang làm việc với:"Giá trị nấu chín" quay trở lại trong lệnh rút tiền của quầy của Powershell là gì?

$computer   = $ENV:Computername 
$instance   = "_total" 

@("\\$Computer\PhysicalDisk(*)\Current Disk Queue Length", 
    "\\$Computer\PhysicalDisk(*)\% Disk Time", 
    "\\$Computer\PhysicalDisk(*)\Avg. Disk Queue Length", 
    "\\$Computer\PhysicalDisk(*)\Avg. Disk Read Queue Length", 
    "\\$Computer\PhysicalDisk(*)\Avg. Disk Write Queue Length", 
    "\\$Computer\PhysicalDisk(*)\Avg. Disk sec/Transfer" 
    "\\$Computer\PhysicalDisk(*)\Avg. Disk sec/Read", 
    "\\$Computer\PhysicalDisk(*)\Avg. Disk sec/Write") |% { 
    (Get-Counter $_.replace("*",$instance)).CounterSamples } | 
    Select-Object Path,CookedValue | 
    Format-Table -AutoSize 


# Retrieve the current Processor performance counter information. 
$computer   = $ENV:Computername 
$instance   = "_total" 
@("\\$Computer\Processor(*)\% Processor Time", 
    "\\$Computer\Processor(*)\% User Time", 
    "\\$Computer\Processor(*)\% Privileged Time", 
    "\\$Computer\Processor(*)\Interrupts/sec", 
    "\\$Computer\Processor(*)\% DPC Time", 
    "\\$Computer\Processor(*)\DPCs Queued/sec" 
    "\\$Computer\Processor(*)\% Idle Time", 
    "\\$Computer\Processor(*)\% Interrupt Time") |% { 
    (Get-Counter $_.replace("*",$instance)).CounterSamples } | 
    Select-Object Path,CookedValue | 
    Format-Table -AutoSize 

# Retreive the current Memory counter information 
$computer   = $ENV:Computername 
$instance   = "_total" 
@("\\$Computer\Memory\Page Faults/sec", 
    "\\$Computer\Memory\Available Bytes", 
    "\\$Computer\Memory\Committed Bytes", 
    "\\$Computer\Memory\Commit Limit", 
    "\\$Computer\Memory\Pages/sec", 
    "\\$Computer\Memory\Free System Page Table Entries" 
    "\\$Computer\Memory\Pool Paged Resident Bytes", 
    "\\$Computer\Memory\Available MBytes") |% { 
    (Get-Counter $_.replace("*",$instance)).CounterSamples } | 
    Select-Object Path,CookedValue | 
    Format-Table -AutoSize 

Trả lời

6

Theo https://blogs.technet.com/b/nexthop/archive/2011/06/02/gpsperfcounters.aspx, một "CookedValue" là:

bộ đếm hiệu suất thường có giá trị nguyên, giá trị thứ hai, và các giá trị nấu chín. Giá trị thô và giá trị thứ hai là nguyên liệu thô được sử dụng bởi bộ đếm hiệu suất và "giá trị nấu chín" là kết quả của việc "nấu" những nguyên liệu đó thành thứ gì đó để tiêu thụ cho con người.

Vì vậy, rõ ràng CookedValue là kết quả của việc kết hợp dữ liệu thô của bộ đếm để có được giá trị có thể sử dụng mà bạn có thể hiểu và làm việc.

+0

Điều đó có ý nghĩa. Nhìn vào các giá trị một lần nữa trên một hệ thống không nhấn mạnh, chúng dường như có ý nghĩa trong bối cảnh của bộ đếm mà chúng đại diện. Tôi vẫn muốn tôi biết toán học mà họ đang làm để đạt được giá trị, nhưng điều đó giúp tôi có được những gì tôi cần bây giờ. Cảm ơn! –