In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you what the kubenate docker cgroup file parsing is, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Kubenate docker cgroup file parsing cgroup basic directory: cd / sys/fs/cgroup/dr-xr-xr-x 7 root root 0 Jul 2 15:03 blkiolrwxrwxrwx 1 root root 11 Jul 1 12:47 cpu-> cpu,cpuacctlrwxrwxrwx 1 root root 11 Jul 1 12:47 cpuacct-> cpu,cpuacctdr-xr-xr-x 7 root root 0 Jul 2 15:03 cpu Cpuacctdr-xr-xr-x 5 root root 0 Jul 2 15:03 cpusetdr-xr-xr-x 7 root root 0 Jul 2 15:03 devicesdr-xr-xr-x 5 root root 0 Jul 2 15:03 freezerdr-xr-xr-x 5 root root 0 Jul 2 15:03 hugetlbdr-xr-xr-x 7 root root 0 Jul 2 15:03 memorylrwxrwxrwx 1 root root 16 Jul 1 12:47 net_cls-> net_cls,net_priodr-xr-xr-x 5 root root 0 Jul 2 15:03 net_cls Net_priolrwxrwxrwx 1 root root 16 Jul 1 12:47 net_prio-> net_cls Net_priodr-xr-xr-x 5 root root 0 Jul 2 15:03 perf_eventdr-xr-xr-x 7 root root 0 Jul 2 15:03 pidsdr-xr-xr-x 2 root root 0 Jul 2 15:03 rdmadr-xr-xr-x 7 root root 0 Jul 2 15:03 systemd View k8 pod cpu directory: cd / sys/fs/cgroup/cpu/kubepods/burstable/-rw-r--r-- 1 root root 0 Jul 2 15:06 cgroup.clone_children-rw-r- -root root-1 Jul 2 15:06 cgroup.procs-r--r--r-- 1 root root 0 Jul 2 15:06 cpuacct.stat-rw-r--r-- 1 root root 0 Jul 2 15:06 cpuacct.usage-r--r--r-- 1 root root 0 Jul 2 15:06 cpuacct.usage_all-r--r--r-- 1 root root 0 Jul 2 15:06 cpuacct.usage_percpu-r--r--r-- 1 root root 0 Jul 2 15:06 cpuacct.usage_percpu_sys-r--r--r-- 1 root root 0 Jul 2 15:06 cpuacct.usage_percpu_user-r--r--r-- 1 root root 0 Jul 2 15:06 cpuacct.usage_sys-r--r--r-- 1 root root 0 Jul 2 15:06 cpuacct.usage_user-rw-r--r-- 1 root root 0 Jul 2 15:06 cpu.cfs_period_us-rw-r--r- -1 root root 0 Jul 2 15:06 cpu.cfs_quota_us-rw-r--r-- 1 root root 0 Jul 2 15:06 cpu.rt_period_us-rw-r--r-- 1 root root 0 Jul 2 15:06 cpu.rt_runtime_us-rw-r--r-- 1 root root 0 Jul 2 15:12 cpu.shares-r--r--r-- 1 root root 0 Jul 2 15:06 cpu.stat-rw-r--r-- 1 Root root 0 Jul 2 15:06 notify_on_releasedrwxr-xr-x 4 root root 0 Jul 2 15:06 pod05b3386f-9bd9-11e9-b422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:06 pod4af8ae97-9c90-11e9-b422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:06 pod4d82c7c5-9bc1-11e9-b422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:06 pod5168ad10-9bd8-11e9-b422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:06 pod566de07c-9bd6-11e9- B422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:06 pod5d28f618-9c48-11e9-b422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:06 pod5f6ca3b4-9bd5-11e9-b422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:06 pod5f70400f-9bd5-11e9-b422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:09 pod62cd755e-9c98-11e9-b422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:10 pod738e9411-9c98-11e9-b422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:06 podac8f61fc-9bd5-11e9-b422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:06 podeb7f0fec-9c90-11e9-b422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:06 podf2527825-9bc0-11e9-b422-525400530fa1drwxr-xr-x 4 root root 0 Jul 2 15:06 podf2579515-9bc0-11e9-b422-525400530fa1 Mustang Mustang-1 root root 0 Jul 2 15:06 tasks view a certain pod cpu directory: cd pod05b3386f-9bd9-11e9-b422-525400530fa1drwxr -xr-x 2 root root 0 Jul 2 15:06 393045ac8bd0d3dce80b58f5dc46de42eb4be5523eafe557b3e6ff35bb348e5ddrwxr-xr-x 2 root root 0 Jul 2 15:06 4f2007f29b134d680639303f538299393da4f0a1b051a1b454b03206e34cfbb7 Mustang RWUFUR-1 root root 0 Jul 2 15:06 cgroup.clone_children-rw-r--r-- 1 root root 0 Jul 2 15:06 cgroup.procs-r--r--r-- 1 root root 0 Jul 2 15:06 cpuacct.stat-rw-r--r-- 1 root root 0 Jul 2 15:06 cpuacct.usage-r--r -- root root 1 Jul 2 15:06 cpuacct.usage_all-r--r--r-- 1 root root 0 Jul 2 15:06 cpuacct.usage_percpu-r--r--r-- 1 root root 0 Jul 2 15:06 cpuacct.usage_percpu_sys-r--r--r-- 1 root root 0 Jul 2 15:06 cpuacct.usage_percpu_user-r--r--r-- 1 root root 0 Jul 2 15:06 cpuacct.usage_sys- RMui root root 0 Jul 2 15:06 cpuacct.usage_user-rw-r--r-- 1 root root 0 Jul 1 16:20 cpu.cfs_period_us-rw-r--r-- 1 root root 0 Jul 1 16:20 cpu.cfs_quota_us-rw-r--r-- 1 root root 0 Jul 2 15:06 cpu.rt_period_us-rw-r--r-- 1 root root 0 Jul 2 15:06 cpu.rt_ Runtime_us-rw-r--r-- 1 root root 0 Jul 1 16:20 cpu.shares-r--r--r-- 1 root root 0 Jul 2 15:06 cpu.stat-rw-r--r-- 1 root root 0 Jul 2 15:06 notify_on_release-rw-r--r-- 1 root root 0 Jul 2 15:06 tasks view docker in a pod: cd 393045ac8bd0d3dce80b58f5dc46de42eb4be5523eafe557b3e6ff35b348e5dMutual Jul-1 root root 0 Jul 2 15:07 cgroup. Clone_children-rw-r--r-- 1 root root 0 Jul 1 16:20 cgroup.procs-r--r--r-- 1 root root 0 Jul 2 15:07 cpuacct.stat-rw-r--r-- 1 root root 0 Jul 2 15:07 cpuacct.usage-r--r--r-- 1 root root 0 Jul 2 15:07 cpuacct.usage_all-r--r--r-- 1 root root 0 Jul 2 15:07 cpuacct.usage_percpu-r--r -- root root 1 Jul 2 15:07 cpuacct.usage_percpu_sys-r--r--r-- 1 root root 0 Jul 2 15:07 cpuacct.usage_percpu_user-r--r--r-- 1 root root 0 Jul 2 15:07 cpuacct.usage_sys-r--r--r-- 1 root root 0 Jul 2 15:07 cpuacct.usage_user-rw-r--r-- 1 root root 0 Jul 2 15:07 cpu.cfs_period_us -rw-r--r-- 1 root root 0 Jul 2 15:07 cpu.cfs_quota_us-rw-r--r-- 1 root root 0 Jul 2 15:07 cpu.rt_period_us-rw-r--r-- 1 root root 0 Jul 2 15:07 cpu.rt_runtime_us-rw-r--r-- 1 root root 0 Jul 1 16:20 cpu.shares-r--r--r-- 1 root root 0 Jul 2 15:07 cpu.stat-rw -root root Murray-1 root root 0 Jul 2 15:07 notify_on_release-rw-r--r-- 1 root root 0 Jul 2 15:07 taskslimit cpu parameter: cpu.cfs_period_uscpu.cfs_quota_usrequest cput parameter: cpu.shares view system pid: cat cgroup.procs22192 view system process information: ps-ef | grep "22192" above is what is the file parsing of kubenate docker cgroup The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.