{"id":90744,"date":"2026-08-05T21:43:01","date_gmt":"2026-08-05T13:43:01","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/90744.html"},"modified":"2026-08-05T21:43:01","modified_gmt":"2026-08-05T13:43:01","slug":"%e3%80%90docker%e3%80%91%e8%b5%84%e6%ba%90%e6%8e%a7%e5%88%b6","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/90744.html","title":{"rendered":"\u3010Docker\u3011\u8d44\u6e90\u63a7\u5236"},"content":{"rendered":"<p>&#x1f308;\u4e2a\u4eba\u4e3b\u9875&#xff1a;\u79e6jh__https:\/\/blog.csdn.net\/qinjh_?spm&#061;1010.2135.3001.5343 &#x1f525;\u00a0\u7cfb\u5217\u4e13\u680f&#xff1a;Docker_\u79e6jh_\u7684\u535a\u5ba2-CSDN\u535a\u5ba2<\/p>\n<p>\u00a0\u00a0<img decoding=\"async\" alt=\"9efbcbc3d25747719da38c01b3fa9b4f.gif\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134259-6a733de370796.gif\" \/>\u200b\u200b\u200b\u200b<\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E7%9B%AE%E7%9A%84-toc\" style=\"margin-left:0px\">\u76ee\u7684<\/p>\n<p id=\"%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86-toc\" style=\"margin-left:0px\">\u57fa\u7840\u77e5\u8bc6<\/p>\n<p id=\"pidstat-toc\" style=\"margin-left:40px\">pidstat<\/p>\n<p id=\"stress-toc\" style=\"margin-left:40px\">stress<\/p>\n<p id=\"%E5%AE%9E%E6%93%8D%E4%B8%80%E3%80%81cgroups%E4%BF%A1%E6%81%AF%E6%9F%A5%E7%9C%8B-toc\" style=\"margin-left:0px\">\u5b9e\u64cd\u4e00\u3001cgroups\u4fe1\u606f\u67e5\u770b<\/p>\n<p id=\"cgroups%E7%89%88%E6%9C%AC%E6%9F%A5%E7%9C%8B-toc\" style=\"margin-left:40px\">cgroups\u7248\u672c\u67e5\u770b<\/p>\n<p id=\"cgroups%E5%AD%90%E7%B3%BB%E7%BB%9F%E6%9F%A5%E7%9C%8B-toc\" style=\"margin-left:40px\">cgroups\u5b50\u7cfb\u7edf\u67e5\u770b<\/p>\n<p id=\"cgroups%E6%8C%82%E8%BD%BD%E4%BF%A1%E6%81%AF%E6%9F%A5%E7%9C%8B-toc\" style=\"margin-left:40px\">cgroups\u6302\u8f7d\u4fe1\u606f\u67e5\u770b<\/p>\n<p id=\"%E6%9F%A5%E7%9C%8B%E4%B8%80%E4%B8%AA%E8%BF%9B%E7%A8%8B%E4%B8%8A%E7%9A%84cgroup%E9%99%90%E5%88%B6-toc\" style=\"margin-left:40px\">\u67e5\u770b\u4e00\u4e2a\u8fdb\u7a0b\u4e0a\u7684cgroup\u9650\u5236<\/p>\n<p id=\"%E5%AE%9E%E6%93%8D%E4%BA%8C%E3%80%81%E4%BD%BF%E7%94%A8cgroups%E5%AF%B9%E5%86%85%E5%AD%98%E8%BF%9B%E8%A1%8C%E6%8E%A7%E5%88%B6-toc\" style=\"margin-left:0px\">\u5b9e\u64cd\u4e8c\u3001\u4f7f\u7528cgroups\u5bf9\u5185\u5b58\u8fdb\u884c\u63a7\u5236<\/p>\n<p id=\"%E5%AE%9E%E6%93%8D%E4%B8%89%E3%80%81%E4%BD%BF%E7%94%A8cgroups%E5%AF%B9cpu%E8%BF%9B%E8%A1%8C%E6%8E%A7%E5%88%B6-toc\" style=\"margin-left:0px\">\u5b9e\u64cd\u4e09\u3001\u4f7f\u7528cgroups\u5bf9cpu\u8fdb\u884c\u63a7\u5236<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"%E5%89%8D%E8%A8%80\">\u524d\u8a00<\/h2>\n<p>\u2002\u2002\u2002\u2002&#x1f4ac; hello! \u5404\u4f4d\u94c1\u5b50\u4eec\u5927\u5bb6\u597d\u54c7\u3002<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u4eca\u65e5\u66f4\u65b0\u4e86Docker\u76f8\u5173\u5185\u5bb9 \u2002\u2002\u2002\u2002&#x1f389; \u6b22\u8fce\u5927\u5bb6\u5173\u6ce8&#x1f50d;\u70b9\u8d5e&#x1f44d;\u6536\u85cf\u2b50\ufe0f\u7559\u8a00&#x1f4dd;<\/p>\n<h2 id=\"%E7%9B%AE%E7%9A%84\">\u76ee\u7684<\/h2>\n<p>\u80fd\u591f\u67e5\u770bcgroups\u57fa\u672c\u4fe1\u606f&#xff0c;\u4e86\u89e3\u5bb9\u5668\u5316\u4e2d&#xff0c;\u64cd\u4f5c\u7cfb\u7edf\u662f\u771f\u6b63\u7684\u8d44\u6e90\u63a7\u5236\u5c42&#xff0c;\u5bf9cpu \u548c\u5185\u5b58\u7684\u63a7\u5236\u6709\u4e00\u5b9a\u7684\u7406\u89e3\u3002<\/p>\n<h2 id=\"%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86\">\u57fa\u7840\u77e5\u8bc6<\/h2>\n<h3 id=\"pidstat\">pidstat<\/h3>\n<p>pidstat \u662f sysstat \u7684\u4e00\u4e2a\u547d\u4ee4&#xff0c;\u7528\u4e8e\u76d1\u63a7\u5168\u90e8\u6216\u6307\u5b9a\u8fdb\u7a0b\u7684CPU\u3001\u5185\u5b58\u3001\u7ebf\u7a0b\u3001\u8bbe\u5907 IO \u7b49\u7cfb\u7edf\u8d44\u6e90\u7684\u5360\u7528\u60c5\u51b5\u3002Pidstat\u7b2c\u4e00\u6b21\u91c7\u6837\u663e\u793a\u81ea\u7cfb\u7edf\u542f\u52a8\u5f00\u59cb\u7684\u5404\u9879\u7edf\u8ba1\u4fe1\u606f&#xff0c; \u540e\u7eed\u91c7\u6837\u5c06\u663e\u793a\u81ea\u4e0a\u6b21\u8fd0\u884c\u547d\u4ee4\u540e\u7684\u7edf\u8ba1\u4fe1\u606f\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u7edf\u8ba1\u7684\u6b21\u6570\u548c\u65f6\u95f4 \u6765\u83b7\u5f97\u6240\u9700\u7684\u7edf\u8ba1\u4fe1\u606f\u3002<\/p>\n<p>\u8bed\u6cd5&#xff1a;<\/p>\n<p>pidstat [ \u9009\u9879 ] [ &lt;\u65f6\u95f4\u95f4\u9694&gt; ] [ &lt;\u6b21\u6570&gt; ]<\/p>\n<p>\u53c2\u6570&#xff1a;<\/p>\n<ul>\n<li>-u&#xff1a;\u9ed8\u8ba4\u53c2\u6570&#xff0c;\u663e\u793a\u5404\u8fdb\u7a0b\u7684CPU\u4f7f\u7528\u7edf\u8ba1<\/li>\n<li>-r&#xff1a;\u663e\u793a\u5404\u8fdb\u7a0b\u7684\u5185\u5b58\u4f7f\u7528\u7edf\u8ba1<\/li>\n<li>-d&#xff1a;\u663e\u793a\u5404\u8fdb\u7a0b\u7684IO\u4f7f\u7528\u60c5\u51b5<\/li>\n<li>-p&#xff1a;\u6307\u5b9a\u8fdb\u7a0b\u53f7,ALL\u8868\u793a\u6240\u6709\u8fdb\u7a0b<\/li>\n<li>-C&#xff1a;\u6307\u5b9a\u547d\u4ee4<\/li>\n<li>-l&#xff1a;\u663e\u793a\u547d\u4ee4\u540d\u548c\u6240\u6709\u53c2\u6570<\/li>\n<\/ul>\n<h3 id=\"stress\">stress<\/h3>\n<p>stress \u662f Linux\u7684\u4e00\u4e2a\u538b\u529b\u6d4b\u8bd5\u5de5\u5177&#xff0c;\u53ef\u4ee5\u5bf9CPU\u3001Memory\u3001IO\u3001\u78c1\u76d8\u8fdb\u884c\u538b\u529b\u6d4b \u8bd5\u3002<\/p>\n<p>\u8bed\u6cd5&#xff1a;<\/p>\n<p>stress [OPTION [ARG]]<\/p>\n<p>\u53c2\u6570&#xff1a;<\/p>\n<ul>\n<li>-c, &#8211;cpu N&#xff1a;\u4ea7\u751fN\u4e2a\u8fdb\u7a0b&#xff0c;\u6bcf\u4e2a\u8fdb\u7a0b\u90fd\u5faa\u73af\u8c03\u7528sqrt\u51fd\u6570\u4ea7\u751fCPU\u538b\u529b\u3002<\/li>\n<li>-i, &#8211;io N&#xff1a;\u4ea7\u751f N\u4e2a\u8fdb\u7a0b&#xff0c;\u6bcf\u4e2a\u8fdb\u7a0b\u5faa\u73af\u8c03\u7528sync\u5c06\u5185\u5b58\u7f13\u51b2\u533a\u5185\u5bb9\u5199\u5230\u78c1\u76d8\u4e0a&#xff0c;\u4ea7 \u751fIO\u538b\u529b\u3002\u901a\u8fc7\u7cfb\u7edf\u8c03\u7528sync\u5237\u65b0\u5185\u5b58\u7f13\u51b2\u533a\u6570\u636e\u5230\u78c1\u76d8\u4e2d&#xff0c;\u4ee5\u786e\u4fdd\u540c\u6b65\u3002\u5982\u679c\u7f13 \u51b2\u533a\u5185\u6570\u636e\u8f83\u5c11&#xff0c;\u5199\u5230\u78c1\u76d8\u4e2d\u7684\u6570\u636e\u4e5f\u8f83\u5c11&#xff0c;\u4e0d\u4f1a\u4ea7\u751fIO\u538b\u529b\u3002\u5728SSD\u78c1\u76d8\u73af\u5883\u4e2d \u5c24\u4e3a\u660e\u663e&#xff0c;\u5f88\u53ef\u80fdiowait\u603b\u662f0&#xff0c;\u5374\u56e0\u4e3a\u5927\u91cf\u8c03\u7528\u7cfb\u7edf\u8c03\u7528sync&#xff0c;\u5bfc\u81f4\u7cfb\u7edfCPU\u4f7f\u7528 \u7387sys \u5347\u9ad8\u3002<\/li>\n<li>-m, &#8211;vm N&#xff1a;\u4ea7\u751fN\u4e2a\u8fdb\u7a0b&#xff0c;\u6bcf\u4e2a\u8fdb\u7a0b\u5faa\u73af\u8c03\u7528malloc\/free\u51fd\u6570\u5206\u914d\u548c\u91ca\u653e\u5185\u5b58\u3002\n<ul>\n<li>&#8211;vm-bytes B&#xff1a;\u6307\u5b9a\u5206\u914d\u5185\u5b58\u7684\u5927\u5c0f<\/li>\n<li>&#8211;vm-keep&#xff1a;\u4e00\u76f4\u5360\u7528\u5185\u5b58&#xff0c;\u533a\u522b\u4e8e\u4e0d\u65ad\u7684\u91ca\u653e\u548c\u91cd\u65b0\u5206\u914d(\u9ed8\u8ba4\u662f\u4e0d\u65ad\u91ca\u653e\u5e76\u91cd\u65b0 \u5206\u914d\u5185\u5b58)<\/li>\n<\/ul>\n<\/li>\n<li>-d, &#8211;hdd N&#xff1a;\u4ea7\u751f N\u4e2a\u4e0d\u65ad\u6267\u884cwrite\u548cunlink\u51fd\u6570\u7684\u8fdb\u7a0b(\u521b\u5efa\u6587\u4ef6&#xff0c;\u5199\u5165\u5185\u5bb9&#xff0c;\u5220 \u9664\u6587\u4ef6)\n<ul>\n<li>&#8211;hdd-bytes B&#xff1a;\u6307\u5b9a\u6587\u4ef6\u5927\u5c0f<\/li>\n<\/ul>\n<\/li>\n<li>-t, &#8211;timeout N&#xff1a;\u5728 N\u79d2\u540e\u7ed3\u675f\u7a0b\u5e8f<\/li>\n<li>-q, &#8211;quiet&#xff1a;\u7a0b\u5e8f\u5728\u8fd0\u884c\u7684\u8fc7\u7a0b\u4e2d\u4e0d\u8f93\u51fa\u4fe1\u606f<\/li>\n<\/ul>\n<h2 id=\"%E5%AE%9E%E6%93%8D%E4%B8%80%E3%80%81cgroups%E4%BF%A1%E6%81%AF%E6%9F%A5%E7%9C%8B\">\u5b9e\u64cd\u4e00\u3001cgroups\u4fe1\u606f\u67e5\u770b<\/h2>\n<h3 id=\"cgroups%E7%89%88%E6%9C%AC%E6%9F%A5%E7%9C%8B\">cgroups\u7248\u672c\u67e5\u770b<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"90\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134259-6a733de37e6c3.png\" width=\"534\" \/><\/p>\n<p>\u5982\u679c\u770b\u5230cgroup2&#xff0c;\u8868\u793a\u652f\u6301cgroup v2<\/p>\n<p>\u5982\u4f55\u786e\u5b9a\u7cfb\u7edf\u4f7f\u7528\u7684\u7248\u672c&#xff1f;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"81\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134259-6a733de3898c8.png\" width=\"494\" \/><\/p>\n<h3 id=\"cgroups%E5%AD%90%E7%B3%BB%E7%BB%9F%E6%9F%A5%E7%9C%8B\">cgroups\u5b50\u7cfb\u7edf\u67e5\u770b<\/h3>\n<p>cgroupv1\u67e5\u770b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"338\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134259-6a733de39481b.png\" width=\"557\" \/><\/p>\n<p>cgroupv2\u67e5\u770b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"71\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134259-6a733de3a5be8.png\" width=\"437\" \/><\/p>\n<h3 id=\"cgroups%E6%8C%82%E8%BD%BD%E4%BF%A1%E6%81%AF%E6%9F%A5%E7%9C%8B\">cgroups\u6302\u8f7d\u4fe1\u606f\u67e5\u770b<\/h3>\n<p>cgroupv1\u6302\u8f7d<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u9ed8\u8ba4\u5b58\u50a8\u4f4d\u7f6e\u4e3a \/sys\/fs\/cgroup<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"615\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134259-6a733de3b2004.png\" width=\"460\" \/><\/p>\n<p>cgroupv2\u6302\u8f7d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"73\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134259-6a733de3c84f5.png\" width=\"545\" \/><\/p>\n<h3 id=\"%E6%9F%A5%E7%9C%8B%E4%B8%80%E4%B8%AA%E8%BF%9B%E7%A8%8B%E4%B8%8A%E7%9A%84cgroup%E9%99%90%E5%88%B6\">\u67e5\u770b\u4e00\u4e2a\u8fdb\u7a0b\u4e0a\u7684cgroup\u9650\u5236<\/h3>\n<p>cgroupv1\u7248\u672c\u67e5\u770b&#xff1a;<\/p>\n<p>\u4ee5\u5f53\u524dshell\u8fdb\u7a0b\u4e3a\u4f8b,\u67e5\u770b\u8fdb\u7a0b\u7684cgroup<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"261\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134259-6a733de3d3a90.png\" width=\"506\" \/><\/p>\n<p>\u6bd4\u5982cpu\u5728user.slice&#xff0c;\u6211\u4eec\u53ef\u4ee5\u627e\u5230\u8fd9\u4e2a\u76ee\u5f55&#xff0c;\u91cc\u9762\u6709\u5bf9init\u8fdb\u7a0b\u7684\u8be6\u7ec6\u9650\u5236\u4fe1 \u606f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"341\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134259-6a733de3e4875.png\" width=\"554\" \/><\/p>\n<p>cgroupv2\u7248\u672c\u67e5\u770b<\/p>\n<p>\u4ee5\u5f53\u524dshell\u8fdb\u7a0b\u4e3a\u4f8b,\u67e5\u770b\u8fdb\u7a0b\u7684cgroup<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"51\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134300-6a733de4031ba.png\" width=\"494\" \/><\/p>\n<p>\u6bd4\u5982cpu\u5728user.slice&#xff0c;\u6211\u4eec\u53ef\u4ee5\u627e\u5230\u8fd9\u4e2a\u76ee\u5f55&#xff0c;\u91cc\u9762\u6709\u5bf9init\u8fdb\u7a0b\u7684\u8be6\u7ec6\u9650\u5236\u4fe1 \u606f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"790\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134300-6a733de40d1a4.png\" width=\"514\" \/><\/p>\n<h2 id=\"%E5%AE%9E%E6%93%8D%E4%BA%8C%E3%80%81%E4%BD%BF%E7%94%A8cgroups%E5%AF%B9%E5%86%85%E5%AD%98%E8%BF%9B%E8%A1%8C%E6%8E%A7%E5%88%B6\">\u5b9e\u64cd\u4e8c\u3001\u4f7f\u7528cgroups\u5bf9\u5185\u5b58\u8fdb\u884c\u63a7\u5236<\/h2>\n<p>cgroupv1\u64cd\u4f5c<\/p>\n<p>\u521b\u5efa\u5185\u5b58\u7684cgroup&#xff0c;\u5f88\u7b80\u5355\u6211\u4eec\u8fdb\u5165\u5230cgroup\u7684\u5185\u5b58\u63a7\u5236\u76ee\u5f55 \/sys\/fs\/cgroup\/memory&#xff0c;\u6211\u4eec\u521b\u5efa\u76ee\u5f55test_memory<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"909\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134300-6a733de422848.png\" width=\"601\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"161\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134300-6a733de43aaf1.png\" width=\"557\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u5185\u5b58\u9650\u5236\u6587\u4ef6\u5df2\u7ecf\u81ea\u52a8\u5728test_memory\u4e2d\u521b\u5efa\u5b8c\u6210\u4e86&#xff0c;cgroups \u6587\u4ef6\u7cfb \u7edf\u4f1a\u5728\u521b\u5efa\u6587\u4ef6\u76ee\u5f55\u7684\u65f6\u5019\u81ea\u52a8\u521b\u5efa\u76f8\u5e94\u7684\u914d\u7f6e\u6587\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"726\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134300-6a733de4487ee.png\" width=\"594\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"100\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134300-6a733de460380.png\" width=\"555\" \/><\/p>\n<p>\u914d\u7f6ecgroup\u7684\u7b56\u7565\u4e3a\u6700\u5927\u4f7f\u752820M\u5185\u5b58<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"254\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134300-6a733de46d596.png\" width=\"606\" \/><\/p>\n<p>\u542f\u52a81\u4e2a\u6d88\u8017\u5185\u5b58\u7684\u8fdb\u7a0b&#xff0c;\u6bcf\u4e2a\u8fdb\u7a0b\u5360\u752850M\u5185\u5b58<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"63\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134300-6a733de4812df.png\" width=\"593\" \/><\/p>\n<p>\u6253\u5f00\u4e00\u4e2a\u65b0\u7684shell\u7a97\u53e3B\u7a97\u53e3&#xff0c;\u4f7f\u7528pidstat\u67e5\u770b\u72b6\u6001&#xff0c;\u7ea2\u8272\u4e3a\u8fdb\u7a0bid<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"329\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134300-6a733de48b8d4.png\" width=\"603\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"260\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134300-6a733de49ca5a.png\" width=\"593\" \/><\/p>\n<p>\u6253\u5f00\u4e00\u4e2a\u65b0\u7684shell C\u7a97\u53e3&#xff0c;\u5c06\u8fdb\u7a0bid\u79fb\u52a8\u5230\u6211\u4eec\u7684cgroup\u7b56\u7565<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"51\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134300-6a733de4ac0d5.png\" width=\"324\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u8fdb\u7a0b\u65e0\u6cd5\u7533\u8bf7\u5230\u8db3\u591f\u5185\u5b58\u9000\u51fa<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"106\" src=\"2026-08-05nxna31iqnwk.png\" width=\"588\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u8fdb\u7a0b\u6d88\u5931\u4e86<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"140\" src=\"2026-08-050shjhd4wvuo.png\" width=\"609\" \/><\/p>\n<p>cgroupv2 \u64cd\u4f5c<\/p>\n<p>\u67e5\u770b\u5f53\u524d\u7684\u63a7\u5236&#xff0c;\u786e\u8ba4memory\u662f\u652f\u6301\u7684<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"83\" src=\"2026-08-05x55jskyn3v3.png\" width=\"458\" \/><\/p>\n<p>cgroup v2 \u6302\u8f7d\u5728\/sys\/fs\/cgroup&#xff0c;\u521b\u5efa\u5b50cgroup\u76ee\u5f55<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"927\" src=\"2026-08-05qtiw0figtwf.png\" width=\"600\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"593\" src=\"2026-08-052dud122uyr0.png\" width=\"586\" \/><\/p>\n<p>\u914d\u7f6ecgroup\u7684\u7b56\u7565\u4e3a\u6700\u5927\u4f7f\u752820M\u5185\u5b58<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"116\" src=\"2026-08-05jtu0keuev0d.png\" width=\"602\" \/><\/p>\n<p>\u542f\u52a81\u4e2a\u6d88\u8017\u5185\u5b58\u7684\u8fdb\u7a0b&#xff0c;\u6bcf\u4e2a\u8fdb\u7a0b\u5360\u752850M\u5185\u5b58<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"82\" src=\"2026-08-05xtt0dinkhve.png\" width=\"570\" \/><\/p>\n<p>\u6253\u5f00\u4e00\u4e2a\u65b0\u7684shell\u7a97\u53e3B\u7a97\u53e3&#xff0c;\u4f7f\u7528pidstat\u67e5\u770b\u72b6\u6001&#xff0c;\u7ea2\u8272\u4e3a\u8fdb\u7a0bid<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"570\" src=\"2026-08-05zf4bfoat5xb.png\" width=\"576\" \/><\/p>\n<p>\u6253\u5f00\u4e00\u4e2a\u65b0\u7684shell C\u7a97\u53e3&#xff0c;\u5c06\u8fdb\u7a0bid\u79fb\u52a8\u5230\u6211\u4eec\u7684cgroup\u7b56\u7565<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"124\" src=\"2026-08-052w2eemuhhxc.png\" width=\"578\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u8fdb\u7a0b\u65e0\u6cd5\u7533\u8bf7\u5230\u8db3\u591f\u5185\u5b58\u9000\u51fa<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"80\" src=\"2026-08-05fxjwkpbozic.png\" width=\"562\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u8fdb\u7a0b\u6d88\u5931\u4e86<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"210\" src=\"2026-08-05zeskn1nxlr1.png\" width=\"594\" \/><\/p>\n<h2 id=\"%E5%AE%9E%E6%93%8D%E4%B8%89%E3%80%81%E4%BD%BF%E7%94%A8cgroups%E5%AF%B9cpu%E8%BF%9B%E8%A1%8C%E6%8E%A7%E5%88%B6\">\u5b9e\u64cd\u4e09\u3001\u4f7f\u7528cgroups\u5bf9cpu\u8fdb\u884c\u63a7\u5236<\/h2>\n<p>cgroupv1 \u64cd\u4f5c<\/p>\n<p>\u521b\u5efa\u5185\u5b58\u7684cgroup&#xff0c;\u5f88\u7b80\u5355\u6211\u4eec\u8fdb\u5165\u5230cgroup\u7684\u5185\u5b58\u63a7\u5236\u76ee\u5f55 \/sys\/fs\/cgroup\/cpu&#xff0c;\u6211\u4eec\u521b\u5efa\u76ee\u5f55 test_cpu&#xff0c;\u53ef\u4ee5\u770b\u5230\u7cfb\u7edf\u4f1a\u81ea\u52a8\u4e3a\u6211\u4eec\u521b\u5efacgroup \u7684cpu\u7b56\u7565<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"437\" src=\"2026-08-05umlapj4oypo.png\" width=\"594\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"137\" src=\"2026-08-05wmu4ubtwcyf.png\" width=\"584\" \/><\/p>\n<p>\u6253\u5f00\u65b0\u7684shell \u7a97\u53e3B\u7a97\u53e3&#xff0c;\u4f7f\u7528stress\u6a21\u62df\u4e00\u4e2a\u4efb\u52a1&#xff0c;cpu\u4f7f\u7528\u7387\u4e3a100<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"57\" src=\"2026-08-05z0lkt320icr.png\" width=\"584\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230cpu\u7684\u4f7f\u7528\u7387\u4e3a100%<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"406\" src=\"2026-08-05ckvzhjxtwox.png\" width=\"594\" \/><\/p>\n<p>\u6253\u5f00\u65b0\u7684shell\u7a97\u53e3C\u7a97\u53e3&#xff0c;\u6211\u4eec\u8bbe\u7f6ecproup\u7684cpu\u4f7f\u7528\u7387\u4e3a30%&#xff0c;cpu\u4f7f\u7528\u7387 \u7684\u8ba1\u7b97\u516c\u5f0fcfs_quota_us\/cfs_period_us<\/p>\n<p>1&#xff09;cfs_period_us&#xff1a;cfs_period_us \u8868\u793a\u4e00\u4e2a cpu \u5e26\u5bbd&#xff0c;\u5355\u4f4d\u4e3a\u5fae\u79d2\u3002\u7cfb\u7edf\u603b CPU \u5e26 \u5bbd &#xff0c;\u9ed8\u8ba4\u503c100000\u3002<\/p>\n<p>2&#xff09;cfs_quota_us&#xff1a;cfs_quota_us \u8868\u793a Cgroup \u53ef\u4ee5\u4f7f\u7528\u7684 cpu \u7684\u5e26\u5bbd&#xff0c;\u5355\u4f4d\u4e3a\u5fae\u79d2\u3002 cfs_quota_us \u4e3a-1&#xff0c;\u8868\u793a\u4f7f\u7528\u7684 CPU \u4e0d\u53d7 cgroup \u9650\u5236\u3002cfs_quota_us \u7684\u6700\u5c0f\u503c\u4e3a1ms(1000)&#xff0c;\u6700\u5927\u503c\u4e3a1s\u3002<\/p>\n<p>\u6240\u4ee5\u6211\u4eec\u5c06cfs_quota_us\u7684\u503c\u8bbe\u7f6e\u4e3a30000 &#xff0c;\u4ece\u7406\u8bba\u4e0a\u8bb2\u5c31\u53ef\u4ee5\u9650\u5236test_cpu\u63a7 \u5236\u7684\u8fdb\u7a0b\u7684cpu\u5229\u7528\u7387\u6700\u591a\u662f30% \u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"51\" src=\"2026-08-05sg5pr1nve3e.png\" width=\"360\" \/><\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u8fdb\u7a0b\u7684PID\u4e3a62577&#xff0c;\u6211\u4eec\u5c06\u8be5\u8fdb\u7a0b\u653e\u5230tasks\u6587\u4ef6\u8fdb\u884c\u63a7\u5236<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"60\" src=\"2026-08-05mwgbuxe1zms.png\" width=\"307\" \/><\/p>\n<p>B\u7a97\u53e3\u4e2d\u53ef\u4ee5\u770b\u5230\u6211\u4eec\u76d1\u63a7\u7684cpu\u7684\u4f7f\u7528\u7387\u7531100%\u964d\u4f4e\u4e3a30%<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"382\" src=\"2026-08-053rrt1nzra1i.png\" width=\"528\" \/><\/p>\n<p>cgroupv2 \u64cd\u4f5c<\/p>\n<p>\u521b\u5efa\u5185\u5b58\u7684cgroup&#xff0c;\u5f88\u7b80\u5355\u6211\u4eec\u8fdb\u5165\u5230cgroup\u7684\u5185\u5b58\u63a7\u5236\u76ee\u5f55\/sys\/fs\/cgroup\/&#xff0c; \u6211\u4eec\u521b\u5efa\u76ee\u5f55test_cpu&#xff0c;\u53ef\u4ee5\u770b\u5230\u7cfb\u7edf\u4f1a\u81ea\u52a8\u4e3a\u6211\u4eec\u521b\u5efacgroup\u7684cpu\u7b56\u7565<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"113\" src=\"2026-08-05ltoovnqhhfe.png\" width=\"597\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"950\" src=\"2026-08-05nnvbv0ssiyj.png\" width=\"566\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"438\" src=\"2026-08-05n2spbtzpwr2.png\" width=\"557\" \/><\/p>\n<p>\u6253\u5f00\u65b0\u7684shell \u7a97\u53e3B\u7a97\u53e3&#xff0c;\u4f7f\u7528stress\u6a21\u62df\u4e00\u4e2a\u4efb\u52a1&#xff0c;cpu\u4f7f\u7528\u7387\u4e3a100<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"61\" src=\"2026-08-05fagsojzwloe.png\" width=\"596\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230cpu\u7684\u4f7f\u7528\u7387\u4e3a100%<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"298\" src=\"2026-08-05s5zloiv3gmd.png\" width=\"580\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"281\" src=\"2026-08-05u1igks1cd0c.png\" width=\"583\" \/><\/p>\n<p>\u6253\u5f00\u65b0\u7684shell\u7a97\u53e3C\u7a97\u53e3&#xff0c;\u6211\u4eec\u8bbe\u7f6ecproup\u7684cpu\u4f7f\u7528\u7387\u4e3a30%&#xff0c;cpu\u4f7f\u7528\u7387 \u7684\u8ba1\u7b97\u516c\u5f0fcfs_quota_us\/cfs_period_us<\/p>\n<p>1&#xff09;cfs_period_us&#xff1a;cfs_period_us \u8868\u793a\u4e00\u4e2a cpu \u5e26\u5bbd&#xff0c;\u5355\u4f4d\u4e3a\u5fae\u79d2\u3002\u7cfb\u7edf\u603b CPU \u5e26 \u5bbd &#xff0c;\u9ed8\u8ba4\u503c100000\u3002<\/p>\n<p>2&#xff09;cfs_quota_us&#xff1a;cfs_quota_us \u8868\u793a Cgroup \u53ef\u4ee5\u4f7f\u7528\u7684 cpu \u7684\u5e26\u5bbd&#xff0c;\u5355\u4f4d\u4e3a\u5fae\u79d2\u3002 cfs_quota_us \u4e3a-1&#xff0c;\u8868\u793a\u4f7f\u7528\u7684 CPU \u4e0d\u53d7 cgroup \u9650\u5236\u3002cfs_quota_us \u7684\u6700\u5c0f\u503c\u4e3a 1ms(1000)&#xff0c;\u6700\u5927\u503c\u4e3a1s\u3002<\/p>\n<p>\u6240\u4ee5\u6211\u4eec\u5c06cfs_quota_us\u7684\u503c\u8bbe\u7f6e\u4e3a30000 &#xff0c;\u4ece\u7406\u8bba\u4e0a\u8bb2\u5c31\u53ef\u4ee5\u9650\u5236test_cpu\u63a7 \u5236\u7684\u8fdb\u7a0b\u7684cpu\u5229\u7528\u7387\u6700\u591a\u662f30% \u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"56\" src=\"2026-08-05p0pozwbbsvu.png\" width=\"313\" \/><\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u8fdb\u7a0b\u7684PID\u4e3a4782&#xff0c;\u6211\u4eec\u5c06\u8be5\u8fdb\u7a0b\u653e\u5230procs\u6587\u4ef6\u8fdb\u884c\u63a7\u5236<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"40\" src=\"2026-08-05xhyx0wep2j2.png\" width=\"269\" \/><\/p>\n<p>B\u7a97\u53e3\u4e2d\u53ef\u4ee5\u770b\u5230\u6211\u4eec\u76d1\u63a7\u7684cpu\u7684\u4f7f\u7528\u7387\u7531100%\u964d\u4f4e\u4e3a30%<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"464\" src=\"2026-08-05yqgnawoxooj.png\" width=\"604\" \/><\/p>\n<p>\u81f3\u6b64\u6211\u4eec\u6210\u529f\u7684\u6a21\u62df\u4e86\u5bf9\u5185\u5b58\u548ccpu\u7684\u4f7f\u7528\u63a7\u5236&#xff0c;\u800cdocker\u672c\u8d28\u4e5f\u662f\u8c03\u7528\u8fd9\u4e9b\u7684API \u6765\u5b8c\u6210\u5bf9\u8d44\u6e90\u7684\u7ba1\u7406&#xff0c;\u53ea\u4e0d\u8fc7docker\u7684\u6613\u7528\u6027\u548c\u955c\u50cf\u7684\u8bbe\u8ba1\u66f4\u52a0\u4eba\u6027\u5316&#xff0c;\u6240\u4ee5docker \u624d\u80fd\u98ce\u9761\u5168\u7403<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f308;\u4e2a\u4eba\u4e3b\u9875&#xff1a;\u79e6jh__https:\/\/blog.csdn.net\/qinjh_?spm1010.2135.3001.5343 &#x1f525;\u00a0\u7cfb\u5217\u4e13\u680f&#xff1a;Docker_\u79e6jh_\u7684\u535a\u5ba2-CSDN\u535a\u5ba2 \u200b\u200b\u200b\u200b<br \/>\n\u76ee\u5f55<br \/>\n\u76ee\u7684<br \/>\n\u57fa\u7840\u77e5\u8bc6<br \/>\npidstat<br \/>\nstress<br \/>\n\u5b9e\u64cd\u4e00\u3001cgroups\u4fe1\u606f\u67e5\u770b<br \/>\ncgroups\u7248\u672c\u67e5\u770b<br \/>\ncgroups\u5b50\u7cfb\u7edf\u67e5\u770b<br \/>\ncgroups\u6302\u8f7d\u4fe1\u606f\u67e5\u770b<br \/>\n\u67e5\u770b\u4e00\u4e2a\u8fdb\u7a0b\u4e0a\u7684cgroup\u9650\u5236<br \/>\n\u5b9e\u64cd\u4e8c\u3001<\/p>\n","protected":false},"author":2,"featured_media":90724,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,121,44],"topic":[],"class_list":["post-90744","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker","tag-121","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Docker\u3011\u8d44\u6e90\u63a7\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/90744.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Docker\u3011\u8d44\u6e90\u63a7\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"&#x1f308;\u4e2a\u4eba\u4e3b\u9875&#xff1a;\u79e6jh__https:\/\/blog.csdn.net\/qinjh_?spm1010.2135.3001.5343 &#x1f525;\u00a0\u7cfb\u5217\u4e13\u680f&#xff1a;Docker_\u79e6jh_\u7684\u535a\u5ba2-CSDN\u535a\u5ba2 \u200b\u200b\u200b\u200b \u76ee\u5f55 \u76ee\u7684 \u57fa\u7840\u77e5\u8bc6 pidstat stress \u5b9e\u64cd\u4e00\u3001cgroups\u4fe1\u606f\u67e5\u770b cgroups\u7248\u672c\u67e5\u770b cgroups\u5b50\u7cfb\u7edf\u67e5\u770b cgroups\u6302\u8f7d\u4fe1\u606f\u67e5\u770b \u67e5\u770b\u4e00\u4e2a\u8fdb\u7a0b\u4e0a\u7684cgroup\u9650\u5236 \u5b9e\u64cd\u4e8c\u3001\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/90744.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-05T13:43:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134259-6a733de370796.gif\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/90744.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/90744.html\",\"name\":\"\u3010Docker\u3011\u8d44\u6e90\u63a7\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-05T13:43:01+00:00\",\"dateModified\":\"2026-08-05T13:43:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/90744.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/90744.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/90744.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Docker\u3011\u8d44\u6e90\u63a7\u5236\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Docker\u3011\u8d44\u6e90\u63a7\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/90744.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Docker\u3011\u8d44\u6e90\u63a7\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"&#x1f308;\u4e2a\u4eba\u4e3b\u9875&#xff1a;\u79e6jh__https:\/\/blog.csdn.net\/qinjh_?spm1010.2135.3001.5343 &#x1f525;\u00a0\u7cfb\u5217\u4e13\u680f&#xff1a;Docker_\u79e6jh_\u7684\u535a\u5ba2-CSDN\u535a\u5ba2 \u200b\u200b\u200b\u200b \u76ee\u5f55 \u76ee\u7684 \u57fa\u7840\u77e5\u8bc6 pidstat stress \u5b9e\u64cd\u4e00\u3001cgroups\u4fe1\u606f\u67e5\u770b cgroups\u7248\u672c\u67e5\u770b cgroups\u5b50\u7cfb\u7edf\u67e5\u770b cgroups\u6302\u8f7d\u4fe1\u606f\u67e5\u770b \u67e5\u770b\u4e00\u4e2a\u8fdb\u7a0b\u4e0a\u7684cgroup\u9650\u5236 \u5b9e\u64cd\u4e8c\u3001","og_url":"https:\/\/www.wsisp.com\/helps\/90744.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-05T13:43:01+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260805134259-6a733de370796.gif"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/90744.html","url":"https:\/\/www.wsisp.com\/helps\/90744.html","name":"\u3010Docker\u3011\u8d44\u6e90\u63a7\u5236 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-05T13:43:01+00:00","dateModified":"2026-08-05T13:43:01+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/90744.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/90744.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/90744.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Docker\u3011\u8d44\u6e90\u63a7\u5236"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/90744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=90744"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/90744\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/90724"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=90744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=90744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=90744"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=90744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}