http://man7.org/linux/man-pages/man5/proc.5.html

/proc/[pid]/status
Provides much of the information in /proc/[pid]/stat and
/proc/[pid]/statm in a format that's easier for humans to
parse. Here's an example: $ cat /proc/$$/status
Name: bash
Umask: 0022
State: S (sleeping)
Tgid: 17248
Ngid: 0
Pid: 17248
PPid: 17200
TracerPid: 0
Uid: 1000 1000 1000 1000
Gid: 100 100 100 100
FDSize: 256
Groups: 16 33 100
NStgid: 17248
NSpid: 17248
NSpgid: 17248
NSsid: 17200
VmPeak: 131168 kB
VmSize: 131168 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 13484 kB
VmRSS: 13484 kB
RssAnon: 10264 kB
RssFile: 3220 kB
RssShmem: 0 kB
VmData: 10332 kB
VmStk: 136 kB
VmExe: 992 kB
VmLib: 2104 kB
VmPTE: 76 kB
VmPMD: 12 kB
VmSwap: 0 kB
HugetlbPages: 0 kB # 4.4
Threads: 1
SigQ: 0/3067
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000010000
SigIgn: 0000000000384004
SigCgt: 000000004b813efb
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: ffffffffffffffff
CapAmb: 0000000000000000
NoNewPrivs: 0
Seccomp: 0
Cpus_allowed: 00000001
Cpus_allowed_list: 0
Mems_allowed: 1
Mems_allowed_list: 0
voluntary_ctxt_switches: 150
nonvoluntary_ctxt_switches: 545 The fields are as follows: * Name: Command run by this process. * Umask: Process umask, expressed in octal with a leading
zero; see umask(2). (Since Linux 4.7.) * State: Current state of the process. One of "R (running)",
"S (sleeping)", "D (disk sleep)", "T (stopped)", "T (tracing
stop)", "Z (zombie)", or "X (dead)". * Tgid: Thread group ID (i.e., Process ID). * Ngid: NUMA group ID (0 if none; since Linux 3.13). * Pid: Thread ID (see gettid(2)). * PPid: PID of parent process. * TracerPid: PID of process tracing this process (0 if not
being traced). * Uid, Gid: Real, effective, saved set, and filesystem UIDs
(GIDs). * FDSize: Number of file descriptor slots currently allocated. * Groups: Supplementary group list. * NStgid : Thread group ID (i.e., PID) in each of the PID
namespaces of which [pid] is a member. The leftmost entry
shows the value with respect to the PID namespace of the
reading process, followed by the value in successively
nested inner namespaces. (Since Linux 4.1.) * NSpid: Thread ID in each of the PID namespaces of which
[pid] is a member. The fields are ordered as for NStgid.
(Since Linux 4.1.) * NSpgid: Process group ID in each of the PID namespaces of
which [pid] is a member. The fields are ordered as for NSt‐
gid
. (Since Linux 4.1.) * NSsid: descendant namespace session ID hierarchy Session ID
in each of the PID namespaces of which [pid] is a member.
The fields are ordered as for NStgid. (Since Linux 4.1.) * VmPeak: Peak virtual memory size. * VmSize: Virtual memory size. * VmLck: Locked memory size (see mlock(3)). * VmPin: Pinned memory size (since Linux 3.2). These are
pages that can't be moved because something needs to
directly access physical memory. * VmHWM: Peak resident set size ("high water mark"). * VmRSS: Resident set size. Note that the value here is the
sum of RssAnon, RssFile, and RssShmem. * RssAnon: Size of resident anonymous memory. (since Linux
4.5). * RssFile: Size of resident file mappings. (since Linux 4.5). * RssShmem: Size of resident shared memory (includes System V
shared memory, mappings from tmpfs(5), and shared anonymous
mappings). (since Linux 4.5). * VmData, VmStk, VmExe: Size of data, stack, and text seg‐
ments. * VmLib: Shared library code size. * VmPTE: Page table entries size (since Linux 2.6.10). * VmPMD: Size of second-level page tables (since Linux 4.0). * VmSwap: Swapped-out virtual memory size by anonymous private
pages; shmem swap usage is not included (since Linux
2.6.34). * HugetlbPages: Size of hugetlb memory portions. (since Linux
4.4). * Threads: Number of threads in process containing this
thread. * SigQ: This field contains two slash-separated numbers that
relate to queued signals for the real user ID of this
process. The first of these is the number of currently
queued signals for this real user ID, and the second is the
resource limit on the number of queued signals for this
process (see the description of RLIMIT_SIGPENDING in
getrlimit(2)). * SigPnd, ShdPnd: Number of signals pending for thread and for
process as a whole (see pthreads(7) and signal(7)). * SigBlk, SigIgn, SigCgt: Masks indicating signals being
blocked, ignored, and caught (see signal(7)). * CapInh, CapPrm, CapEff: Masks of capabilities enabled in
inheritable, permitted, and effective sets (see
capabilities(7)). * CapBnd: Capability Bounding set (since Linux 2.6.26, see
capabilities(7)). * CapAmb: Ambient capability set (since Linux 4.3, see
capabilities(7)). * NoNewPrivs: Value of the no_new_privs bit (since Linux 4.10,
see prctl(2)). * Seccomp: Seccomp mode of the process (since Linux 3.8, see
seccomp(2)). 0 means SECCOMP_MODE_DISABLED; 1 means SEC‐
COMP_MODE_STRICT
; 2 means SECCOMP_MODE_FILTER. This field
is provided only if the kernel was built with the CON‐
FIG_SECCOMP
kernel configuration option enabled. * Cpus_allowed: Mask of CPUs on which this process may run
(since Linux 2.6.24, see cpuset(7)). * Cpus_allowed_list: Same as previous, but in "list format"
(since Linux 2.6.26, see cpuset(7)). * Mems_allowed: Mask of memory nodes allowed to this process
(since Linux 2.6.24, see cpuset(7)). * Mems_allowed_list: Same as previous, but in "list format"
(since Linux 2.6.26, see cpuset(7)). * voluntary_ctxt_switches, nonvoluntary_ctxt_switches: Number
of voluntary and involuntary context switches (since Linux
2.6.23).

