{"id":927,"date":"2021-06-15T13:54:24","date_gmt":"2021-06-15T05:54:24","guid":{"rendered":"https:\/\/www.myway5.com\/?p=927"},"modified":"2023-07-05T10:07:50","modified_gmt":"2023-07-05T02:07:50","slug":"cgroup-cpu-subsystem","status":"publish","type":"post","link":"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/","title":{"rendered":"cgroup cpu\u5b50\u7cfb\u7edf"},"content":{"rendered":"<h2>\u6982\u8ff0<\/h2>\n<p>cgroup \u5168\u540d\u662f control groups\uff0c\u5728 linux \u4e0a\u8d1f\u8d23\u5bf9\u8fdb\u7a0b\u7684\u4e00\u7cfb\u5217\u8d44\u6e90\u8fdb\u884c\u7ba1\u63a7\u3002\u6bd4\u5982 CPU\uff0cMemory\uff0cHuge Pages \u7b49\u3002cgroup \u4e0b\u901a\u8fc7\u5b50\u7cfb\u7edf(subsystem)\u6765\u5212\u5206\u6a21\u5757\uff0c\u6bcf\u79cd\u8d44\u6e90\u90fd\u901a\u8fc7\u4e00\u4e2a\u5b50\u7cfb\u7edf\u6765\u5b9e\u73b0\u3002<\/p>\n<p>cgroup \u901a\u8fc7\u6587\u4ef6\u7cfb\u7edf\u7684\u65b9\u5f0f\u5bf9\u5916\u63d0\u4f9b\u8c03\u7528\uff0c\u5e76\u53ef\u4ee5\u7528\u5c42\u7ea7\u7684\u65b9\u5f0f\u8fdb\u884c\u7ec4\u5408\u3002\u8fd9\u79cd\u5c42\u7ea7\u901a\u8fc7\u6587\u4ef6\u7cfb\u7edf\u76ee\u5f55\u7684\u65b9\u5f0f\u8fdb\u884c\u5448\u73b0\u3002\u6bd4\u5982\u5728 cgroup cpu \u76ee\u5f55\u4e0b\u521b\u5efa\u5b50\u76ee\u5f55\uff0c\u5c31\u76f8\u5f53\u4e8e\u5728\u6839 cpu cgroup \u4e0b\u521b\u5efa\u4e86\u4e00\u4e2a\u5b50 cgroup\u3002\u5e76\u4e14\u5b50 cgroup \u4f1a\u7ee7\u627f\u7236 cgroup \u7684\u9650\u5236\u3002<\/p>\n<p>cgroup \u76ee\u524d\u6709\u4e24\u4e2a\u7248\u672c\uff1av1 \u548c v2\uff0c\u5e76\u4e14\u4e24\u4e2a\u7248\u672c\u7684\u8bbe\u8ba1\u5dee\u5f02\u8f83\u5927\u3002\u4f46\u662f\u7406\u5ff5\u7c7b\u4f3c\uff0c\u56e0\u6b64\u5373\u4f7f\u7248\u672c\u4e0d\u540c\uff0c\u4e5f\u53ef\u4ee5\u4e00\u6837\u6765\u7406\u89e3\u3002\u4e0b\u9762\u4f1a\u4ee5 cgroup v1 cpu \u5b50\u7cfb\u7edf\u8fdb\u884c\u8bb2\u89e3\u3002<\/p>\n<h2>cpu \u5b50\u7cfb\u7edf\u7684\u4f7f\u7528<\/h2>\n<p>cgroup \u63cf\u8ff0\u8d77\u6765\u4e00\u76f4\u662f\u4e00\u4e2a\u6bd4\u8f83\u62bd\u8c61\u7684\u6982\u5ff5\u3002\u4e0b\u9762\u7528\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\u6765\u5e2e\u52a9\u8ba4\u8bc6 cgroup \u662f\u5982\u4f55\u5de5\u4f5c\u7684\u3002<\/p>\n<p>\u9996\u5148\u5728\u673a\u5668\u4e0a\u542f\u52a8\u4e00\u4e2a stress \u8fdb\u7a0b\uff0c\u5206\u914d\u4e00\u4e2a cpu\uff0c\u7136\u540e\u67e5\u770b\u8be5\u8fdb\u7a0b cpu \u5360\u7528\u60c5\u51b5\uff1a<\/p>\n<pre><code class=\"language-bash line-numbers\">$ stress -c 1\n\n$ pidstat -p 480164 1\nLinux 4.14.81.bm.26-amd64 (n251-254-159)    06\/01\/2021  _x86_64_    (8 CPU)\n02:36:56 PM   UID       PID    %usr %system  %guest    %CPU   CPU  Command\n02:36:57 PM  1001    480164  100.00    0.00    0.00  100.00     6  stress\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u5230\uff0cstress \u8fdb\u7a0b\u5df2\u7ecf\u5360\u7528\u4e86 1 cpu\u3002\u73b0\u5728\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u540d\u53eb stress \u7684 cgroup \u6765\u9650\u5236 cpu\uff1a<\/p>\n<pre><code class=\"language-bash line-numbers\">$ cd \/sys\/fs\/cgroup\/cpu\n\n$ mkdir stress &amp;&amp; cd stress\n\n# \u5c06 pid \u5199\u5165\u5230 cgroup.procs \u4e2d\uff0c\u5c31\u7b49\u540c\u4e8e\u5c06\u8fd9\u4e2a\u8fdb\u7a0b\u79fb\u5230\u8be5 cgroup \u4e2d\n$ echo 480164 &gt; cgroup.procs\n\n$ echo 100000 &gt; cpu.cfs_period_us\n\n$ echo 50000 &gt; cpu.cfs_quota_us\n\n# \u518d\u770b\u770b\u5f53\u524d\u7684 CPU \u5360\u7528\n$ pidstat -p 480164 1\nLinux 4.14.81.bm.26-amd64 (n251-254-159)    06\/04\/2021  _x86_64_    (8 CPU)\n\n05:17:49 AM   UID       PID    %usr %system  %guest    %CPU   CPU  Command\n05:17:50 AM  1001   480164   50.00    0.00    0.00   50.00     6  stress\n<\/code><\/pre>\n<p>\u4e0a\u8ff0\u64cd\u4f5c\u901a\u8fc7\u914d\u7f6e <code>cpu.cfs_period_us<\/code> \u548c <code>cpu.cfs_quota_us<\/code> \u53c2\u6570\u8fbe\u5230\u4e86\u9650\u5236\u8fdb\u7a0b\u4f7f\u7528 CPU \u7684\u76ee\u7684\u3002<\/p>\n<p>cgroup \u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a <code>cpu.shares<\/code> \u53c2\u6570\uff0c\u5f53 CPU \u8d44\u6e90\u7e41\u5fd9\u65f6\uff0c\u8fd9\u4e2a\u53c2\u6570\u53ef\u4ee5\u914d\u7f6e\u8fdb\u7a0b\u4f7f\u7528 CPU \u7684\u6743\u91cd\u3002\u4e0b\u9762\u6211\u4eec\u5728 cpu \u4e3a 1 \u7684\u865a\u62df\u673a\u6f14\u793a\u3002 \u5728 cgroup \u4e0b\u521b\u5efa\u4e24\u4e2a\u5b50 cgroup \u6765\u5c55\u793a\u8fd9\u4e2a\u53c2\u6570\u7684\u6548\u679c\u3002<\/p>\n<pre><code class=\"language-bash line-numbers\">$ cd \/sys\/fs\/cgroup\/cpu,cpuacct\n$ mkdir stress1 &amp;&amp; cd stress1\n$ stress -c 1\n$ echo 3475127 &gt; cgroup.procs\n$ echo 1024 &gt; cpu.shares\n<\/code><\/pre>\n<p>\u6b64\u65f6 PID 3475127 \u7684 stress \u8fdb\u7a0b CPU \u5360\u7528\u7387\u63a5\u8fd1 100%\u3002\u5728\u65b0\u7684\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code class=\"language-bash line-numbers\">$ mkdir stress2 &amp;&amp; cd stress2\n$ stress -c 1\n$ echo 3479833 &gt; cgroup.procs\n<\/code><\/pre>\n<p>\u6b64\u65f6\u4e24\u4e2a stress \u8fdb\u7a0b\u7684 CPU \u5360\u7528\u5927\u81f4\u76f8\u7b49\uff0c\u63a5\u8fd1 50%\u3002\u56e0\u4e3a stress2 cgroup \u4e2d\u6ca1\u6709\u8bbe\u7f6e cpu.shares\uff0c\u6240\u4ee5\u53d6\u9ed8\u8ba4\u503c\u4e3a 1024\u3002\u73b0\u5728\u8bbe\u7f6e stress2 cgroup \u7684 cpu.shares \u53c2\u6570\uff1a<\/p>\n<pre><code class=\"language-bash line-numbers\">$ echo 512 &gt; cpu.shares\n\n# \u4f7f\u7528 top \u67e5\u770b\n    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM\n  3475127 root      20   0    7948     96      0 R  65.1   0.0\n  3479833 root      20   0    7948     92      0 R  32.2   0.0\n<\/code><\/pre>\n<p>stress1 \u4e2d\u7684\u8fdb\u7a0b CPU \u5360\u7528\u7387\u5927\u6982\u662f stress2 \u4e2d\u7684\u4e24\u500d\u3002\u8fd9\u662f\u56e0\u4e3a stress1 \u4e2d  cpu.shares \u7684\u503c\u662f stress2 \u4e2d\u7684\u4e24\u500d\u3002\u5f53\u7136\u4e0a\u8ff0\u60c5\u51b5\u5fc5\u987b\u5728 CPU \u8d44\u6e90\u4e0d\u591f\u65f6\uff0ccpu.shares \u624d\u4f1a\u8d77\u4f5c\u7528\u3002\u5982\u679c\u8fd9\u662f\u4e00\u4e2a 2 cpu \u7684\u865a\u62df\u673a\uff0c\u90a3\u4e48 stress1 \u548c stress2 \u90fd\u4f1a\u5360\u7528 100%\u3002<\/p>\n<h2>\u53c2\u6570\u8bf4\u660e<\/h2>\n<p>\u4e0a\u8ff0\u51fa\u73b0\u4e86\u4e00\u4e9b cpu \u7684\u53c2\u6570\uff0c\u8fd9\u91cc\u7edf\u4e00\u89e3\u91ca\u4e00\u4e0b\uff1a<\/p>\n<ul>\n<li>cpu.cfs_period_us: \u91cd\u65b0\u5206\u914d CPU \u8d44\u6e90\u7684\u65f6\u95f4\u5468\u671f\u957f\u5ea6\uff0c\u5355\u4f4d\u662f us\u3002cfs \u662f linux \u8fdb\u7a0b\u8c03\u5ea6\u5668\u7684\u4e00\u79cd\uff0c\u5168\u79f0\u4e3a<strong>\u5b8c\u5168\u516c\u5e73\u8c03\u5ea6\u5668<\/strong>\u3002\u56e0\u6b64\u8fd9\u4e2a\u53c2\u6570\u53ea\u9488\u5bf9\u4f7f\u7528 cfs \u8c03\u5ea6\u7684\u8fdb\u7a0b\u3002<\/p>\n<\/li>\n<li>\n<p>cpu.cfs_quota_us: \u8fdb\u7a0b\u5728\u8bbe\u7f6e\u7684\u65f6\u95f4\u5468\u671f\u957f\u5ea6\u5185\uff0c\u53ef\u4ee5\u4f7f\u7528\u7684 CPU \u65f6\u95f4\u4e0a\u9650\u3002\u7ed3\u5408 cpu.cfs_period_us \u5c31\u53ef\u4ee5\u9650\u5236\u4e00\u4e2a\u8fdb\u7a0b\u53ef\u4ee5\u4f7f\u7528\u7684\u603b CPU \u65f6\u95f4\u4e86\u3002\u8ba1\u7b97\u65b9\u5f0f\u4e3a <code>(cpu.cfs_quota_us \/ cpu.cfs_period_us)*count(cpu)<\/code>\u3002\u8fd9\u4e2a\u53c2\u6570\u53ea\u9488\u5bf9\u4f7f\u7528 cfs \u8c03\u5ea6\u7684\u8fdb\u7a0b\u3002<\/p>\n<\/li>\n<li>\n<p>cpu.shares: \u8fd9\u4e2a\u53c2\u6570\u53ea\u6709\u5728 CPU \u8d44\u6e90\u5fd9\u65f6\u624d\u751f\u6548\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u8bbe\u7f6e\u8fdb\u7a0b\u4f7f\u7528\u7684 CPU \u6743\u91cd\u3002\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u865a\u62df\u673a\u53ea\u6709 1 CPU\uff0c\u8fdb\u7a0b 1,2 \u90fd\u4f1a\u5360\u7528\u4e00\u4e2a CPU\uff0c\u56e0\u6b64\u6839\u636e\u8bbe\u7f6e\u8fdb\u7a0b 1 \u7684 cpu.shares \u4e3a 1024\uff0c\u8fdb\u7a0b 2 \u7684 cpu.shares \u4e3a 512\uff0c\u5c31\u53ef\u4ee5\u5c06 2\/3 \u7684 cpu \u5206\u914d\u7ed9\u8fdb\u7a0b 1\uff0c1\/3 \u7684 cpu \u5206\u914d\u7ed9\u8fdb\u7a0b 2 \u4e86\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u9664\u4e86\u4e0a\u8ff0\u4f8b\u5b50\u4e2d\u7684\u51e0\u4e2a\u53c2\u6570\uff0ccgroup cpu \u5b50\u7cfb\u7edf\u8fd8\u63d0\u4f9b\u4e86\u4ee5\u4e0b\u7684\u53c2\u6570\uff1a<\/p>\n<ul>\n<li>cpu.rt_period_us: \u91cd\u65b0\u5206\u914d CPU \u8d44\u6e90\u7684\u65f6\u95f4\u5468\u671f\u957f\u5ea6\u3002 \u9488\u5bf9\u4f7f\u7528\u4e86\u5b9e\u65f6\u8c03\u5ea6\u5668\u7684\u8fdb\u7a0b<\/li>\n<li>cpu.rt_runtime_us: \u8fdb\u7a0b\u5728\u8bbe\u7f6e\u7684\u65f6\u95f4\u5468\u671f\u957f\u5ea6\u5185\uff0c\u53ef\u4ee5\u4f7f\u7528\u7684 CPU \u65f6\u95f4\u4e0a\u9650\u3002\u8fd9\u4e2a\u548c\u4e0a\u9762\u8bf4\u7684 cfs \u7684\u4e24\u4e2a\u53c2\u6570\u7c7b\u4f3c\u3002<\/li>\n<li>cpu.nr_periods: \u8fd9\u662f\u4e00\u4e2a\u7edf\u8ba1\u53c2\u6570\u3002\u7528\u6765\u8868\u793a\u5df2\u7ecf\u8fc7\u53bb\u7684 cpu \u5468\u671f\u6570\uff08\u4f7f\u7528 cpu.cfs_period_us \u6765\u6307\u5b9a)<\/li>\n<li>cpu.nr_throttled: cgroup \u4e2d\u8fdb\u7a0b\u88ab\u9650\u5236\u7684\u6b21\u6570\uff08\u56e0\u4e3a\u8fd9\u4e9b\u8fdb\u7a0b\u7528\u5b8c\u4e86\u5206\u914d\u7684 cpu \u65f6\u95f4\uff09\u3002<\/li>\n<li>cpu.throttled_time: cgroup \u4e2d\u8fdb\u7a0b\u88ab\u9650\u5236\u7684\u603b\u65f6\u95f4\uff08\u5355\u4f4d\u662f ns\uff09\u3002<\/li>\n<\/ul>\n<h2>\u53c2\u8003<\/h2>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/zhuanlan.zhihu.com\/p\/72754729\">Linux\u8fdb\u7a0b\u8c03\u5ea6\uff1a\u5b8c\u5168\u516c\u5e73\u8c03\u5ea6\u5668CFS<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/6\/html\/resource_management_guide\/sec-cpu\">redhat cfs cpu<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8ff0 cgroup \u5168\u540d\u662f control groups\uff0c\u5728 linux \u4e0a\u8d1f\u8d23\u5bf9\u8fdb\u7a0b\u7684\u4e00\u7cfb\u5217\u8d44\u6e90\u8fdb\u884c\u7ba1\u63a7\u3002\u6bd4 &hellip; <a href=\"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">cgroup cpu\u5b50\u7cfb\u7edf<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,97],"tags":[],"class_list":["post-927","post","type-post","status-publish","format-standard","hentry","category-linux","category-container"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>cgroup cpu\u5b50\u7cfb\u7edf - \u4e00\u53ea\u5b89\u9759\u7684\u732b<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"cgroup cpu\u5b50\u7cfb\u7edf - \u4e00\u53ea\u5b89\u9759\u7684\u732b\" \/>\n<meta property=\"og:description\" content=\"\u6982\u8ff0 cgroup \u5168\u540d\u662f control groups\uff0c\u5728 linux \u4e0a\u8d1f\u8d23\u5bf9\u8fdb\u7a0b\u7684\u4e00\u7cfb\u5217\u8d44\u6e90\u8fdb\u884c\u7ba1\u63a7\u3002\u6bd4 &hellip; \u7ee7\u7eed\u9605\u8bfbcgroup cpu\u5b50\u7cfb\u7edf\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4e00\u53ea\u5b89\u9759\u7684\u732b\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-15T05:54:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-05T02:07:50+00:00\" \/>\n<meta name=\"author\" content=\"jiangpengfei\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"jiangpengfei\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/\"},\"author\":{\"name\":\"jiangpengfei\",\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"headline\":\"cgroup cpu\u5b50\u7cfb\u7edf\",\"datePublished\":\"2021-06-15T05:54:24+00:00\",\"dateModified\":\"2023-07-05T02:07:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/\"},\"wordCount\":139,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"articleSection\":[\"linux\",\"\u5bb9\u5668\u6280\u672f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/\",\"url\":\"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/\",\"name\":\"cgroup cpu\u5b50\u7cfb\u7edf - \u4e00\u53ea\u5b89\u9759\u7684\u732b\",\"isPartOf\":{\"@id\":\"https:\/\/www.myway5.com\/#website\"},\"datePublished\":\"2021-06-15T05:54:24+00:00\",\"dateModified\":\"2023-07-05T02:07:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.myway5.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"cgroup cpu\u5b50\u7cfb\u7edf\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.myway5.com\/#website\",\"url\":\"https:\/\/www.myway5.com\/\",\"name\":\"\u4e00\u53ea\u5b89\u9759\u7684\u732b\",\"description\":\"\u60f3\u5565\u5462\",\"publisher\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.myway5.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\",\"name\":\"jiangpengfei\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g\",\"caption\":\"jiangpengfei\"},\"logo\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.myway5.com\/index.php\/author\/joyme\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"cgroup cpu\u5b50\u7cfb\u7edf - \u4e00\u53ea\u5b89\u9759\u7684\u732b","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/","og_locale":"zh_CN","og_type":"article","og_title":"cgroup cpu\u5b50\u7cfb\u7edf - \u4e00\u53ea\u5b89\u9759\u7684\u732b","og_description":"\u6982\u8ff0 cgroup \u5168\u540d\u662f control groups\uff0c\u5728 linux \u4e0a\u8d1f\u8d23\u5bf9\u8fdb\u7a0b\u7684\u4e00\u7cfb\u5217\u8d44\u6e90\u8fdb\u884c\u7ba1\u63a7\u3002\u6bd4 &hellip; \u7ee7\u7eed\u9605\u8bfbcgroup cpu\u5b50\u7cfb\u7edf","og_url":"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/","og_site_name":"\u4e00\u53ea\u5b89\u9759\u7684\u732b","article_published_time":"2021-06-15T05:54:24+00:00","article_modified_time":"2023-07-05T02:07:50+00:00","author":"jiangpengfei","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"jiangpengfei","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/#article","isPartOf":{"@id":"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/"},"author":{"name":"jiangpengfei","@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"headline":"cgroup cpu\u5b50\u7cfb\u7edf","datePublished":"2021-06-15T05:54:24+00:00","dateModified":"2023-07-05T02:07:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/"},"wordCount":139,"commentCount":2,"publisher":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"articleSection":["linux","\u5bb9\u5668\u6280\u672f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/","url":"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/","name":"cgroup cpu\u5b50\u7cfb\u7edf - \u4e00\u53ea\u5b89\u9759\u7684\u732b","isPartOf":{"@id":"https:\/\/www.myway5.com\/#website"},"datePublished":"2021-06-15T05:54:24+00:00","dateModified":"2023-07-05T02:07:50+00:00","breadcrumb":{"@id":"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.myway5.com\/index.php\/2021\/06\/15\/cgroup-cpu-subsystem\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.myway5.com\/"},{"@type":"ListItem","position":2,"name":"cgroup cpu\u5b50\u7cfb\u7edf"}]},{"@type":"WebSite","@id":"https:\/\/www.myway5.com\/#website","url":"https:\/\/www.myway5.com\/","name":"\u4e00\u53ea\u5b89\u9759\u7684\u732b","description":"\u60f3\u5565\u5462","publisher":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.myway5.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685","name":"jiangpengfei","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.myway5.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g","caption":"jiangpengfei"},"logo":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/image\/"},"url":"https:\/\/www.myway5.com\/index.php\/author\/joyme\/"}]}},"views":7197,"_links":{"self":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/comments?post=927"}],"version-history":[{"count":1,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/927\/revisions"}],"predecessor-version":[{"id":928,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/927\/revisions\/928"}],"wp:attachment":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/media?parent=927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/categories?post=927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/tags?post=927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}