{"id":51779,"date":"2024-12-03T10:20:12","date_gmt":"2024-12-03T02:20:12","guid":{"rendered":"https:\/\/fwq.ai\/blog\/51779\/"},"modified":"2024-12-03T10:20:12","modified_gmt":"2024-12-03T02:20:12","slug":"%e4%bb%80%e4%b9%88%e6%98%aflinux%e7%b3%bb%e7%bb%9f%e4%b8%ad%e7%9a%84proc%e7%9b%ae%e5%bd%95","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/51779\/","title":{"rendered":"\u4ec0\u4e48\u662fLinux\u7cfb\u7edf\u4e2d\u7684proc\u76ee\u5f55"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u4ec0\u4e48\u662fLinux\u7cfb\u7edf\u4e2d\u7684proc\u76ee\u5f55<\/h1>\n<p>\u54c8\u55bd\uff01\u5927\u5bb6\u597d\uff0c\u5f88\u9ad8\u5174\u53c8\u89c1\u9762\u4e86\uff0c\u6211\u662f\u7c73\u4e91\u7684\u4e00\u540d\u4f5c\u8005\uff0c\u4eca\u5929\u7531\u6211\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u7bc7<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300a\u4ec0\u4e48\u662fLinux\u7cfb\u7edf\u4e2d\u7684proc\u76ee\u5f55\u300b<\/span>\uff0c\u672c\u6587\u4e3b\u8981\u4f1a\u8bb2\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u5927\u5bb6\u4e00\u8d77\u5b66\u4e60\u8fdb\u6b65\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5173\u6ce8\u3001\u70b9\u8d5e\u3001\u6536\u85cf\u3001\u8f6c\u53d1! \u4e0b\u9762\u5c31\u4e00\u8d77\u6765\u770b\u770b\u5427\uff01<\/p>\n<\/p>\n<blockquote>\n<p>\u5728linux\u4e2d\uff0cproc\u662f\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff0c\u662f\u4e00\u4e2a\u63a7\u5236\u4e2d\u5fc3\uff0c\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u5176\u4e2d\u67d0\u4e9b\u6587\u4ef6\u6539\u53d8\u5185\u6838\u8fd0\u884c\u72b6\u6001\uff1b\u5b83\u4e5f\u662f\u5185\u6838\u63d0\u7a7a\u7ed9\u6211\u4eec\u7684\u67e5\u8be2\u4e2d\u5fc3\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u5b83\u67e5\u770b\u7cfb\u7edf\u786c\u4ef6\u53ca\u5f53\u524d\u8fd0\u884c\u7684\u8fdb\u7a0b\u4fe1\u606f\u3002proc\u7cfb\u7edf\u53ea\u5b58\u5728\u5185\u5b58\u5f53\u4e2d\uff0c\u4ee5\u6587\u4ef6\u7cfb\u7edf\u7684\u65b9\u5f0f\u4e3a\u8bbf\u95ee\u7cfb\u7edf\u5185\u6838\u6570\u636e\u7684\u64cd\u4f5c\u63d0\u4f9b\u63a5\u53e3\uff0c\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u5176\u4e2d\u7684\u67d0\u4e9b\u6587\u4ef6\u6765\u6539\u53d8\u5185\u6838\u8fd0\u884c\u72b6\u6001\u3002<\/p>\n<\/blockquote>\n<p>proc\u88ab\u79f0\u4e3a\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u662f\u4e00\u4e2a\u63a7\u5236\u4e2d\u5fc3\uff0c\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u5176\u4e2d\u67d0\u4e9b\u6587\u4ef6\u6539\u53d8\u5185\u6838\u8fd0\u884c\u72b6\u6001\uff0c\u5b83\u4e5f\u662f\u5185\u6838\u63d0\u7a7a\u7ed9\u6211\u4eec\u7684\u67e5\u8be2\u4e2d\u5fc3\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u5b83\u67e5\u770b\u7cfb\u7edf\u786c\u4ef6\u53ca\u5f53\u524d\u8fd0\u884c\u7684\u8fdb\u7a0b\u4fe1\u606f\u3002<\/p>\n<p>Linux\u4e2d\u8bb8\u591a\u5de5\u5177\u7684\u6570\u636e\u6765\u6e90\u6b63\u662fproc\u76ee\u5f55\u4e2d\u7684\u5185\u5bb9\uff0c\u6bd4\u5982lsmod\u7684\u547d\u4ee4\u662fcat \/proc\/modules\u7684\u522b\u540d\u3002<\/p>\n<p>\u5728Linux\u4e2d\u5b58\u5728\u7740\u4e00\u7c7b\u7279\u6b8a\u7684\u4f2a\u6587\u4ef6\u7cfb\u7edf\uff0c\u7528\u4e8e\u4f7f\u7528\u4e0e\u6587\u4ef6\u63a5\u53e3\u7edf\u4e00\u7684\u64cd\u4f5c\u6765\u5b8c\u6210\u5404\u79cd\u529f\u80fd\uff0c\u4f8b\u5982ptyfs\u3001devfs\u3001sysfs\u548cprocfs\u3002\u800cprocfs\u5c31\u662f\u5176\u4e2d\u5e94\u7528\u6700\u5e7f\u6cdb\u7684\u4e00\u79cd\u4f2a\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n<p>\u5c31\u6587\u4ef6\u7cfb\u7edf\u8fd9\u4e00\u672f\u8bed\u800c\u8a00\uff0c\/ proc\u76ee\u5f55\u5e76\u4e0d\u662f\u771f\u6b63\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u662f\u4e00\u4e2a\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff0c\u6709\u65f6\u4e5f\u88ab\u79f0\u4e3a\u8fdb\u7a0b\u4fe1\u606f\u4f2a\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n<p>proc \u653e\u7f6e\u7684\u6570\u636e\u90fd\u662f\u5728\u5185\u5b58\u5f53\u4e2d\uff0c\u4f8b\u5982\u7cfb\u7edf\u5185\u6838\u3001\u8fdb\u7a0b\u3001\u5916\u90e8\u8bbe\u5907\u7684\u72b6\u6001\u53ca\u7f51\u7edc\u72b6\u6001\u7b49\u3002\u56e0\u4e3a\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u7684\u6570\u636e\u90fd\u662f\u5728\u5185\u5b58\u5f53\u4e2d\uff0c\u6240\u4ee5\u672c\u8eab\u4e0d\u5360\u4efb\u4f55\u786c\u76d8\u7a7a\u95f4\u3002<\/p>\n<p>procfs\u662fLinux\u5185\u6838\u4fe1\u606f\u7684\u62bd\u8c61\u6587\u4ef6\u63a5\u53e3\uff0c\u5927\u91cf\u5185\u6838\u4e2d\u7684\u4fe1\u606f\u4ee5\u53ca\u53ef\u8c03\u53c2\u6570\u90fd\u88ab\u4f5c\u4e3a\u5e38\u89c4\u6587\u4ef6\u6620\u5c04\u5230\u4e00\u4e2a\u76ee\u5f55\u6811\u4e2d\uff0c\u8fd9\u6837\u6211\u4eec\u5c31\u53ef\u4ee5\u7b80\u5355\u76f4\u63a5\u7684\u901a\u8fc7echo\u6216cat\u8fd9\u6837\u7684\u6587\u4ef6\u64cd\u4f5c\u547d\u4ee4\u5bf9\u7cfb\u7edf\u4fe1\u606f\u8fdb\u884c\u67e5\u53d6\u548c\u8c03\u6574\u4e86\u3002\u540c\u65f6procfs\u4e5f\u63d0\u4f9b\u4e86\u4e00\u4e2a\u63a5\u53e3\uff0c\u4f7f\u5f97\u6211\u4eec\u81ea\u5df1\u7684\u5185\u6838\u6a21\u5757\u6216\u7528\u6237\u6001\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7procfs\u8fdb\u884c\u53c2\u6570\u7684\u4f20\u9012\u3002\u5728\u5f53\u4eca\u7684Linux\u7cfb\u7edf\u4e2d\uff0c\u5927\u91cf\u7684\u7cfb\u7edf\u5de5\u5177\u4e5f\u901a\u8fc7procfs\u83b7\u53d6\u5185\u6838\u53c2\u6570\uff0c\u4f8b\u5982ps\u3001lspci\u7b49\u7b49\uff0c\u6ca1\u6709procfs\u5b83\u4eec\u5c06\u53ef\u80fd\u4e0d\u80fd\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<p>proc\u6587\u4ef6\u7cfb\u7edf\u662f\u4e00\u4e2a\u4f2a\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u53ea\u5b58\u5728\u5185\u5b58\u5f53\u4e2d\uff0c\u800c\u4e0d\u5360\u7528\u5916\u5b58\u7a7a\u95f4\u3002\u5b83\u4ee5\u6587\u4ef6\u7cfb\u7edf\u7684\u65b9\u5f0f\u4e3a\u8bbf\u95ee\u7cfb\u7edf\u5185\u6838\u6570\u636e\u7684\u64cd\u4f5c\u63d0\u4f9b\u63a5\u53e3\u3002\u7528\u6237\u548c\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7proc\u5f97\u5230\u7cfb\u7edf\u7684\u4fe1\u606f\uff0c\u5e76\u53ef\u4ee5\u6539\u53d8\u5185\u6838\u7684\u67d0\u4e9b\u53c2\u6570\u3002\u7531\u4e8e\u7cfb\u7edf\u7684\u4fe1\u606f\uff0c\u5982\u8fdb\u7a0b\uff0c\u662f\u52a8\u6001\u6539\u53d8\u7684\uff0c\u6240\u4ee5\u7528\u6237\u6216\u5e94\u7528\u7a0b\u5e8f\u8bfb\u53d6proc\u6587\u4ef6\u65f6\uff0cproc\u6587\u4ef6\u7cfb\u7edf\u662f\u52a8\u6001\u4ece\u7cfb\u7edf\u5185\u6838\u8bfb\u51fa\u6240\u9700\u4fe1\u606f\u5e76\u63d0\u4ea4\u7684\u3002<\/p>\n<h3><strong>linux proc\u6587\u4ef6\u7cfb\u7edf\u8be6\u89e3<\/strong><\/h3>\n<p>Linux\u7cfb\u7edf\u4e0a\u7684\/proc\u76ee\u5f55\u662f\u4e00\u79cd\u6587\u4ef6\u7cfb\u7edf\uff0c\u5373proc\u6587\u4ef6\u7cfb\u7edf\u3002\u4e0e\u5176\u5b83\u5e38\u89c1\u7684\u6587\u4ef6\u7cfb\u7edf\u4e0d\u540c\u7684\u662f\uff0c\/proc\u662f\u4e00\u79cd\u4f2a\u6587\u4ef6\u7cfb\u7edf\uff08\u4e5f\u5373\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u53ea\u5b58\u5728\u5185\u5b58\u5f53\u4e2d\uff0c\u800c\u4e0d\u5360\u7528\u5916\u5b58\u7a7a\u95f4\u3002\u5b83\u4ee5\u6587\u4ef6\u7cfb\u7edf\u7684\u65b9\u5f0f\u4e3a\u8bbf\u95ee\u7cfb\u7edf\u5185\u6838\u6570\u636e\u7684\u64cd\u4f5c\u63d0\u4f9b\u63a5\u53e3\uff09\uff0c\u5b58\u50a8\u7684\u662f\u5f53\u524d\u5185\u6838\u8fd0\u884c\u72b6\u6001\u7684\u4e00\u7cfb\u5217\u7279\u6b8a\u6587\u4ef6\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e9b\u6587\u4ef6\u67e5\u770b\u6709\u5173\u7cfb\u7edf\u786c\u4ef6\u53ca\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u8fdb\u7a0b\u7684\u4fe1\u606f\uff0c\u751a\u81f3\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u5176\u4e2d\u67d0\u4e9b\u6587\u4ef6\u6765\u6539\u53d8\u5185\u6838\u7684\u8fd0\u884c\u72b6\u6001\u3002<\/p>\n<p><strong>PID<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u7cfb\u7edf\u4e2d\u5f53\u524d\u8fd0\u884c\u7684\u6bcf\u4e00\u4e2a\u8fdb\u7a0b\u90fd\u6709\u5bf9\u5e94\u7684\u4e00\u4e2a\u76ee\u5f55\u5728\/proc\u4e0b\uff0c\u4ee5\u8fdb\u7a0b\u7684 PID\u53f7\u4e3a\u76ee\u5f55\u540d.<\/p>\n<ul>\n<li>\n<p><strong>attr<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u63d0\u4f9b\u4e86\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\uff0c\u53ef\u8bfb\u53ef\u5199\uff0c\u4ee5\u652f\u6301\u5b89\u5168\u6a21\u5757\u5982SELinux\u7b49\uff0c\u9700\u914d\u7f6eCONFIG_SECURITY\u3002<\/p>\n<\/li>\n<li>\n<p><strong>current<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5f53\u524d\u7684\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\u3002<\/p>\n<\/li>\n<li>\n<p><strong>exec<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u6267\u884c\u547d\u4ee4execve\u65f6\u8bbe\u7f6e\u7684\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\u3002<\/p>\n<\/li>\n<li>\n<p><strong>fscreate<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u6267\u884c\u547d\u4ee4open\u3001mkdir\u3001symlink\u3001mknod\u65f6\u8bbe\u7f6e\u7684\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\u3002<\/p>\n<\/li>\n<li>\n<p><strong>keycreate<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u6267\u884c\u547d\u4ee4add_key\u65f6\u8bbe\u7f6e\u7684\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\u3002<\/p>\n<\/li>\n<li>\n<p><strong>prev<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u6700\u540e\u4e00\u6b21\u6267\u884c\u547d\u4ee4execve\u65f6\u7684\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\uff0c\u5373\u524d\u4e00\u4e2a\u201c\/proc\/[pid]\/attr\/current\u201d\u3002<\/p>\n<\/li>\n<li>\n<p><strong>sockcreate<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u521b\u5efasocket\u65f6\u8bbe\u7f6e\u7684\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\u3002<\/p>\n<\/li>\n<li>\n<p><strong>autogroup<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u53ef\u4ee5\u7528\u6765\u4fee\u6539\u5206\u914d\u7ed9\u81ea\u52a8\u5206\u7ec4\u7684CPU\u5e26\u5bbd\u3002\u8fd9\u662f\u901a\u8fc7\u5728\u201cnice\u201d\u8303\u56f4\u5185\u5199\u5165\u4e00\u4e2a\u6570\u5b57\u6765\u8bbe\u7f6e\u81ea\u52a8\u5206\u7ec4\u7684nice\u503c\u6765\u5b8c\u6210\u7684\u3002\u53d6\u503c\u8303\u56f4\u4e3a+19(\u4f4e\u4f18\u5148\u7ea7)~ -20(\u9ad8\u4f18\u5148\u7ea7)\u3002(\u5199\u5165\u503c\u8d85\u51fa\u8fd9\u4e2a\u8303\u56f4\u4f1a\u5bfc\u81f4write(2)\u5931\u8d25\uff0c\u9519\u8bef\u4e3aEINVAL\u3002)<\/p>\n<\/li>\n<li>\n<p><strong>auxv<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cELF\u89e3\u91ca\u5668\u4fe1\u606f\uff0c\u683c\u5f0f\u4e3a\u4e00\u4e2aunsigned long\u7c7b\u578b\u7684ID\u52a0\u4e00\u4e2aunsigned long\u7c7b\u578b\u7684\u503c\uff0c\u6700\u540e\u4e3a\u4e24\u4e2a0\uff08man getauxval\uff09\u3002<\/p>\n<\/li>\n<li>\n<p><strong>cgroup<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8fdb\u7a0b\u6240\u5c5e\u7684\u63a7\u5236\u7ec4\uff0c\u683c\u5f0f\u4e3a\u5192\u53f7\u5206\u9694\u7684\u4e09\u4e2a\u5b57\u6bb5\uff0c\u5206\u522b\u662f\u7ed3\u6784ID\u3001\u5b50\u7cfb\u7edf\u3001\u63a7\u5236\u7ec4\uff0c\u9700\u914d\u7f6eCONFIG_CGROUPS\u3002<\/p>\n<\/li>\n<li>\n<p><strong>clear_refs<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u53ea\u5199\uff0c\u53ea\u7528\u4e8e\u8fdb\u7a0b\u7684\u62e5\u6709\u8005\uff0c\u6e05\u9664\u7528\u4e8e\u4f30\u7b97\u5185\u5b58\u4f7f\u7528\u91cf\u7684PG_Referenced\u548cACCESSED\/YOUNG\uff0c\u67091\u30012\u30013\u30014\u56db\u79cd\u7b56\u7565\uff0c1\u8868\u793a\u6e05\u9664\u76f8\u5173\u7684\u6240\u6709\u9875\uff0c2\u8868\u793a\u6e05\u9664\u76f8\u5173\u7684\u533f\u540d\u9875\uff0c3\u8868\u793a\u6e05\u9664\u76f8\u5173\u7684\u6620\u5c04\u6587\u4ef6\u7684\u9875\uff0c4\u8868\u793a\u6e05\u9664\u76f8\u5173\u7684soft-dirty\u7684\u9875\uff0c\u9700\u914d\u7f6eCONFIG_PROC_PAGE_MONITOR\u3002<\/p>\n<\/li>\n<li>\n<p><strong>cmdline<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u53ea\u8bfb\uff0c\u4fdd\u5b58\u542f\u52a8\u8fdb\u7a0b\u7684\u5b8c\u6574\u7684\u547d\u4ee4\u884c\u5b57\u7b26\u4e32\uff0c\u5982\u679c\u662f\u50f5\u5c38\u8fdb\u7a0b\uff0c\u8fd9\u4e2a\u6587\u4ef6\u4e3a\u7a7a\u3002<\/p>\n<\/li>\n<li>\n<p><strong>comm<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8fdb\u7a0b\u7684\u547d\u4ee4\u540d\uff0c\u4e0d\u540c\u7684\u7ebf\u7a0b\uff08man clone prctl pthread_setname_np\uff09\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u7ebf\u7a0b\u540d\uff0c\u4f4d\u7f6e\u5728\u201ctask\/[tid]\/comm\u201d\uff0c\u540d\u5b57\u957f\u5ea6\u8d85\u8fc7TASK_COMM_LEN\u65f6\u4f1a\u88ab\u622a\u65ad\u3002<\/p>\n<\/li>\n<li>\n<p><strong>coredump_filter<\/strong><\/p>\n<p>\u6587\u4ef6\uff0ccoredump\u8fc7\u6ee4\u5668\uff0c\u598200000037\uff08man core\uff09\uff0c\u4e0d\u540c\u7684\u4e8c\u8fdb\u5236\u4f4d\u8868\u793a\u8fc7\u6ee4\u4e0d\u540c\u7684\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>cpuset<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u63a7\u5236CPU\u548c\u5185\u5b58\u7684\u8282\u70b9\uff08man cpuset\uff09\u3002<\/p>\n<\/li>\n<li>\n<p><strong>cwd -&gt; \/<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u7b26\u53f7\u94fe\u63a5\u5230\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u3002<\/p>\n<\/li>\n<li>\n<p><strong>environ<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/li>\n<li>\n<p><strong>exe<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7b26\u53f7\u94fe\u63a5\u5230\u542f\u52a8\u8fdb\u7a0b\u7684\u5b8c\u6574\u547d\u4ee4\u3002q<\/p>\n<\/li>\n<li>\n<p><strong>fd<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u5305\u542b\u5f53\u524d\u7684fd\uff0c\u8fd9\u4e9bfd\u7b26\u53f7\u94fe\u63a5\u5230\u771f\u6b63\u6253\u5f00\u7684\u6587\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p><strong>fdinfo<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u5305\u542b\u5f53\u524dfd\u7684\u4fe1\u606f\uff0c\u4e0d\u540c\u7c7b\u578b\u7684fd\u4fe1\u606f\u4e0d\u540c\u3002<\/p>\n<\/li>\n<li>\n<p><strong>gid_map<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u4ece\u7528\u6237\u547d\u540d\u7a7a\u95f4\u6620\u5c04\u7684\u7ec4ID\u7684\u4fe1\u606f\uff08man user_namespaces\uff09\u3002<\/p>\n<\/li>\n<li>\n<p><strong>io<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cIO\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>limits<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8d44\u6e90\u8f6f\u3001\u786c\u9650\u5236\uff08man getrlimit\uff09\u3002<\/p>\n<\/li>\n<li>\n<p><strong>loginuid<\/strong><\/p>\n<p>\u6587\u4ef6,\u5ba1\u8ba1\u5b88\u62a4\u8fdb\u7a0b\u5728\u5185\u6838\u4e2d\u542f\u7528\u5ba1\u8ba1\u5de5\u5177\u3002\u5728\u5185\u6838\u4e2d\u6253\u5f00\u5ba1\u8ba1\u529f\u80fd\u4e4b\u524d\u8fd0\u884c\u7684\u4efb\u4f55\u8fdb\u7a0b\u90fd\u5c06\u83b7\u5f97 loginuid 4294967295\u3002<br \/> 4294967295 \u53ea\u662f (unsigned long) -1\u3002-1 \u8868\u793a\u672a\u8bbe\u7f6e loginuid\u3002\u5bf9\u4e8e\u4e0d\u662f\u7531\u4efb\u4f55\u767b\u5f55\u8fdb\u7a0b\uff08\u4f8b\u5982\u5b88\u62a4\u8fdb\u7a0b\uff09\u4ea7\u751f\u7684\u8fdb\u7a0b\uff0c\u8fd9\u662f\u6b63\u5e38\u884c\u4e3a\u3002loginuid \u9ed8\u8ba4\u4e3a -1\uff1b\u6bcf\u5f53\u60a8\u767b\u5f55\u65f6\uff08\u5728 tty\/\u5728 DM\/\u901a\u8fc7 ssh\uff09\uff0cpam_loginuid \u6a21\u5757\u90fd\u4f1a\u5c06\u5176\u66f4\u6539\u4e3a\u60a8\u7684\u7528\u6237 ID\uff0c\u5e76\u4e14\u8be5\u503c\u7531\u5b50\u8fdb\u7a0b\u4fdd\u7559\u3002<\/p>\n<\/li>\n<li>\n<p><strong>map_files<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u5305\u62ec\u4e00\u4e9b\u5185\u5b58\u6620\u5c04\u6587\u4ef6\uff08man mmap\uff09\uff0c\u6587\u4ef6\u540d\u683c\u5f0f\u4e3aBeginAddress-EndAddress\uff0c\u7b26\u53f7\u94fe\u63a5\u5230\u6620\u5c04\u7684\u6587\u4ef6\uff0c\u9700\u8981\u914d\u7f6eCONFIG_CHECKPOINT_RESTORE\u3002<\/p>\n<\/li>\n<li>\n<p><strong>maps<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5185\u5b58\u6620\u5c04\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>mem<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7528\u4e8e\u901a\u8fc7open\u3001read\u3001lseek\u8bbf\u95ee\u8fdb\u7a0b\u7684\u5185\u5b58\u9875\u3002<\/p>\n<\/li>\n<li>\n<p><strong>mountinfo<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u6302\u8f7d\u4fe1\u606f\uff0c\u683c\u5f0f\u4e3a44 41 253:1 \/ \/ rw,relatime shared:35 master:1 &#8211; ext4 \/dev\/vda1 rw,data=ordered\uff0c\u4ee5\u7a7a\u683c\u4f5c\u4e3a\u5206\u9694\u7b26\uff0c\u4ece\u5de6\u5230\u53f3\u5404\u5b57\u6bb5\u7684\u610f\u601d\u5206\u522b\u662f\u552f\u4e00\u6302\u8f7dID\u3001\u7236\u6302\u8f7dID\u3001\u6587\u4ef6\u7cfb\u7edf\u7684\u8bbe\u5907\u4e3b\u4ece\u53f7\u7801\u3001\u6587\u4ef6\u7cfb\u7edf\u4e2d\u6302\u8f7d\u7684\u6839\u8282\u70b9\u3001\u76f8\u5bf9\u4e8e\u8fdb\u7a0b\u6839\u8282\u70b9\u7684\u6302\u8f7d\u70b9\u3001\u6302\u8f7d\u6743\u9650\u7b49\u6302\u8f7d\u914d\u7f6e\u3001\u53ef\u9009\u914d\u7f6e\u3001\u77ed\u6a2a\u7ebf\u8868\u793a\u524d\u9762\u53ef\u9009\u914d\u7f6e\u7684\u7ed3\u675f\u3001\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u3001\u6587\u4ef6\u7cfb\u7edf\u7279\u6709\u7684\u6302\u8f7d\u6e90\u6216\u8005\u4e3anone\u3001\u989d\u5916\u914d\u7f6e\u3002<\/p>\n<\/li>\n<li>\n<p><strong>mounts<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u6302\u8f7d\u5728\u5f53\u524d\u8fdb\u7a0b\u7684\u6587\u4ef6\u7cfb\u7edf\u5217\u8868\uff0c\/dev\/vda1 \/ ext4 rw,relatime,data=ordered 0 0 \u683c\u5f0f\u53c2\u7167\uff08man fstab\uff09\u3002<\/p>\n<\/li>\n<li>\n<p><strong>mountstats<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u6302\u8f7d\u4fe1\u606f\uff0c\u683c\u5f0f\u5f62\u5982 device \/dev\/vda1 mounted on \/ with fstype ext4 [statistics]\u3002<\/p>\n<\/li>\n<li>\n<p><strong>net<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u4fdd\u5b58\u8fdb\u7a0b\u7684\u7f51\u7edc\u76f8\u5173\u6587\u4ef6\u548c\u76ee\u5f55\u3002<\/p>\n<\/li>\n<li>\n<p><strong>ns<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u4fdd\u5b58\u4e86\u6bcf\u4e2a\u540d\u5b57\u7a7a\u95f4\u7684\u5165\u53e3\uff0c\u8be6\u89c1\uff08man namespaces\uff09\u3002<\/p>\n<\/li>\n<li>\n<p><strong>numa_maps<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cnuma\u5373Non Uniform Memory Access\uff0c\u8be6\u89c1\uff08man numa\uff09\u3002<\/p>\n<\/li>\n<li>\n<p><strong>oom_adj<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8c03\u6574OOM\u5206\u6570\uff0cOOM\u5373Out Of Memory\uff0c\u53d1\u751fOOM\u65f6OOM Killer\u6839\u636eOOM\u5206\u6570\u6740\u6389\u5206\u6570\u9ad8\u7684\u8fdb\u7a0b\uff0c\u9ed8\u8ba4\u503c\u4e3a0\uff0c\u4f1a\u7ee7\u627f\u81ea\u7236\u8fdb\u7a0b\u7684\u8bbe\u7f6e\u3002<\/p>\n<\/li>\n<li>\n<p><strong>oom_score<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cOOM\u5206\u6570\u3002<\/p>\n<\/li>\n<li>\n<p><strong>oom_score_adj<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cOOM\u5206\u503c\u4ecb\u4e8e-1000\u52301000\u4e4b\u95f4\u3002<\/p>\n<\/li>\n<li>\n<p><strong>pagemap<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5f53\u524d\u8fdb\u7a0b\u7684\u865a\u62df\u5185\u5b58\u9875\u6620\u5c04\u4fe1\u606f\uff0c\u9700\u8981\u914d\u7f6eCONFIG_PROC_PAGE_MONITOR\u3002<\/p>\n<\/li>\n<li>\n<p><strong>personality<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u4f7f\u8fdb\u7a0b\u4e2a\u6027\u6807\u5fd7\u5728\/proc\u4e2d\u53ef\u89c1\u3002\u56e0\u4e3a\u4e00\u4e2a\u8fdb\u7a0b\u7684\u4e2a\u6027\u53ef\u80fd\u662f\u654f\u611f\u7684(\u4f8b\u5982READ_IMPLIES_EXEC)\uff0c\u6240\u4ee5\u8fd9\u4e2a\u6587\u4ef6\u53ea\u80fd\u88ab\u8fdb\u7a0b\u6240\u6709\u8005\u8bfb\u3002<\/p>\n<\/li>\n<li>\n<p><strong>projid_map<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u4e0e\u7528\u6237\u548c\u7ec4ID\u6620\u5c04\u7c7b\u4f3c\uff0c\u53ef\u4ee5\u4e3a\u7528\u6237\u540d\u79f0\u7a7a\u95f4\u521b\u5efa\u9879\u76eeID\u6620\u5c04\u3002(\u9879\u76eeid\u7528\u4e8e\u78c1\u76d8\u914d\u989d;\u8bf7\u53c2\u89c1setquota(8)\u548cquotactl(2)\u3002)<\/p>\n<\/li>\n<li>\n<p><strong>patch_state<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u516c\u5f00\u6bcf\u4e2a\u4efb\u52a1\u7684\u8865\u4e01\u72b6\u6001\u503c\uff0c\u4ee5\u4fbf\u7528\u6237\u53ef\u4ee5\u786e\u5b9a\u54ea\u4e9b\u4efb\u52a1\u6b63\u5728\u963b\u6b62\u4fee\u8865\u64cd\u4f5c\u7684\u5b8c\u6210\u3002<\/p>\n<\/li>\n<li>\n<p><strong>root -&gt; \/<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u94fe\u63a5\u5230\u4e86\u5f53\u524d\u8fdb\u7a0b\u7684\u6839\u76ee\u5f55\u3002<\/p>\n<\/li>\n<li>\n<p><strong>sched<\/strong><\/p>\n<p>\u6587\u4ef6,\u8fdb\u7a0b\u7684\u8c03\u5ea6\u7edf\u8ba1\u3001\u72b6\u6001\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>schedstat<\/strong><\/p>\n<p>\u6587\u4ef6,\u8fdb\u7a0b\u7684\u8c03\u5ea6\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>sessionid<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8fdb\u7a0b\u4f1a\u8bddID\uff0c\u9ed8\u8ba44294967295\u3002<\/p>\n<\/li>\n<li>\n<p><strong>setgroups<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5982\u679c\u7528\u6237\u547d\u540d\u7a7a\u95f4\u4e2d\u5305\u542b\u8fdb\u7a0bpid\u7684\u8fdb\u7a0b\u88ab\u5141\u8bb8\u4f7f\u7528setgroups(2)\u7cfb\u7edf\u8c03\u7528\uff0c\u5219\/proc\/[pid]\/setgroups\u6587\u4ef6\u663e\u793a\u5b57\u7b26\u4e32&#8221;allow&#8221;;\u5982\u679c\u7528\u6237\u540d\u79f0\u7a7a\u95f4\u4e2d\u4e0d\u5141\u8bb8setgroups(2)\uff0c\u5219\u663e\u793a\u201cdeny\u201d\u3002\u6ce8\u610f\uff0c\u4e0d\u7ba1\/proc\/[pid]\/setgroups\u6587\u4ef6\u4e2d\u7684\u503c\u662f\u591a\u5c11(\u4e5f\u4e0d\u7ba1\u8fdb\u7a0b\u7684\u80fd\u529b\u662f\u591a\u5c11)\uff0c\u5982\u679c\/proc\/[pid]\/gid_map\u8fd8\u6ca1\u6709\u8bbe\u7f6e\uff0c\u8c03\u7528setgroups(2)\u4e5f\u662f\u4e0d\u5141\u8bb8\u7684\u3002<\/p>\n<\/li>\n<li>\n<p><strong>smaps<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5185\u5b58\u6620\u5c04\u4fe1\u606f\uff0c\u7c7b\u4f3c\u4e8epmap\u547d\u4ee4\uff0c\u9700\u8981\u914d\u7f6eCONFIG_PROC_PAGE_MONITOR\u3002<\/p>\n<\/li>\n<li>\n<p><strong>stack<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5185\u6838\u7a7a\u95f4\u7684\u51fd\u6570\u8c03\u7528\u5806\u6808\uff0c\u9700\u8981\u914d\u7f6eCONFIG_STACKTRACE\u3002<\/p>\n<\/li>\n<li>\n<p><strong>stat<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8fdb\u7a0b\u72b6\u6001\u4fe1\u606f\uff0c\u7528\u4e8eps\u547d\u4ee4\u3002<\/p>\n<\/li>\n<li>\n<p><strong>statm<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8fdb\u7a0b\u5185\u5b58\u4f7f\u7528\u4fe1\u606f\uff0c\u4ee5\u7a7a\u683c\u5206\u9694\u76847\u4e2a\u6570\u5b57\uff0c\u4ece\u5de6\u5230\u53f3\u5206\u522b\u8868\u793a\u7a0b\u5e8f\u603b\u5927\u5c0f\u3001\u5e38\u9a7b\u5185\u5b58\u5927\u5c0f\u3001\u5171\u4eab\u5185\u5b58\u9875\u5927\u5c0f\u3001text code\u3001library\u3001data + stack\u3001dirty pages\u3002<\/p>\n<\/li>\n<li>\n<p><strong>status<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u53ef\u8bfb\u6027\u597d\u7684\u8fdb\u7a0b\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>syscall<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7cfb\u7edf\u8c03\u7528\u76f8\u5173\u4fe1\u606f\uff0c\u9700\u8981\u914d\u7f6eCONFIG_HAVE_ARCH_TRACEHOOK\u3002<\/p>\n<\/li>\n<li>\n<p><strong>task<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u6bcf\u4e2a\u7ebf\u7a0b\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u76ee\u5f55\u540d\u4e3a\u7ebf\u7a0bID\u3002<\/p>\n<\/li>\n<li>\n<p><strong>timers<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cPOSIT\u5b9a\u65f6\u5668\u5217\u8868\uff0c\u5305\u62ec\u5b9a\u65f6\u5668ID\u3001\u4fe1\u53f7\u7b49\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>uid_map<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7528\u6237ID\u6620\u5c04\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>wchan<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8fdb\u7a0b\u4f11\u7720\u65f6\u5185\u6838\u4e2d\u76f8\u5e94\u4f4d\u7f6e\u7684\u7b26\u53f7\u8868\u793a\uff0c\u5982do_wait\u3002<\/p>\n<\/li>\n<\/ul>\n<p><strong>acpi\/wakeup<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8bbe\u5907\u5524\u9192\u64cd\u4f5c\u3002<\/p>\n<p><strong>buddyinfo<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7528\u4e8e\u8bca\u65ad\u5185\u5b58\u788e\u7247\u95ee\u9898\u3002<\/p>\n<p><strong>bus<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u5df2\u5b89\u88c5\u7684\u603b\u7ebf\u3002<\/p>\n<ul>\n<li>\n<p><strong>input\/devices<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8f93\u5165\u8bbe\u5907\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>input\/handlers<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u53e5\u67c4\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>pci\/00\/00.0-08.0<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cpci\u63d2\u53e3\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>pci\/devices<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cpci\u8bbe\u5907\u4fe1\u606f\u3002<\/p>\n<\/li>\n<\/ul>\n<p><strong>cgroups<\/strong><\/p>\n<p>cgroups\u4fe1\u606f\u6c47\u603b\uff0c\u5b57\u6bb5 subsys_name hierarchy num_cgroups enabled\u3002<\/p>\n<p><strong>cmdline<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7cfb\u7edf\u542f\u52a8\u65f6\u4f20\u9012\u7ed9Linux\u5185\u6838\u7684\u53c2\u6570\uff0c\u5982lilo\u3001grub\u7b49boot\u7ba1\u7406\u6a21\u5757\u3002<\/p>\n<p><strong>consoles<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8981\u67e5\u770b\u7cfb\u7edf\u63a7\u5236\u53f0\/dev\/console\u4e2d\u5f53\u524d\u4f7f\u7528\u7684\u8bbe\u5907\u884c\u5b57\u7b26\uff0c\u4f60\u53ef\u4ee5\u7b80\u5355\u5730\u67e5\u770b\/proc\/console\u6587\u4ef6.<\/p>\n<p><strong>cpuinfo<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cCPU\u548c\u7cfb\u7edf\u67b6\u6784\u4fe1\u606f\uff0clscpu\u547d\u4ee4\u4f7f\u7528\u8fd9\u4e2a\u6587\u4ef6\u3002<\/p>\n<p><strong>crypto<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5185\u6838\u52a0\u5bc6API\u63d0\u4f9b\u7684\u52a0\u5bc6\u5217\u8868\u3002<\/p>\n<p><strong>devices<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8bbe\u5907\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n<p><strong>diskstats<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u78c1\u76d8\u72b6\u6001\u3002<\/p>\n<p><strong>dma<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cdma\u5373Direct Memory Access\u3002<\/p>\n<p><strong>driver<\/strong><\/p>\n<ul>\n<li>\n<p><strong>nvram<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u63d0\u4f9b\u5bf9 PC \u548c Ataris \u4e0a\u5b9e\u65f6\u65f6\u949f\u4e2d\u7684\u975e\u6613\u5931\u6027\u5b58\u50a8\u5668\u7684\u8bbf\u95ee\u3002\u5728 PC \u4e0a\uff0c\u8fd9\u901a\u5e38\u79f0\u4e3a CMOS \u5185\u5b58\u5e76\u5b58\u50a8 BIOS \u914d\u7f6e\u9009\u9879\u3002<\/p>\n<\/li>\n<li>\n<p><strong>rtc<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7cfb\u7edf\u8fd0\u884c\u65f6\u914d\u7f6e\u3002<\/p>\n<\/li>\n<\/ul>\n<p><strong>execdomains<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u6267\u884c\u57df\u5217\u8868\u3002<\/p>\n<p><strong>fb<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cFrame Buffer\u4fe1\u606f\uff0c\u9700\u8981\u914d\u7f6eCONFIG_FB\u3002<\/p>\n<p><strong>filesystems<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5185\u6838\u652f\u6301\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\uff08man filesystems\uff09\u3002<\/p>\n<p><strong>fs<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u4fe1\u606f\u3002<\/p>\n<p><strong>interrupts<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u6bcf\u4e2aCPU\u6bcf\u4e2aIO\u7684\u4e2d\u65ad\u4fe1\u606f\u3002\u4f9d\u6b21\u663e\u793airq\u7f16\u53f7\uff0c\u6bcf\u4e2acpu\u5bf9\u8be5irq\u7684\u5904\u7406\u6b21\u6570\uff0c\u4e2d\u65ad\u63a7\u5236\u5668\u7684\u540d\u5b57\uff0cirq\u7684\u540d\u5b57\uff0c\u4ee5\u53ca\u9a71\u52a8\u7a0b\u5e8f\u6ce8\u518c\u8be5irq\u65f6\u4f7f\u7528\u7684\u540d\u5b57\u3002<\/p>\n<p><strong>iomem<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cIO\u5185\u5b58\u6620\u5c04\u4fe1\u606f\u3002<\/p>\n<p><strong>ioports<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cIO\u7aef\u53e3\u4fe1\u606f\u3002<\/p>\n<p><strong>irq<\/strong><\/p>\n<p>\u76ee\u5f55,\u4e0b\u9762\u4f1a\u4e3a\u6bcf\u4e2a\u6ce8\u518c\u7684irq\u521b\u5efa\u4e00\u4e2a\u4ee5irq\u7f16\u53f7\u4e3a\u540d\u5b57\u7684\u5b50\u76ee\u5f55\u3002<\/p>\n<p><strong>kallsyms<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7528\u4e8e\u52a8\u6001\u94fe\u63a5\u548c\u548c\u6a21\u5757\u7ed1\u5b9a\u7684\u7b26\u53f7\u5b9a\u4e49\u3002<\/p>\n<p><strong>kcore<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7cfb\u7edf\u4e2dELF\u683c\u5f0f\u7684\u7269\u7406\u5185\u5b58\u3002<\/p>\n<p><strong>keys<\/strong><\/p>\n<p>\u6587\u4ef6,\u516c\u5f00\u4e86\u8bfb\u53d6\u7ebf\u7a0b\u5177\u6709\u67e5\u770b\u6743\u9650\u7684\u952e\u5217\u8868\uff0c\u5e76\u63d0\u4f9b\u4e86\u6709\u5173\u6bcf\u4e2a\u952e\u7684\u5404\u79cd\u4fe1\u606f\u3002\u7ebf\u7a0b\u4e0d\u9700\u8981\u62e5\u6709\u5bc6\u94a5\uff0c\u8be5\u5bc6\u94a5\u5728\u6b64\u6587\u4ef6\u4e2d\u53ef\u89c1\u3002<\/p>\n<p><strong>key-users<\/strong><\/p>\n<p>\u6587\u4ef6,\u5217\u51fa\u4e86\u5728\u7cfb\u7edf\u4e0a\u81f3\u5c11\u5177\u6709\u4e00\u4e2a\u5bc6\u94a5\u7684\u6bcf\u4e2a\u7528\u6237ID\u7684\u5404\u79cd\u4fe1\u606f\u3002<\/p>\n<p><strong>kmsg<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5185\u6838\u65e5\u5fd7\u4fe1\u606f\uff0cdmsg\u547d\u4ee4\u4f7f\u7528\u8fd9\u4e2a\u6587\u4ef6\u3002<\/p>\n<p><strong>kpagecount<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u6bcf\u4e2a\u7269\u7406\u9875\u5e27\u6620\u5c04\u7684\u6b21\u6570\uff0c\u9700\u8981\u914d\u7f6eCONFIG_PROC_PAGE_MONITOR\u3002<\/p>\n<p><strong>kpageflags<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u6bcf\u4e2a\u7269\u7406\u9875\u5e27\u7684\u63a9\u7801\uff0c\u9700\u8981\u914d\u7f6eCONFIG_PROC_PAGE_MONITOR\u3002<\/p>\n<p><strong>loadavg<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5f53\u524d\u7cfb\u7edf\u8d1f\u8f7d\u3002<\/p>\n<p><strong>locks<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5f53\u524d\u6587\u4ef6\u9501\u7684\u72b6\u6001\u3002<\/p>\n<p><strong>mdstat<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u865a\u62df\u8bbe\u5907\u4fe1\u606f\uff08\u8f6fraid\u7b49\uff09\u3002<\/p>\n<p><strong>meminfo<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7cfb\u7edf\u5185\u5b58\u4f7f\u7528\u7edf\u8ba1\uff0cfree\u547d\u4ee4\u4f7f\u7528\u4e86\u8fd9\u4e2a\u6587\u4ef6\u3002<\/p>\n<p><strong>misc<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5176\u4ed6\u7684\u4e3b\u8981\u8bbe\u5907(\u8bbe\u5907\u53f7\u4e3a10)\u4e0a\u6ce8\u518c\u7684\u9a71\u52a8\u3002<\/p>\n<p><strong>modules<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7cfb\u7edf\u52a0\u8f7d\u7684\u6a21\u5757\u4fe1\u606f\uff0c\u76f8\u5173\u547d\u4ee4\u4e3alsmod\u3002<\/p>\n<p><strong>mounts -&gt; self\/mounts<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u94fe\u63a5\u5230\u4e86\/self\/mounts\u3002<\/p>\n<p><strong>mtrr<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cMemory Type Range Registers\u3002<\/p>\n<p><strong>net -&gt; self\/net<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u7f51\u7edc\u4f2a\u6587\u4ef6\u7cfb\u7edf\u76f8\u5173\u3002<\/p>\n<p><strong>pagetypeinfo<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5176\u4ed6\u9875\u9762\u5206\u914d\u5668\u4fe1\u606f\u3002<\/p>\n<p><strong>partitions<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5206\u533a\u4fe1\u606f\u3002<\/p>\n<p><strong>sched_debug<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8c03\u5ea6\u5668debug\u4fe1\u606f\u3002<\/p>\n<p><strong>schedstat<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8c03\u5ea6\u5668\u4fe1\u606f\u3002<\/p>\n<p><strong>scsi<\/strong><\/p>\n<p>\u76ee\u5f55\uff0cSCSI\u63a5\u53e3\u8bbe\u5907\u3002<\/p>\n<p><strong>self -&gt; 22699<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u94fe\u63a5\u5230\u4e86\u5f53\u524d\u8fdb\u7a0b\u6240\u5728\u7684\u76ee\u5f55\u3002<\/p>\n<p><strong>slabinfo<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5185\u6838\u7f13\u5b58\u4fe1\u606f\uff0c\u9700\u8981\u914d\u7f6eCONFIG_SLAB\u3002<\/p>\n<p><strong>softirqs<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7cfb\u7edf\u8f6f\u4e2d\u65ad\u4fe1\u606f\u3002<\/p>\n<p><strong>stat<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7cfb\u7edf\u548c\u5185\u6838\u7684\u7edf\u8ba1\u4fe1\u606f\u3002<\/p>\n<p><strong>swaps<\/strong><\/p>\n<p>\u6587\u4ef6\uff0cswap\u5206\u533a\u4f7f\u7528\u60c5\u51b5\u3002<\/p>\n<p><strong>sys<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u7cfb\u7edf\u53d8\u91cf\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n<p><strong>sysrq-trigger<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u53ef\u5199\uff0c\u89e6\u53d1\u7cfb\u7edf\u8c03\u7528\u3002<\/p>\n<p><strong>sysvipc<\/strong><\/p>\n<p>\u76ee\u5f55\uff0c\u5305\u62ecmsg\u3001sem\u3001shm\u4e09\u4e2a\u6587\u4ef6\uff0c\u4e3aSystem V IPC\u5bf9\u8c61\u3002<\/p>\n<p><strong>timer_list<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u8fd8\u5728\u8fd0\u884c\u7740\u7684\u5b9a\u65f6\u5668\u5217\u8868\u3002<\/p>\n<p><strong>timer_stats<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5b9a\u65f6\u5668\u72b6\u6001\u3002<\/p>\n<p><strong>tty<\/strong><\/p>\n<p>\u76ee\u5f55\uff0ctty\u8bbe\u5907\u76f8\u5173\u3002<\/p>\n<p><strong>uptime<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u7cfb\u7edf\u66f4\u65b0\u65f6\u95f4\u548c\u8fdb\u7a0b\u7a7a\u95f2\u65f6\u95f4\u3002<\/p>\n<p><strong>version<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5185\u6838\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<p><strong>vmallocinfo<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u865a\u62df\u5185\u5b58\u5206\u914d\u4fe1\u606f\u3002<\/p>\n<p><strong>vmstat<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f\uff0c\u4ee5\u952e\u503c\u5bf9\u5f62\u5f0f\u663e\u793a\u3002<\/p>\n<p><strong>zoneinfo<\/strong><\/p>\n<p>\u6587\u4ef6\uff0c\u5185\u5b58\u533a\u5757\u4fe1\u606f\uff0c\u7528\u4e8e\u5206\u6790\u865a\u62df\u5185\u5b58\u7684\u884c\u4e3a\u3002<\/p>\n<p>\u672c\u7bc7\u5173\u4e8e\u300a\u4ec0\u4e48\u662fLinux\u7cfb\u7edf\u4e2d\u7684proc\u76ee\u5f55\u300b\u7684\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\u5566\uff0c\u4f46\u662f\u5b66\u65e0\u6b62\u5883\uff0c\u60f3\u8981\u4e86\u89e3\u5b66\u4e60\u66f4\u591a\u5173\u4e8e\u6587\u7ae0\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662fLinux\u7cfb\u7edf\u4e2d\u7684proc\u76ee\u5f55 \u54c8\u55bd\uff01\u5927\u5bb6\u597d\uff0c\u5f88\u9ad8\u5174\u53c8\u89c1\u9762\u4e86\uff0c\u6211\u662f\u7c73\u4e91\u7684\u4e00\u540d\u4f5c\u8005\uff0c\u4eca\u5929\u7531\u6211\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u7bc7\u300a\u4ec0\u4e48\u662fLinux\u7cfb\u7edf\u4e2d\u7684proc\u76ee\u5f55\u300b\uff0c\u672c\u6587\u4e3b\u8981\u4f1a\u8bb2\u5230\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u5927\u5bb6\u4e00\u8d77\u5b66\u4e60\u8fdb\u6b65\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5173\u6ce8\u3001\u70b9\u8d5e\u3001\u6536\u85cf\u3001\u8f6c\u53d1! \u4e0b\u9762\u5c31\u4e00\u8d77\u6765\u770b\u770b\u5427\uff01 \u5728linux\u4e2d\uff0cproc\u662f\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff0c\u662f\u4e00\u4e2a\u63a7\u5236\u4e2d\u5fc3\uff0c\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u5176\u4e2d\u67d0\u4e9b\u6587\u4ef6\u6539\u53d8\u5185\u6838\u8fd0\u884c\u72b6\u6001\uff1b\u5b83\u4e5f\u662f\u5185\u6838\u63d0\u7a7a\u7ed9\u6211\u4eec\u7684\u67e5\u8be2\u4e2d\u5fc3\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u5b83\u67e5\u770b\u7cfb\u7edf\u786c\u4ef6\u53ca\u5f53\u524d\u8fd0\u884c\u7684\u8fdb\u7a0b\u4fe1\u606f\u3002proc\u7cfb\u7edf\u53ea\u5b58\u5728\u5185\u5b58\u5f53\u4e2d\uff0c\u4ee5\u6587\u4ef6\u7cfb\u7edf\u7684\u65b9\u5f0f\u4e3a\u8bbf\u95ee\u7cfb\u7edf\u5185\u6838\u6570\u636e\u7684\u64cd\u4f5c\u63d0\u4f9b\u63a5\u53e3\uff0c\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u5176\u4e2d\u7684\u67d0\u4e9b\u6587\u4ef6\u6765\u6539\u53d8\u5185\u6838\u8fd0\u884c\u72b6\u6001\u3002 proc\u88ab\u79f0\u4e3a\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u662f\u4e00\u4e2a\u63a7\u5236\u4e2d\u5fc3\uff0c\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u5176\u4e2d\u67d0\u4e9b\u6587\u4ef6\u6539\u53d8\u5185\u6838\u8fd0\u884c\u72b6\u6001\uff0c\u5b83\u4e5f\u662f\u5185\u6838\u63d0\u7a7a\u7ed9\u6211\u4eec\u7684\u67e5\u8be2\u4e2d\u5fc3\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u5b83\u67e5\u770b\u7cfb\u7edf\u786c\u4ef6\u53ca\u5f53\u524d\u8fd0\u884c\u7684\u8fdb\u7a0b\u4fe1\u606f\u3002 Linux\u4e2d\u8bb8\u591a\u5de5\u5177\u7684\u6570\u636e\u6765\u6e90\u6b63\u662fproc\u76ee\u5f55\u4e2d\u7684\u5185\u5bb9\uff0c\u6bd4\u5982lsmod\u7684\u547d\u4ee4\u662fcat \/proc\/modules\u7684\u522b\u540d\u3002 \u5728Linux\u4e2d\u5b58\u5728\u7740\u4e00\u7c7b\u7279\u6b8a\u7684\u4f2a\u6587\u4ef6\u7cfb\u7edf\uff0c\u7528\u4e8e\u4f7f\u7528\u4e0e\u6587\u4ef6\u63a5\u53e3\u7edf\u4e00\u7684\u64cd\u4f5c\u6765\u5b8c\u6210\u5404\u79cd\u529f\u80fd\uff0c\u4f8b\u5982ptyfs\u3001devfs\u3001sysfs\u548cprocfs\u3002\u800cprocfs\u5c31\u662f\u5176\u4e2d\u5e94\u7528\u6700\u5e7f\u6cdb\u7684\u4e00\u79cd\u4f2a\u6587\u4ef6\u7cfb\u7edf\u3002 \u5c31\u6587\u4ef6\u7cfb\u7edf\u8fd9\u4e00\u672f\u8bed\u800c\u8a00\uff0c\/ proc\u76ee\u5f55\u5e76\u4e0d\u662f\u771f\u6b63\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u662f\u4e00\u4e2a\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff0c\u6709\u65f6\u4e5f\u88ab\u79f0\u4e3a\u8fdb\u7a0b\u4fe1\u606f\u4f2a\u6587\u4ef6\u7cfb\u7edf\u3002 proc \u653e\u7f6e\u7684\u6570\u636e\u90fd\u662f\u5728\u5185\u5b58\u5f53\u4e2d\uff0c\u4f8b\u5982\u7cfb\u7edf\u5185\u6838\u3001\u8fdb\u7a0b\u3001\u5916\u90e8\u8bbe\u5907\u7684\u72b6\u6001\u53ca\u7f51\u7edc\u72b6\u6001\u7b49\u3002\u56e0\u4e3a\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u7684\u6570\u636e\u90fd\u662f\u5728\u5185\u5b58\u5f53\u4e2d\uff0c\u6240\u4ee5\u672c\u8eab\u4e0d\u5360\u4efb\u4f55\u786c\u76d8\u7a7a\u95f4\u3002 procfs\u662fLinux\u5185\u6838\u4fe1\u606f\u7684\u62bd\u8c61\u6587\u4ef6\u63a5\u53e3\uff0c\u5927\u91cf\u5185\u6838\u4e2d\u7684\u4fe1\u606f\u4ee5\u53ca\u53ef\u8c03\u53c2\u6570\u90fd\u88ab\u4f5c\u4e3a\u5e38\u89c4\u6587\u4ef6\u6620\u5c04\u5230\u4e00\u4e2a\u76ee\u5f55\u6811\u4e2d\uff0c\u8fd9\u6837\u6211\u4eec\u5c31\u53ef\u4ee5\u7b80\u5355\u76f4\u63a5\u7684\u901a\u8fc7echo\u6216cat\u8fd9\u6837\u7684\u6587\u4ef6\u64cd\u4f5c\u547d\u4ee4\u5bf9\u7cfb\u7edf\u4fe1\u606f\u8fdb\u884c\u67e5\u53d6\u548c\u8c03\u6574\u4e86\u3002\u540c\u65f6procfs\u4e5f\u63d0\u4f9b\u4e86\u4e00\u4e2a\u63a5\u53e3\uff0c\u4f7f\u5f97\u6211\u4eec\u81ea\u5df1\u7684\u5185\u6838\u6a21\u5757\u6216\u7528\u6237\u6001\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7procfs\u8fdb\u884c\u53c2\u6570\u7684\u4f20\u9012\u3002\u5728\u5f53\u4eca\u7684Linux\u7cfb\u7edf\u4e2d\uff0c\u5927\u91cf\u7684\u7cfb\u7edf\u5de5\u5177\u4e5f\u901a\u8fc7procfs\u83b7\u53d6\u5185\u6838\u53c2\u6570\uff0c\u4f8b\u5982ps\u3001lspci\u7b49\u7b49\uff0c\u6ca1\u6709procfs\u5b83\u4eec\u5c06\u53ef\u80fd\u4e0d\u80fd\u6b63\u5e38\u5de5\u4f5c\u3002 proc\u6587\u4ef6\u7cfb\u7edf\u662f\u4e00\u4e2a\u4f2a\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u53ea\u5b58\u5728\u5185\u5b58\u5f53\u4e2d\uff0c\u800c\u4e0d\u5360\u7528\u5916\u5b58\u7a7a\u95f4\u3002\u5b83\u4ee5\u6587\u4ef6\u7cfb\u7edf\u7684\u65b9\u5f0f\u4e3a\u8bbf\u95ee\u7cfb\u7edf\u5185\u6838\u6570\u636e\u7684\u64cd\u4f5c\u63d0\u4f9b\u63a5\u53e3\u3002\u7528\u6237\u548c\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7proc\u5f97\u5230\u7cfb\u7edf\u7684\u4fe1\u606f\uff0c\u5e76\u53ef\u4ee5\u6539\u53d8\u5185\u6838\u7684\u67d0\u4e9b\u53c2\u6570\u3002\u7531\u4e8e\u7cfb\u7edf\u7684\u4fe1\u606f\uff0c\u5982\u8fdb\u7a0b\uff0c\u662f\u52a8\u6001\u6539\u53d8\u7684\uff0c\u6240\u4ee5\u7528\u6237\u6216\u5e94\u7528\u7a0b\u5e8f\u8bfb\u53d6proc\u6587\u4ef6\u65f6\uff0cproc\u6587\u4ef6\u7cfb\u7edf\u662f\u52a8\u6001\u4ece\u7cfb\u7edf\u5185\u6838\u8bfb\u51fa\u6240\u9700\u4fe1\u606f\u5e76\u63d0\u4ea4\u7684\u3002 linux proc\u6587\u4ef6\u7cfb\u7edf\u8be6\u89e3 Linux\u7cfb\u7edf\u4e0a\u7684\/proc\u76ee\u5f55\u662f\u4e00\u79cd\u6587\u4ef6\u7cfb\u7edf\uff0c\u5373proc\u6587\u4ef6\u7cfb\u7edf\u3002\u4e0e\u5176\u5b83\u5e38\u89c1\u7684\u6587\u4ef6\u7cfb\u7edf\u4e0d\u540c\u7684\u662f\uff0c\/proc\u662f\u4e00\u79cd\u4f2a\u6587\u4ef6\u7cfb\u7edf\uff08\u4e5f\u5373\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u53ea\u5b58\u5728\u5185\u5b58\u5f53\u4e2d\uff0c\u800c\u4e0d\u5360\u7528\u5916\u5b58\u7a7a\u95f4\u3002\u5b83\u4ee5\u6587\u4ef6\u7cfb\u7edf\u7684\u65b9\u5f0f\u4e3a\u8bbf\u95ee\u7cfb\u7edf\u5185\u6838\u6570\u636e\u7684\u64cd\u4f5c\u63d0\u4f9b\u63a5\u53e3\uff09\uff0c\u5b58\u50a8\u7684\u662f\u5f53\u524d\u5185\u6838\u8fd0\u884c\u72b6\u6001\u7684\u4e00\u7cfb\u5217\u7279\u6b8a\u6587\u4ef6\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e9b\u6587\u4ef6\u67e5\u770b\u6709\u5173\u7cfb\u7edf\u786c\u4ef6\u53ca\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u8fdb\u7a0b\u7684\u4fe1\u606f\uff0c\u751a\u81f3\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u5176\u4e2d\u67d0\u4e9b\u6587\u4ef6\u6765\u6539\u53d8\u5185\u6838\u7684\u8fd0\u884c\u72b6\u6001\u3002 PID \u76ee\u5f55\uff0c\u7cfb\u7edf\u4e2d\u5f53\u524d\u8fd0\u884c\u7684\u6bcf\u4e00\u4e2a\u8fdb\u7a0b\u90fd\u6709\u5bf9\u5e94\u7684\u4e00\u4e2a\u76ee\u5f55\u5728\/proc\u4e0b\uff0c\u4ee5\u8fdb\u7a0b\u7684 PID\u53f7\u4e3a\u76ee\u5f55\u540d. attr \u76ee\u5f55\uff0c\u63d0\u4f9b\u4e86\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\uff0c\u53ef\u8bfb\u53ef\u5199\uff0c\u4ee5\u652f\u6301\u5b89\u5168\u6a21\u5757\u5982SELinux\u7b49\uff0c\u9700\u914d\u7f6eCONFIG_SECURITY\u3002 current \u6587\u4ef6\uff0c\u5f53\u524d\u7684\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\u3002 exec \u6587\u4ef6\uff0c\u6267\u884c\u547d\u4ee4execve\u65f6\u8bbe\u7f6e\u7684\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\u3002 fscreate \u6587\u4ef6\uff0c\u6267\u884c\u547d\u4ee4open\u3001mkdir\u3001symlink\u3001mknod\u65f6\u8bbe\u7f6e\u7684\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\u3002 keycreate \u6587\u4ef6\uff0c\u6267\u884c\u547d\u4ee4add_key\u65f6\u8bbe\u7f6e\u7684\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\u3002 prev \u6587\u4ef6\uff0c\u6700\u540e\u4e00\u6b21\u6267\u884c\u547d\u4ee4execve\u65f6\u7684\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\uff0c\u5373\u524d\u4e00\u4e2a\u201c\/proc\/[pid]\/attr\/current\u201d\u3002 sockcreate \u6587\u4ef6\uff0c\u521b\u5efasocket\u65f6\u8bbe\u7f6e\u7684\u5b89\u5168\u76f8\u5173\u7684\u5c5e\u6027\u3002 autogroup \u6587\u4ef6\uff0c\u53ef\u4ee5\u7528\u6765\u4fee\u6539\u5206\u914d\u7ed9\u81ea\u52a8\u5206\u7ec4\u7684CPU\u5e26\u5bbd\u3002\u8fd9\u662f\u901a\u8fc7\u5728\u201cnice\u201d\u8303\u56f4\u5185\u5199\u5165\u4e00\u4e2a\u6570\u5b57\u6765\u8bbe\u7f6e\u81ea\u52a8\u5206\u7ec4\u7684nice\u503c\u6765\u5b8c\u6210\u7684\u3002\u53d6\u503c\u8303\u56f4\u4e3a+19(\u4f4e\u4f18\u5148\u7ea7)~ -20(\u9ad8\u4f18\u5148\u7ea7)\u3002(\u5199\u5165\u503c\u8d85\u51fa\u8fd9\u4e2a\u8303\u56f4\u4f1a\u5bfc\u81f4write(2)\u5931\u8d25\uff0c\u9519\u8bef\u4e3aEINVAL\u3002) auxv \u6587\u4ef6\uff0cELF\u89e3\u91ca\u5668\u4fe1\u606f\uff0c\u683c\u5f0f\u4e3a\u4e00\u4e2aunsigned long\u7c7b\u578b\u7684ID\u52a0\u4e00\u4e2aunsigned long\u7c7b\u578b\u7684\u503c\uff0c\u6700\u540e\u4e3a\u4e24\u4e2a0\uff08man getauxval\uff09\u3002 cgroup \u6587\u4ef6\uff0c\u8fdb\u7a0b\u6240\u5c5e\u7684\u63a7\u5236\u7ec4\uff0c\u683c\u5f0f\u4e3a\u5192\u53f7\u5206\u9694\u7684\u4e09\u4e2a\u5b57\u6bb5\uff0c\u5206\u522b\u662f\u7ed3\u6784ID\u3001\u5b50\u7cfb\u7edf\u3001\u63a7\u5236\u7ec4\uff0c\u9700\u914d\u7f6eCONFIG_CGROUPS\u3002 clear_refs \u6587\u4ef6\uff0c\u53ea\u5199\uff0c\u53ea\u7528\u4e8e\u8fdb\u7a0b\u7684\u62e5\u6709\u8005\uff0c\u6e05\u9664\u7528\u4e8e\u4f30\u7b97\u5185\u5b58\u4f7f\u7528\u91cf\u7684PG_Referenced\u548cACCESSED\/YOUNG\uff0c\u67091\u30012\u30013\u30014\u56db\u79cd\u7b56\u7565\uff0c1\u8868\u793a\u6e05\u9664\u76f8\u5173\u7684\u6240\u6709\u9875\uff0c2\u8868\u793a\u6e05\u9664\u76f8\u5173\u7684\u533f\u540d\u9875\uff0c3\u8868\u793a\u6e05\u9664\u76f8\u5173\u7684\u6620\u5c04\u6587\u4ef6\u7684\u9875\uff0c4\u8868\u793a\u6e05\u9664\u76f8\u5173\u7684soft-dirty\u7684\u9875\uff0c\u9700\u914d\u7f6eCONFIG_PROC_PAGE_MONITOR\u3002 cmdline \u6587\u4ef6\uff0c\u53ea\u8bfb\uff0c\u4fdd\u5b58\u542f\u52a8\u8fdb\u7a0b\u7684\u5b8c\u6574\u7684\u547d\u4ee4\u884c\u5b57\u7b26\u4e32\uff0c\u5982\u679c\u662f\u50f5\u5c38\u8fdb\u7a0b\uff0c\u8fd9\u4e2a\u6587\u4ef6\u4e3a\u7a7a\u3002 comm \u6587\u4ef6\uff0c\u8fdb\u7a0b\u7684\u547d\u4ee4\u540d\uff0c\u4e0d\u540c\u7684\u7ebf\u7a0b\uff08man clone prctl pthread_setname_np\uff09\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u7ebf\u7a0b\u540d\uff0c\u4f4d\u7f6e\u5728\u201ctask\/[tid]\/comm\u201d\uff0c\u540d\u5b57\u957f\u5ea6\u8d85\u8fc7TASK_COMM_LEN\u65f6\u4f1a\u88ab\u622a\u65ad\u3002 coredump_filter \u6587\u4ef6\uff0ccoredump\u8fc7\u6ee4\u5668\uff0c\u598200000037\uff08man [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-51779","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/51779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=51779"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/51779\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=51779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=51779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=51779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}