/proc/[pid]/status的更多相关文章

  1. linux查看某个进程内存占用情况以及/proc/pid/status解释

    以nginx 为例1.toptop -b -n 1 |grep nginx|awk '{print "VIRT:"$5,"RES:"$6,"cpu:& ...

  2. 书写优雅的shell脚本(插曲)- /proc/${pid}/status

    Linux中/proc/[pid]/status详细说明 博客分类: OS Linux多线程  [root@localhost ~]# cat /proc/self/status  Name: cat ...

  3. linux下查看进程的状态 /proc/[pid]/status

    查看进程的状态: 1.查看进程的pid,以java为例:ps -ef | grep java 2.查看进程状态:cat /proc/[pid]/status 关键字: linux [root@loca ...

  4. Linux中/proc/[pid]/status详细说明

    [root@localhost ~]# cat /proc/self/status Name: cat State: R (running) SleepAVG: 88% Tgid: 5783 Pid: ...

  5. Linux下进程信息/proc/pid/status的深入分析

    https://blog.csdn.net/beckdon/article/details/48491909

  6. ps&&/proc/pid/xxx

    ps 如果想看一个进程的启动时间,可以用lstart来看 [root@jiangyi02.sqa.zmf /home/ahao.mah] #ps -eo pid,lstart,etime,cmd |g ...

  7. Linux中 /proc/[pid] 目录各文件简析

    Linux 内核提供了一种通过 proc 文件系统,在运行时访问内核内部数据结构.改变内核设置的机制.proc 文件系统是一个伪文件系统,它只存在内存当中,而不占用外存空间.它以文件系统的方式为访问系 ...

  8. stuff in /proc/PID/

    Table of Contents 1. /proc/PID/cwd 2. /proc/PID/clear_refs 3. /proc/PID/coredump_filter 4. /proc/PID ...

  9. How to translate virtual to physical addresses through /proc/pid/pagemap

    墙外通道:http://fivelinesofcode.blogspot.com/2014/03/how-to-translate-virtual-to-physical.html I current ...

随机推荐

  1. .NET(C#)实现桌面背景切换(控制台应用程序,windows服务版的未实现成功)

    AdvancedBackgroundJimmy.Program.cs using AdvancedBackground; using Microsoft.Win32; using System; us ...

  2. 发现钉钉打卡定位算法的一个bug

    最近公司取消了指纹打卡,改用钉钉打卡. 天天用这个打卡上班,经常忘记,困扰. 最烦的是好几次明明人在办公室,打卡地址显示在10分钟前的位置,定位失败,不得不重新打卡. 经历过几次定位失败后,我就琢磨起 ...

  3. B - 来找一找吧 HihoCoder - 1701(排列组合 + 同余差值相同)

    这次到渣渣问桶桶了... 准备给你n个数a1, a2, ... an,桶桶你能从中找出m个特别的整数吗,我想让任意两个之差都是k的倍数. 请你计算有多少种不同的选法.由于选法可能非常多,你只需要输出对 ...

  4. SpringAOP入门

    Spring的AOP aop概述 Aspect Oriented Programing 面向切面(方面)编程, aop:扩展功能不修改源代码实现 aop采取横向抽取机制,取代了传统纵向继承体系重复性代 ...

  5. Pointer Lock API(2/3):属性、方法、事件

    Pointer Lock API 提供了三个属性.两个方法.两个事件 Tabel Of Content 属性 Document.pointerLockElement Document.onpointe ...

  6. Vulnhub DC-4靶机渗透

    信息搜集 nmap -sP 192.168.146.0/24 #扫网段看看存活的主机,找到靶机 nmap -sS -Pn -A 192.168.146.141 可以看到开放了22和80端口,那么就可以 ...

  7. linux中的隐藏权限,chattr,lsattr

    chattr chattr可以用来制约root的权限,使得系统更加安全. 主要参数: a:让文件或目录仅供附加用途. b:不更新文件或目录的最后存取时间. c:将文件或目录压缩后存放. d:将文件或目 ...

  8. 《民国奇探》的弹幕有点逗比,用 Python 爬下来看看

    电视剧<民国奇探>是一部充斥着逗比风的探案剧,剧中主要角色:三土.四爷.白小姐,三土这个角色类似于<名侦探柯南>中的柯南但带有搞笑属性,四爷则类似于毛利小五郎但有大哥范且武功高 ...

  9. String 对象-->toUpperCase() 方法

    1.定义和用法 将字符串中所有的小写字符转换成大写字符,大写字符保持不变 返回转换后的结果字符串 语法: string.toUpperCase() 注意:不会改变字符串本身,仅以返回值的形式返回结果 ...

  10. 小猪佩奇C代码实现

    // ASCII Peppa Pig by Milo Yip #include <stdio.h> #include <math.h> #include <stdlib. ...