Package oshi.driver.linux.proc
Enum ProcessStat.PidStat
- All Implemented Interfaces:
Serializable
,Comparable<ProcessStat.PidStat>
- Enclosing class:
- ProcessStat
Enum corresponding to the fields in the output of
/proc/[pid]/stat
-
Enum Constant Summary
Enum ConstantDescriptionAddress below program command-line arguments (argv) are placed.Address above which program command-line arguments (argv) are placed.The bitmap of blocked signals, displayed as a decimal number.Guest time of the process's children, measured in clock ticks.The number of major faults that the process's waited-for children have made.The number of minor faults that the process's waited-for children have made.Cumulative nswap for child processes (not maintained).The filename of the executable.Amount of time that this process's waited-for children have been scheduled in kernel mode, measured in clock ticks.Amount of time that this process's waited-for children have been scheduled in user mode, measured in clock ticks.Aggregated block I/O delays, measured in clock ticks (centiseconds).Address below which program initialized and uninitialized (BSS) data are placed.The address below which program text can run.Address below which program environment is placed.Address above which program environment is placed.The thread's exit status in the form reported by waitpid(2).Signal to be sent to parent when we die.The kernel flags word of the process.Guest time of the process (time spent running a vir‐ tual CPU for a guest operating system), measured in clock ticks.The time in jiffies before the next SIGALRM is sent to the process due to an interval timer.The current EIP (instruction pointer).The current value of ESP (stack pointer), as found in the kernel stack page for the process.The number of major faults the process has made which have required loading a memory page from disk.The number of minor faults the process has made which have not required loading a memory page from disk.The nice value (see setpriority(2)), a value in the range 19 (low priority) to -20 (high priority).Number of pages swapped (not maintained).Number of threads in this process.The process group ID of the process.The process ID.Scheduling policy (see sched_setscheduler(2)).The PID of the parent of this process.For processes running a real-time scheduling policy (policy below; see sched_setscheduler(2)), this is the negated scheduling priority, minus one; that is, a number in the range -2 to -100, corresponding to real-time priorities 1 to 99.CPU number last executed on.The ID of the foreground process group of the controlling terminal of the process.Resident Set Size: number of pages the process has in real memory.Current soft limit in bytes on the rss of the process; see the description of RLIMIT_RSS in getrlimit(2).Real-time scheduling priority, a number in the range 1 to 99 for processes scheduled under a real-time policy, or 0, for non-real-time processes (see sched_setscheduler(2)).The session ID of the process.The bitmap of caught signals, displayed as a decimal number.The bitmap of ignored signals, displayed as a decimal number.The bitmap of pending signals, displayed as a decimal number.Address above which program heap can be expanded with brk(2).Address above which program initialized and uninitialized (BSS) data are placed.The address above which program text can run.The address of the start (i.e., bottom) of the stack.The time the process started after system boot, in clock ticks.One of the following characters, indicating process state:Amount of time that this process has been scheduled in kernel mode, measured in clock ticks.The controlling terminal of the process.Amount of time that this process has been scheduled in user mode, measured in clock ticks.Virtual memory size in bytes.This is the "channel" in which the process is waiting. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessStat.PidStat
Returns the enum constant of this type with the specified name.static ProcessStat.PidStat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PID
The process ID. -
COMM
The filename of the executable. -
STATE
One of the following characters, indicating process state:R Running
S Sleeping in an interruptible wait
D Waiting in uninterruptible disk sleep
Z Zombie
T Stopped (on a signal) or (before Linux 2.6.33) trace stopped
t Tracing stop (Linux 2.6.33 onward)
W Paging (only before Linux 2.6.0)
X Dead (from Linux 2.6.0 onward)
x Dead (Linux 2.6.33 to 3.13 only)
K Wakekill (Linux 2.6.33 to 3.13 only)
W Waking (Linux 2.6.33 to 3.13 only)
P Parked (Linux 3.9 to 3.13 only)
-
PPID
The PID of the parent of this process. -
PGRP
The process group ID of the process. -
SESSION
The session ID of the process. -
TTY_NR
The controlling terminal of the process. (The minor device number is contained in the combination of bits 31 to 20 and 7 to 0; the major device number is in bits 15 to 8.) -
PTGID
The ID of the foreground process group of the controlling terminal of the process. -
FLAGS
The kernel flags word of the process. For bit meanings, see the PF_* defines in the Linux kernel source file include/linux/sched.h. Details depend on the kernel version. -
MINFLT
The number of minor faults the process has made which have not required loading a memory page from disk. -
CMINFLT
The number of minor faults that the process's waited-for children have made. -
MAJFLT
The number of major faults the process has made which have required loading a memory page from disk. -
CMAJFLT
The number of major faults that the process's waited-for children have made. -
UTIME
Amount of time that this process has been scheduled in user mode, measured in clock ticks. This includes guest time, cguest_time (time spent running a virtual CPU), so that applications that are not aware of the guest time field do not lose that time from their calculations. -
STIME
Amount of time that this process has been scheduled in kernel mode, measured in clock ticks. -
CUTIME
Amount of time that this process's waited-for children have been scheduled in user mode, measured in clock ticks. This includes guest time, cguest_time (time spent running a virtual CPU). -
CSTIME
Amount of time that this process's waited-for children have been scheduled in kernel mode, measured in clock ticks. -
PRIORITY
For processes running a real-time scheduling policy (policy below; see sched_setscheduler(2)), this is the negated scheduling priority, minus one; that is, a number in the range -2 to -100, corresponding to real-time priorities 1 to 99. For processes running under a non-real-time scheduling policy, this is the raw nice value (setpriority(2)) as represented in the kernel. The kernel stores nice values as numbers in the range 0 (high) to 39 (low), corresponding to the user-visible nice range of -20 to 19. -
NICE
The nice value (see setpriority(2)), a value in the range 19 (low priority) to -20 (high priority). -
NUM_THREADS
Number of threads in this process. -
ITREALVALUE
The time in jiffies before the next SIGALRM is sent to the process due to an interval timer. Since ker‐nel 2.6.17, this field is no longer maintained, and is hard coded as 0. -
STARTTIME
The time the process started after system boot, in clock ticks. -
VSIZE
Virtual memory size in bytes. -
RSS
Resident Set Size: number of pages the process has in real memory. This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out. -
RSSLIM
Current soft limit in bytes on the rss of the process; see the description of RLIMIT_RSS in getrlimit(2). -
STARTCODE
The address above which program text can run. -
ENDCODE
The address below which program text can run. -
STARTSTACK
The address of the start (i.e., bottom) of the stack. -
KSTKESP
The current value of ESP (stack pointer), as found in the kernel stack page for the process. -
KSTKEIP
The current EIP (instruction pointer). -
SIGNAL
The bitmap of pending signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead. -
BLOCKED
The bitmap of blocked signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead. -
SIGIGNORE
The bitmap of ignored signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead. -
SIGCATCH
The bitmap of caught signals, displayed as a decimal number. Obsolete, because it does not provide information on real-time signals; use /proc/[pid]/status instead. -
WCHAN
This is the "channel" in which the process is waiting. It is the address of a location in the kernel where the process is sleeping. The corresponding symbolic name can be found in /proc/[pid]/wchan. -
NSWAP
Number of pages swapped (not maintained). -
CNSWAP
Cumulative nswap for child processes (not maintained). -
EXIT_SIGNAL
Signal to be sent to parent when we die. -
PROCESSOR
CPU number last executed on. -
RT_PRIORITY
Real-time scheduling priority, a number in the range 1 to 99 for processes scheduled under a real-time policy, or 0, for non-real-time processes (see sched_setscheduler(2)). -
POLICY
Scheduling policy (see sched_setscheduler(2)). Decode using the SCHED_* constants in linux/sched.h. -
DELAYACCT_BLKIO_TICKS
Aggregated block I/O delays, measured in clock ticks (centiseconds). -
GUEST_TIME
Guest time of the process (time spent running a vir‐ tual CPU for a guest operating system), measured in clock ticks. -
CGUEST_TIME
Guest time of the process's children, measured in clock ticks. -
START_DATA
Address above which program initialized and uninitialized (BSS) data are placed. -
END_DATA
Address below which program initialized and uninitialized (BSS) data are placed. -
START_BRK
Address above which program heap can be expanded with brk(2). -
ARG_START
Address above which program command-line arguments (argv) are placed. -
ARG_END
Address below program command-line arguments (argv) are placed. -
ENV_START
Address above which program environment is placed. -
ENV_END
Address below which program environment is placed. -
EXIT_CODE
The thread's exit status in the form reported by waitpid(2).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-