第六十章 使用 ^PERFSAMPLE 監控進程 - 預定義分析示例 第六十章 使用 ^PERFSAMPLE 監控進程 - 預定義分析示例 預定義分析示例 創建自定義分析

第六十章 使用 ^PERFSAMPLE 監控進程 - 預定義分析示例

預定義分析示例

以下是從過程狀態維度開始的分析示例。

在此示例中,^PERFSAMPLE319994 個樣本中找到了 76755 個處於可樣本狀態的進程樣本(如果選擇了忽略空閒的選項,則爲非空閒):

– PERFSAMPLE for Local Process Activity. 3.89s at 11/17/2020 16:59:59
76755 events in 319994 samples [24.0 %-total] | CPULoad* 8.22
Multiple jobs included: 2191 samples per job
----------------------------'?' for help----------------------------
Process State [24.0 %-total]
GGET [8.46 %-total]
RUN [5.88 %-total]
GDEF [3.16 %-total]
GSETW [1.63 %-total]
BSETW [1.21 %-total]
GDEFW [1.18 %-total]
GGETW [0.931 %-total]
SEMW [0.685 %-total]
GSET [0.311 %-total]
LOCKW [0.144 %-total]
LOCK [0.0644 %-total]
INCRW [0.0641 %-total]
BSET [0.0513 %-total]

最初,這些值顯示爲樣本總數的百分比。在這種情況下采樣的最常見的 Process State 值是 GGET,佔 319994 個樣本總數的 8.46%

c 循環顯示此計數的顯示方式。例如,可以將上述信息顯示爲樣本的原始計數:

Process State [76755]
> GGET [27083]
RUN [18823]
GDEF [10121]

還可以將信息查看爲合格樣本的百分比(在這種情況下,具有非空閒進程狀態的樣本):

Process State [24.0 %-total]
> GGET [35.3 %-subset]
RUN [24.5 %-subset]
GDEF [13.2 %-subset]

最後,可以查看每個狀態的平均併發作業數:

Process State [24.0 %-total]
GGET [12.4 jobs]
RUN [8.59 jobs]
GDEF [4.62 jobs]

使用右箭頭鍵選擇 GGET 移動到下一個維度,爲第一個維度具有值 GGET 的樣本排序該維度的值。可以使用箭頭鍵在維度之間自由導航。

創建自定義分析

從主登錄頁面選擇“新建分析”選項以創建自定義分析。還可以使用以下快捷方式之一創建自定義分析:

Key Input Shortcut
+ key 向當前分析添加維度(在分析中時)
* key 以當前項目作爲第一個維度開始新的分析

添加新分析會將帶到以下屏幕:

New Analysis:

Specify a comma-delimited list of dimensions upon which to analyze samples.
For example, "state,ns,rou" means first count each unique state the sampled
processes were in; then for each state, count the namespace from the samples
in that state; and finally for each state->namespace pair, count each unique
routine name. In other words, report on routines by namespace by state.

The following dimensions are available:
cpu - Using CPU? (process state indicates expected CPU use)
ns - Namespace (current namespace)
pid - PID (process ID)
rou - Routine (name of current routine)
state - Process State (process state string, e.g. GSETW)
trace - Kernel Trace (alternative to 'state' w/ kernel-level detail)
waits - Kernel Wait State (kernel-level condition that delayed the process)
wtrace - Reverse Kernel Trace (revese kernel trace, stop at any wait state)

Enter dimension list:

從這裏,按照提示的描述輸入想要分析的維度列表。按下 Enter 後,以按上述方式導航分析。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章