mirror of
https://github.com/apache/impala.git
synced 2026-01-10 00:00:16 -05:00
ProcessStateInfo is an interface to grab process state information at runtime.
This contains information about I/O, Cgroup, Scheduler, Process status,
as well as the file descriptors that belong to the process.
I/O information is read from /proc/pid/io.
Cgroup information is read from /proc/pid/cgroup.
Scheduler information is read from /proc/pid/sched.
Process status information is read from /proc/pid/status.
File descriptors information is read from /proc/pid/fd.
Below is an example of the output of the ProcessStateInfo::DebugString().
Process State:
I/O:
Read: 45.79 MB
Write: 376.00 KB
Read I/O: 46572
Write I/O: 115
CGroups:
Hierarchy: 1
Subsystems: perf_event,blkio,net_cls,freezer,devices,memory,cpuacct,cpu,cpuset
Control Group: /
Schedule:
Sum Execute Time: 2258.779570
Max Wait Time: 19.888471
Sum Wait Time: 983.693238
Wait Count: 5587
Sum I/O Wait Time: 10638.834549
I/O Wait Count: 2366
Wakeup Count with cpu migration: 870
Switches: 5528
Voluntary Switches: 4270
Involuntary Switches: 1258
Process Priority: 120
Status:
Process ID: 18251
Thread Number: 196
VM Peak: 4.87 GB
VM Size: 4.87 GB
VM Lock: 0
VM Pin: 0
VM HWM: 203.31 MB
VM RSS: 203.31 MB
VM Data: 4.68 GB
VM Stk: 1012.00 KB
VM Exe: 38.07 MB
VM Lib: 40.41 MB
VM PTE: 1.41 MB
VM Swap: 0
Cpus Allowed List: 0-3
Mems Allowed List: 0
File Descriptors:
Number of File Descriptors: 584
Change-Id: I0e479b8d8671e590bae316b70b52c32a29331054
Reviewed-on: http://gerrit.cloudera.org:8080/42
Tested-by: Internal Jenkins
Reviewed-by: Henry Robinson <henry@cloudera.com>
30 lines
867 B
Cheetah
30 lines
867 B
Cheetah
<!--
|
|
Copyright 2012- Cloudera Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
{{! Template for / }}
|
|
{{>www/common-header.tmpl}}
|
|
<h2>Version</h2>
|
|
<pre>{{version}}</pre>
|
|
|
|
<h2>Hardware Info</h2>
|
|
<pre>{{cpu_info}} {{mem_info}} {{disk_info}}</pre>
|
|
|
|
<h2>OS Info</h2>
|
|
<pre>{{os_info}}</pre>
|
|
|
|
<h2>Process Info</h2>
|
|
<pre>{{process_state_info}}</pre>
|
|
{{>www/common-footer.tmpl}}
|