{"id":247,"date":"2022-05-30T21:25:41","date_gmt":"2022-05-30T13:25:41","guid":{"rendered":"https:\/\/frogvps.com\/?p=247"},"modified":"2022-05-31T10:28:40","modified_gmt":"2022-05-31T02:28:40","slug":"linux%e7%9a%84%e8%bf%9b%e7%a8%8b%e5%92%8c%e5%86%85%e5%ad%98%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/frogvps.com\/?p=247","title":{"rendered":"linux\u7684\u8fdb\u7a0b\u548c\u5185\u5b58\u7ba1\u7406"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4ec0\u4e48\u662f\u8fdb\u7a0b<\/h2>\n\n\n\n<p>\u78c1\u76d8\u4e0a\u6709\u5f88\u591a\u6587\u4ef6\uff0c\u4f46\u5b83\u53ea\u6709\u5728\u8fd0\u884c\u7684\u65f6\u5019\u624d\u4f1a\u6210\u4e3a\u8fdb\u7a0b\u3002\u8fdb\u7a0b\u662f\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\u7684\u4e00\u4e2a\u526f\u672c\uff0c\u662f\u88ab\u8f7d\u5165\u5185\u5b58\u7684\u4e00\u4e2a\u6307\u4ee4\u96c6\u5408\uff0c\u662f\u8d44\u6e90\u5206\u914d\u7684\u5355\u4f4d\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u8fdb\u7a0bID\uff08Process ID\uff0cPID\uff09\u53f7\u7801\u88ab\u7528\u6765\u6807\u8bb0\u5404\u4e2a\u8fdb\u7a0b<\/li><li>UID\u3001GID\u3001\u548cSELinux\u8bed\u5883\u51b3\u5b9a\u5bf9\u6587\u4ef6\u7cfb\u7edf\u7684\u5b58\u53d6\u548c\u8bbf\u95ee\u6743\u9650<\/li><li>\u901a\u5e38\u4ece\u6267\u884c\u8fdb\u7a0b\u7684\u7528\u6237\u6765\u7ee7\u627f<\/li><li>\u5b58\u5728\u751f\u547d\u5468\u671f<\/li><\/ul>\n\n\n\n<p>\u8fdb\u7a0b\u7684\u521b\u5efa<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>init\uff1a\u7b2c\u4e00\u4e2a\u8fdb\u7a0b\uff0c\u4ece CentOS7 \u4ee5\u540e\u4e3asystemd<\/li><li>\u8fdb\u7a0b\uff1a\u90fd\u7531\u5176\u7236\u8fdb\u7a0b\u521b\u5efa\uff0c\u7528fork()\u51fd\u6570\u521b\u5efa\u5b50\u8fdb\u7a0b\u3002\u673a\u5236\u53eb\u505a COW\uff1aCopy On Write\uff08\u5199\u65f6\u590d\u5236\uff09<\/li><\/ul>\n\n\n\n<p>\u4ec0\u4e48\u662f\u5199\u65f6\u590d\u5236\uff1f<\/p>\n\n\n\n<p>\u7236\u8fdb\u7a0bP1\u90fd\u6709\u81ea\u5df1\u5360\u7528\u7684\u4e00\u5757\u5185\u5b58\u7a7a\u95f4\uff0c\u5b83\u6709\u4e00\u4e2a\u5b50\u8fdb\u7a0bP2\u3002\u5982\u679cP2\u53ea\u662f\u88abP1\u521b\u5efa\u51fa\u6765\uff0c\u91cc\u9762\u7684\u6570\u636e\u6ca1\u6709\u53d1\u751f\u66f4\u65b0\uff0c\u90a3\u4e48P1\u548cP2\u5176\u5b9e\u6307\u5411\u7684\u662f\u540c\u4e00\u5757\u5185\u5b58\u7a7a\u95f4\u3002\u76f4\u5230P2\u53d1\u751f\u4e86\u6570\u636e\u7684\u66f4\u65b0\uff0c\u5b83\u624d\u4f1a\u590d\u5236\u4e00\u4efd\u65b0\u7684\u5185\u5b58\u7a7a\u95f4\uff0c\u7528\u6765\u5b58\u653e\u81ea\u5df1\u7684\u6570\u636e\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8fdb\u7a0b\uff0c\u7ebf\u7a0b\u548c\u534f\u7a0b<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"582\" src=\"https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a1.jpg\" alt=\"\" class=\"wp-image-248\" srcset=\"https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a1.jpg 728w, https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a1-300x240.jpg 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><figcaption>\u8fdb\u7a0b\u548c\u7ebf\u7a0b\u7684\u5173\u7cfb<\/figcaption><\/figure>\n\n\n\n<p>\u8fdb\u7a0b\u662f\u6574\u4e2a\u7cfb\u7edf\u4e2d\u7528\u6765\u5206\u914d\u8d44\u6e90\u7684\u4e00\u4e2a\u5355\u4f4d\uff0c\u8fdb\u7a0b\u91cc\u9762\u5b58\u653e\u4e86\u5f88\u591a\u7684\u8d44\u6e90\uff0c\u91cc\u9762\u6709\u6570\u636e\u3001\u7a0b\u5e8f\u4ee3\u7801\u3001\u6253\u5f00\u7684\u6587\u4ef6\u3001\u5730\u5740\u7a7a\u95f4\u3002\u7531\u4e8e\u8fdb\u7a0b\u9700\u8981\u5904\u7406\u8fd9\u4e9b\u6570\u636e\uff0c\u5b83\u9700\u8981\u627e\u4e00\u4e2a\u5e2e\u4ed6\u5e72\u6d3b\u7684\u4eba\uff0c\u8fd9\u4e2a\u4eba\u5c31\u662f\u7ebf\u7a0b\u4e86\uff0c\u4e00\u4e2a\u8fdb\u7a0b\u91cc\u9762\u81f3\u5c11\u4f1a\u6709\u4e00\u4e2a\u7ebf\u7a0b\u3002\u6240\u4ee5\u5982\u679c\u628a\u8fdb\u7a0b\u770b\u6210\u4e00\u4e2a\u516c\u53f8\uff0c\u7ebf\u7a0b\u5c31\u662f\u516c\u53f8\u91cc\u9762\u7684\u5458\u5de5\u3002\u8fdb\u7a0b\u5305\u542b\u7ebf\u7a0b\uff0c\u7ebf\u7a0b\u96b6\u5c5e\u4e8e\u8fdb\u7a0b\uff0c\u591a\u4e2a\u7ebf\u7a0b\u5171\u4eab\u67d0\u4e9b\u8d44\u6e90\uff0c\u8fd9\u5c31\u662f\u8fdb\u7a0b\u548c\u7ebf\u7a0b\u4e4b\u95f4\u7684\u903b\u8f91\u5173\u7cfb\u3002<\/p>\n\n\n\n<p>\u534f\u7a0bCoroutines\uff0c\u662f\u4e00\u79cd\u57fa\u4e8e\u7ebf\u7a0b\u4e4b\u4e0a\uff0c\u4f46\u53c8\u6bd4\u7ebf\u7a0b\u66f4\u52a0\u8f7b\u91cf\u7ea7\u7684\u5b58\u5728\uff0c\u8fd9\u79cd\u7531\u7a0b\u5e8f\u5458\u81ea\u5df1\u5199\u7a0b\u5e8f\u6765\u7ba1\u7406\u7684\u8f7b\u91cf\u7ea7\u7ebf\u7a0b\u53eb\u505a\u300e\u7528\u6237\u7a7a\u95f4\u7ebf\u7a0b\u300f\uff0c\u5177\u6709\u5bf9\u5185\u6838\u6765\u8bf4\u4e0d\u53ef\u89c1\u7684\u7279\u6027\u3002\u7b80\u5355\u6765\u8bf4\u53ef\u4ee5\u7406\u89e3\u4e3a\u5b83\u662f\u7a0b\u5e8f\u5458\u5199\u7684\u4e00\u6bb5\u4ee3\u7801\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u5217\u51fa\u5f53\u524d\u7cfb\u7edf\u4e2d\u7684\u6240\u6709\u8fdb\u7a0b\u548c\u7ebf\u7a0b<br>pstree -p<br>#\u67e5\u770b\u8fdb\u7a0b\u4e2d\u7684\u7ebf\u7a0b\u6570<br>grep -i threads \/proc\/\u8fdb\u7a0b\u7684PID\u7f16\u53f7\/status<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u8fdb\u7a0b\u7ed3\u6784<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"557\" src=\"https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a2.jpg\" alt=\"\" class=\"wp-image-249\" srcset=\"https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a2.jpg 682w, https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a2-300x245.jpg 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/figure>\n\n\n\n<p>linux\u4e2d\u8fd0\u884c\u7740\u591a\u4e2a\u8fdb\u7a0b\uff0c\u5185\u6838\u628a\u8fdb\u7a0b\u5b58\u653e\u5728\u53eb\u505a\u4efb\u52a1\u961f\u5217\uff08task list) \u7684\u53cc\u5411\u5faa\u73af\u94fe\u8868\u4e2d\u3002\u94fe\u8868\u4e2d\u7684\u6bcf\u4e00\u9879\u90fd\u662f\u7c7b\u578b\u4e3atask_struct\uff0c\u79f0\u4e3a\u8fdb\u7a0b\u63a7\u5236\u5757\uff08Processing Control Block)\uff0cPCB\u4e2d\u5305\u542b\u4e00\u4e2a\u5177\u4f53\u8fdb\u7a0b\u7684\u6240\u6709\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u8fdb\u7a0b\u63a7\u5236\u5757PCB\u5305\u542b\u4fe1\u606f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u8fdb\u7a0bid\u3001\u7528\u6237id\u548c\u7ec4id<\/li><li>\u7a0b\u5e8f\u8ba1\u6570\u5668<\/li><li>\u8fdb\u7a0b\u7684\u72b6\u6001(\u6709\u5c31\u7eea\u3001\u8fd0\u884c\u3001\u963b\u585e)<\/li><li>\u8fdb\u7a0b\u5207\u6362\u65f6\u9700\u8981\u4fdd\u5b58\u548c\u6062\u590d\u7684CPU\u5bc4\u5b58\u5668\u7684\u503c<\/li><li>\u63cf\u8ff0\u865a\u62df\u5730\u5740\u7a7a\u95f4\u7684\u4fe1\u606f<\/li><li>\u63cf\u8ff0\u63a7\u5236\u7ec8\u7aef\u7684\u4fe1\u606f<\/li><li>\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55<\/li><li>\u6587\u4ef6\u63cf\u8ff0\u7b26\u8868\uff0c\u5305\u542b\u5f88\u591a\u6307\u5411file\u7ed3\u6784\u4f53\u7684\u6307\u9488<\/li><li>\u8fdb\u7a0b\u53ef\u4ee5\u4f7f\u7528\u7684\u8d44\u6e90\u4e0a\u9650(ulimit \u2013a\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b)<\/li><li>\u8f93\u5165\u8f93\u51fa\u72b6\u6001\uff1a\u914d\u7f6e\u8fdb\u7a0b\u4f7f\u7528I\/O\u8bbe\u5907<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u8fdb\u7a0b\u76f8\u5173\u6982\u5ff5<\/h2>\n\n\n\n<p><strong>Page Frame: \u9875\u6846\uff0c\u7528\u5b58\u50a8\u9875\u9762\u6570\u636e\uff0c\u5b58\u50a8Page 4k\u3002<\/strong><\/p>\n\n\n\n<p>\u6211\u4eec\u5728\u4f7f\u7528\u8fdb\u7a0b\u7684\u65f6\u5019\uff0c\u5fc5\u987b\u8981\u7ed9\u4ed6\u5206\u914d\u5185\u5b58\u7a7a\u95f4\uff0c\u8fd9\u91cc\u5c31\u4f1a\u7528\u5230\u4e00\u4e2a\u5355\u4f4d\uff0c\u9875\uff08Page\uff09\uff0c\u5b83\u662f\u5206\u914d\u5185\u5b58\u7684\u6700\u5c0f\u5355\u4f4d\uff0c\u5927\u5c0f\u4e00\u822c\u4e3a4K\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u7528linux\u547d\u4ee4\u67e5\u770b\u9875\u7684\u5927\u5c0f<br>getconf -a |grep -i size<\/code><\/pre>\n\n\n\n<p><strong>\u7269\u7406\u5730\u5740\u7a7a\u95f4\u548c\u865a\u62df\u5730\u5740\u7a7a\u95f4<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"431\" src=\"https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a3.jpg\" alt=\"\" class=\"wp-image-250\" srcset=\"https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a3.jpg 682w, https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a3-300x190.jpg 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/figure>\n\n\n\n<p>MMU\uff1aMemory Management Unit \u8d1f\u8d23\u865a\u62df\u5730\u5740\u8f6c\u6362\u4e3a\u7269\u7406\u5730\u5740\u3002<\/p>\n\n\n\n<p>\u7a0b\u5e8f\u5728\u8bbf\u95ee\u4e00\u4e2a\u5185\u5b58\u5730\u5740\u6307\u5411\u7684\u5185\u5b58\u65f6, CPU\u4e0d\u662f\u76f4\u63a5\u628a\u8fd9\u4e2a\u5730\u5740\u9001\u5230\u5185\u5b58\u603b\u7ebf\u4e0a,\u800c\u662f\u88ab\u9001\u5230MMU\uff08Memory Management Unit),\u7136\u540e\u628a\u8fd9\u4e2a\u5185\u5b58\u5730\u5740\u6620\u5c04\u5230\u5b9e\u9645\u7684\u7269\u7406\u5185\u5b58\u5730\u5740\u4e0a\uff0c\u7136\u540e\u901a\u8fc7\u603b\u7ebf\u518d\u53bb\u8bbf\u95ee\u5185\u5b58\uff0c\u7a0b\u5e8f\u64cd\u4f5c\u7684\u5730\u5740\u79f0\u4e3a\u865a\u62df\u5185\u5b58\u5730\u5740\u3002<\/p>\n\n\n\n<p>TLB\uff1aTranslation Lookaside Buffer \u7ffb\u8bd1\u540e\u5907\u7f13\u51b2\u533a\uff0c\u7528\u4e8e\u4fdd\u5b58\u865a\u62df\u5730\u5740\u548c\u7269\u7406\u5730\u5740\u6620\u5c04\u5173\u7cfb\u7684\u7f13\u5b58\u3002<\/p>\n\n\n\n<p>\u8bf4\u4eba\u8bdd\u5c31\u662f\uff0c\u5047\u8bbe\u6211\u670d\u52a1\u5668\u7684\u5185\u5b58\u67094\u4e2aG\uff0c\u6211\u60f3\u8fd0\u884c\u78c1\u76d8\u4e0a\u7684\u67d0\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u5c31\u4f1a\u5206\u914d\u4e00\u5757\u5185\u5b58\u7a7a\u95f4\u51fa\u6765\u3002\u5982\u679c\u8fd9\u65f6\u5019\u7a0b\u5e8f\u60f3\u53bb\u5185\u5b58\u4e2d\u5904\u7406\u6570\u636e\u4e86\uff0c\u5b83\u5c31\u5fc5\u987b\u77e5\u9053\u8fd9\u4e2a\u6570\u636e\u5728\u4ec0\u4e48\u4f4d\u7f6e\u3002\u4f46\u4e8b\u5b9e\u4e0a\u6bcf\u4e2a\u7a0b\u5e8f\u6bcf\u4e00\u6b21\u8fd0\u884c\uff0c\u64cd\u4f5c\u7cfb\u7edf\u7ed9\u5b83\u5206\u914d\u7684\u5185\u5b58\u7684\u7269\u7406\u7a7a\u95f4\u5730\u5740\u90fd\u662f\u4e0d\u540c\u7684\uff0c\u8fd9\u5c31\u4ea7\u751f\u4e86\u4e00\u4e2a\u95ee\u9898\uff0c\u7a0b\u5e8f\u4e0d\u77e5\u9053\u786e\u5b9a\u5730\u5740\u600e\u4e48\u53bb\u5185\u5b58\u4e2d\u8bbf\u95ee\u6570\u636e\u5462\uff1f\u5176\u5b9e\u5f53\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u53bb\u8bbf\u95ee\u6570\u636e\u7684\u65f6\u5019\uff0c\u867d\u7136\u7269\u7406\u5730\u5740\u4e0d\u56fa\u5b9a\uff0c\u4f46\u662f \u76f8\u5bf9\u4f4d\u7f6e\u662f\u56fa\u5b9a\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\u7ad9\u5728\u7a0b\u5e8f\u7684\u89d2\u5ea6\u4e0a\u770b\uff0c\u5b83\u6240\u770b\u5230\u7684\u4e0d\u662f\u4e00\u4e2a\u7edd\u5bf9\u7684\u7a7a\u95f4\uff0c\u800c\u662f\u4e00\u4e2a\u865a\u62df\u7684\u5730\u5740\u7a7a\u95f4\uff0c\u5b83\u662f\u4e00\u4e2a\u76f8\u5bf9\u7684\u5730\u5740\u3002\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u901a\u8fc7MMU\uff08\u786c\u4ef6\u4e2d\u7684\u4e00\u4e2a\u8bbe\u5907\uff0c\u7531CPU\u6765\u5b9e\u73b0\uff09\u628a\u865a\u62df\u5730\u5740\u8f6c\u6362\u6210\u7269\u7406\u5730\u5740\u3002\u7531\u4e8e\u6bcf\u6b21\u8f6c\u6362\u90fd\u8981\u505a\u8ba1\u7b97\uff0c\u6240\u4ee5\u5f15\u5165\u4e86TLB\u7f13\u5b58\u6765\u63d0\u9ad8\u6027\u80fd\u3002<\/p>\n\n\n\n<p><strong>\u7528\u6237\u548c\u5185\u6838\u7a7a\u95f4<\/strong><\/p>\n\n\n\n<p>\u5bf9\u4e8e\u6bcf\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u6765\u8bb2\uff0c\u5b83\u5e76\u4e0d\u77e5\u9053\u81ea\u5df1\u662f\u548c\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u5171\u5b58\u7684\u3002\u5728\u6bcf\u4e2a\u5e94\u7528\u7a0b\u5e8f\u7684\u773c\u91cc\uff0c\u5b83\u770b\u5230\u7684\u53ea\u662f\u865a\u62df\u5185\u5b58\uff0c\u4ee5\u4e3a\u81ea\u5df1\u62e5\u6709\u4e86\u6574\u4e2a\u5185\u5b58\u7a7a\u95f4\u3002<\/p>\n\n\n\n<p><strong>C\u4ee3\u7801\u548c\u5185\u5b58\u5e03\u5c40\u4e4b\u95f4\u7684\u5bf9\u5e94\u5173\u7cfb<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"497\" src=\"https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a4-1024x497.jpg\" alt=\"\" class=\"wp-image-251\" srcset=\"https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a4-1024x497.jpg 1024w, https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a4-300x146.jpg 300w, https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a4-768x373.jpg 768w, https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a4.jpg 1277w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u6bcf\u4e2a\u8fdb\u7a0b\u90fd\u5305\u62ec5\u79cd\u4e0d\u540c\u7684\u6570\u636e\u6bb5<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u4ee3\u7801\u6bb5\uff1a\u7528\u6765\u5b58\u653e\u53ef\u6267\u884c\u6587\u4ef6\u7684\u64cd\u4f5c\u6307\u4ee4\uff0c\u4e5f\u5c31\u662f\u8bf4\u662f\u5b83\u662f\u53ef\u6267\u884c\u7a0b\u5e8f\u5728\u5185\u5b58\u4e2d\u7684\u955c\u50cf\u3002\u4ee3\u7801\u6bb5\u9700 \u8981\u9632\u6b62\u5728\u8fd0\u884c\u65f6\u88ab\u975e\u6cd5\u4fee\u6539\uff0c\u6240\u4ee5\u53ea\u51c6\u8bb8\u8bfb\u53d6\u64cd\u4f5c\uff0c\u800c\u4e0d\u5141\u8bb8\u5199\u5165\uff08\u4fee\u6539\uff09\u64cd\u4f5c\u2014\u2014\u5b83\u662f\u4e0d\u53ef\u5199\u7684\u3002<\/li><li>\u6570\u636e\u6bb5\uff1a\u7528\u6765\u5b58\u653e\u53ef\u6267\u884c\u6587\u4ef6\u4e2d\u5df2\u521d\u59cb\u5316\u5168\u5c40\u53d8\u91cf\uff0c\u6362\u53e5\u8bdd\u8bf4\u5c31\u662f\u5b58\u653e\u7a0b\u5e8f\u9759\u6001\u5206\u914d\u7684\u53d8\u91cf\u548c\u5168\u5c40 \u53d8\u91cf\u3002<\/li><li>BSS\u6bb5\uff1aBlock Started by Symbol\u201d\u7684\u7f29\u5199,\u610f\u4e3a\u201c\u4ee5\u7b26\u53f7\u5f00\u59cb\u7684\u5757\uff0cBSS\u6bb5\u5305\u542b\u4e86\u7a0b\u5e8f\u4e2d\u672a\u521d\u59cb\u5316\u7684 \u5168\u5c40\u53d8\u91cf\uff0c\u5728\u5185\u5b58\u4e2d bss\u6bb5\u5168\u90e8\u7f6e\u96f6\u3002<\/li><li>\u5806\uff08heap\uff09\uff1a\u5b58\u653e\u6570\u7ec4\u548c\u5bf9\u8c61\uff0c\u5806\u662f\u7528\u4e8e\u5b58\u653e\u8fdb\u7a0b\u8fd0\u884c\u4e2d\u88ab\u52a8\u6001\u5206\u914d\u7684\u5185\u5b58\u6bb5\uff0c\u5b83\u7684\u5927\u5c0f\u5e76\u4e0d\u56fa \u5b9a\uff0c\u53ef\u52a8\u6001\u6269\u5f20\u6216\u7f29\u51cf\u3002\u5f53\u8fdb\u7a0b\u8c03\u7528malloc\u7b49\u51fd\u6570\u5206\u914d\u5185\u5b58\u65f6\uff0c\u65b0\u5206\u914d\u7684\u5185\u5b58\u5c31\u88ab\u52a8\u6001\u6dfb\u52a0\u5230\u5806 \u4e0a\uff08\u5806\u88ab\u6269\u5f20\uff09\uff1b\u5f53\u5229\u7528free\u7b49\u51fd\u6570\u91ca\u653e\u5185\u5b58\u65f6\uff0c\u88ab\u91ca\u653e\u7684\u5185\u5b58\u4ece\u5806\u4e2d\u88ab\u5254\u9664\uff08\u5806\u88ab\u7f29\u51cf\uff09\u3002<\/li><li>\u6808\uff08stack\uff09\uff1a\u6808\u662f\u7528\u6237\u5b58\u653e\u7a0b\u5e8f\u4e34\u65f6\u521b\u5efa\u7684\u5c40\u90e8\u53d8\u91cf\uff0c\u4e5f\u5c31\u662f\u8bf4\u6211\u4eec\u51fd\u6570\u62ec\u5f27\u201c{}\u201d\u4e2d\u5b9a\u4e49\u7684\u53d8\u91cf \uff08\u4f46\u4e0d\u5305\u62ecstatic\u58f0\u660e\u7684\u53d8\u91cf\uff0cstatic\u610f\u5473\u7740\u5728\u6570\u636e\u6bb5\u4e2d\u5b58\u653e\u53d8\u91cf\uff09\u3002\u9664\u6b64\u4ee5\u5916\uff0c\u5728\u51fd\u6570\u88ab\u8c03\u7528\u65f6\uff0c \u5176\u53c2\u6570\u4e5f\u4f1a\u88ab\u538b\u5165\u53d1\u8d77\u8c03\u7528\u7684\u8fdb\u7a0b\u6808\u4e2d\uff0c\u5e76\u4e14\u5f85\u5230\u8c03\u7528\u7ed3\u675f\u540e\uff0c\u51fd\u6570\u7684\u8fd4\u56de\u503c\u4e5f\u4f1a\u88ab\u5b58\u653e\u56de\u6808\u4e2d\u3002 \u7531\u4e8e\u6808\u7684\u540e\u8fdb\u5148\u51fa\u7279\u70b9\uff0c\u6240\u4ee5\u6808\u7279\u522b\u65b9\u4fbf\u7528\u6765\u4fdd\u5b58\/\u6062\u590d\u8c03\u7528\u73b0\u573a\u3002\u53ef\u4ee5\u628a\u5806\u6808\u770b\u6210\u4e00\u4e2a\u5bc4\u5b58\u3001\u4ea4\u6362\u4e34\u65f6\u6570\u636e\u7684\u5185\u5b58\u533a\u3002<\/li><\/ul>\n\n\n\n<p><strong>\u8fdb\u7a0b\u4f7f\u7528\u5185\u5b58\u95ee\u9898<\/strong><\/p>\n\n\n\n<p>\u5185\u5b58\u6cc4\u6f0f\uff1aMemory Leak<\/p>\n\n\n\n<p>\u6307\u7a0b\u5e8f\u4e2d\u7528malloc\u6216new\u7533\u8bf7\u4e86\u4e00\u5757\u5185\u5b58\uff0c\u4f46\u662f\u6ca1\u6709\u7528free\u6216delete\u5c06\u5185\u5b58\u91ca\u653e\uff0c\u5bfc\u81f4\u8fd9\u5757\u5185\u5b58\u4e00\u76f4\u5904 \u4e8e\u5360\u7528\u72b6\u6001\u3002<\/p>\n\n\n\n<p>\u5185\u5b58\u6ea2\u51fa\uff1aMemory Overflow<\/p>\n\n\n\n<p>\u6307\u7a0b\u5e8f\u7533\u8bf7\u4e8610M\u7684\u7a7a\u95f4\uff0c\u4f46\u662f\u5728\u8fd9\u4e2a\u7a7a\u95f4\u5199\u516510M\u4ee5\u4e0a\u5b57\u8282\u7684\u6570\u636e\uff0c\u5c31\u662f\u6ea2\u51fa\u3002<\/p>\n\n\n\n<p>\u5185\u5b58\u4e0d\u8db3\uff1aOOM<\/p>\n\n\n\n<p>OOM \u5373 Out Of Memory\uff0c\u201c\u5185\u5b58\u7528\u5b8c\u4e86\u201d\u60c5\u51b5\u5728java\u7a0b\u5e8f\u4e2d\u6bd4\u8f83\u5e38\u89c1\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8fdb\u7a0b\u72b6\u6001<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"639\" height=\"360\" src=\"https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a6.jpg\" alt=\"\" class=\"wp-image-252\" srcset=\"https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a6.jpg 639w, https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a6-300x169.jpg 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/figure>\n\n\n\n<p><strong>\u57fa\u672c\u72b6\u6001<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u521b\u5efa\u72b6\u6001\uff1a\u8fdb\u7a0b\u5728\u521b\u5efa\u65f6\u9700\u8981\u7533\u8bf7\u4e00\u4e2a\u7a7a\u767dPCB(process control block\u8fdb\u7a0b\u63a7\u5236\u5757)\uff0c\u5411\u5176\u4e2d\u586b\u5199\u63a7\u5236\u548c\u7ba1\u7406\u8fdb\u7a0b\u7684\u4fe1\u606f\uff0c\u5b8c\u6210\u8d44\u6e90\u5206\u914d\u3002\u5982\u679c\u521b\u5efa\u5de5\u4f5c\u65e0\u6cd5\u5b8c\u6210\uff0c\u6bd4\u5982\u8d44\u6e90\u65e0\u6cd5\u6ee1\u8db3\uff0c\u5c31\u65e0\u6cd5\u88ab\u8c03\u5ea6\u8fd0\u884c\uff0c\u628a\u6b64\u65f6\u8fdb\u7a0b\u6240\u5904\u72b6\u6001\u79f0\u4e3a\u521b\u5efa\u72b6\u6001\u3002<\/li><li>\u5c31\u7eea\u72b6\u6001\uff1a\u8fdb\u7a0b\u5df2\u51c6\u5907\u597d\uff0c\u5df2\u5206\u914d\u5230\u6240\u9700\u8d44\u6e90\uff0c\u53ea\u8981\u5206\u914d\u5230CPU\u5c31\u80fd\u591f\u7acb\u5373\u8fd0\u884c\u3002<\/li><li>\u6267\u884c\u72b6\u6001\uff1a\u8fdb\u7a0b\u5904\u4e8e\u5c31\u7eea\u72b6\u6001\u88ab\u8c03\u5ea6\u540e\uff0c\u8fdb\u7a0b\u8fdb\u5165\u6267\u884c\u72b6\u6001\u3002<\/li><li>\u963b\u585e\u72b6\u6001\uff1a\u6b63\u5728\u6267\u884c\u7684\u8fdb\u7a0b\u7531\u4e8e\u67d0\u4e9b\u4e8b\u4ef6\uff08I\/O\u8bf7\u6c42\uff0c\u7533\u8bf7\u7f13\u5b58\u533a\u5931\u8d25\uff09\u800c\u6682\u65f6\u65e0\u6cd5\u8fd0\u884c\uff0c\u8fdb\u7a0b\u53d7\u5230\u963b\u585e\u3002\u5728\u6ee1\u8db3\u8bf7\u6c42\u65f6\u8fdb\u5165\u5c31\u7eea\u72b6\u6001\u7b49\u5f85\u7cfb\u7edf\u8c03\u7528\u3002<\/li><li>\u7ec8\u6b62\u72b6\u6001\uff1a\u8fdb\u7a0b\u7ed3\u675f\uff0c\u6216\u51fa\u73b0\u9519\u8bef\uff0c\u6216\u88ab\u7cfb\u7edf\u7ec8\u6b62\uff0c\u8fdb\u5165\u7ec8\u6b62\u72b6\u6001\u3002\u65e0\u6cd5\u518d\u6267\u884c<\/li><\/ul>\n\n\n\n<p><strong>\u8fdb\u7a0b\u66f4\u591a\u7684\u72b6\u6001\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u8fd0\u884c\u6001\uff1arunning<\/li><li>\u5c31\u7eea\u6001\uff1aready<\/li><li>\u7761\u7720\u6001\uff1a\u5206\u4e3a\u4e24\u79cd\uff0c\u53ef\u4e2d\u65ad\uff1ainterruptable\uff0c\u4e0d\u53ef\u4e2d\u65ad\uff1auninterruptable<\/li><li>\u505c\u6b62\u6001\uff1astopped\uff0c\u6682\u505c\u4e8e\u5185\u5b58\uff0c\u4f46\u4e0d\u4f1a\u88ab\u8c03\u5ea6\uff0c\u9664\u975e\u624b\u52a8\u542f\u52a8<\/li><li>\u50f5\u6b7b\u6001\uff1azombie\uff0c\u50f5\u5c38\u6001\uff0c\u7ed3\u675f\u8fdb\u7a0b\uff0c\u7236\u8fdb\u7a0b\u7ed3\u675f\u524d\uff0c\u5b50\u8fdb\u7a0b\u4e0d\u5173\u95ed\uff0c\u6740\u6b7b\u7236\u8fdb\u7a0b\u53ef\u4ee5\u5173\u95ed\u50f5\u6b7b \u6001 \u7684\u5b50\u8fdb\u7a0b<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u89c2\u5bdf\u8fdb\u7a0b<br>ps aux<br>#\u7edf\u8ba1\u8fdb\u7a0b\u6570\u91cf<br>top<br>#\u505c\u6b62\u8fdb\u7a0b<br>kill -19 PID<br>#\u6062\u590d\u505c\u6b62\u7684\u8fdb\u7a0b<br>kill -18 PID<br>#\u6740\u6b7b\u8fdb\u7a0b<br>kill -9 PID<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">LRU \u7b97\u6cd5<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"552\" src=\"https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a7.jpg\" alt=\"\" class=\"wp-image-253\" srcset=\"https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a7.jpg 470w, https:\/\/frogvps.com\/wp-content\/uploads\/2022\/05\/20220530a7-255x300.jpg 255w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/figure>\n\n\n\n<p>LRU\uff1aLeast Recently Used \u8fd1\u671f\u6700\u5c11\u4f7f\u7528\u7b97\u6cd5\uff08\u559c\u65b0\u538c\u65e7\uff09\uff0c\u91ca\u653e\u5185\u5b58\u3002<\/p>\n\n\n\n<p>\u5185\u5b58\u7684\u7a7a\u95f4\u7ec8\u7a76\u6709\u9650\uff0c\u4e0d\u53ef\u80fd\u628a\u6240\u6709\u7684\u6570\u636e\u90fd\u653e\u5230\u5185\u5b58\u4e2d\u5904\u7406\u3002\u6240\u4ee5\u4e00\u822c\u53ea\u5b58\u50a8\u7ecf\u5e38\u7528\u7684\u6570\u636e\uff0c\u65e7\u7684\u6570\u636e\u4f1a\u88ab\u6dd8\u6c70\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">IPC \u8fdb\u7a0b\u95f4\u901a\u4fe1<\/h2>\n\n\n\n<p>IPC: Inter Process Communication<\/p>\n\n\n\n<p><strong>\u540c\u4e00\u4e3b\u673a\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>pipe \u7ba1\u9053,\u5355\u5411\u4f20\u8f93<\/li><li>socket \u5957\u63a5\u5b57\u6587\u4ef6,\u53cc\u5de5\u901a\u4fe1<\/li><li>Memory-maped file \u6587\u4ef6\u6620\u5c04,\u5c06\u6587\u4ef6\u4e2d\u7684\u4e00\u6bb5\u6570\u636e\u6620\u5c04\u5230\u7269\u7406\u5185\u5b58\uff0c\u591a\u4e2a\u8fdb\u7a0b\u5171\u4eab\u8fd9\u7247\u5185\u5b58<\/li><li>shm shared memory \u5171\u4eab\u5185\u5b58<\/li><li>signal \u4fe1\u53f7<\/li><li>Lock \u5bf9\u8d44\u6e90\u4e0a\u9501\uff0c\u5982\u679c\u8d44\u6e90\u5df2\u88ab\u67d0\u8fdb\u7a0b\u9501\u4f4f\uff0c\u5219\u5176\u5b83\u8fdb\u7a0b\u60f3\u4fee\u6539\u751a\u81f3\u8bfb\u53d6\u8fd9\u4e9b\u8d44\u6e90\uff0c\u90fd\u5c06\u88ab\u963b\u585e\uff0c\u76f4\u5230\u9501\u88ab\u6253\u5f00<\/li><li>semaphore \u4fe1\u53f7\u91cf\uff0c\u4e00\u79cd\u8ba1\u6570\u5668<\/li><\/ul>\n\n\n\n<p><strong>\u4e0d\u540c\u4e3b\u673a\uff1asocket=IP\u548c\u7aef\u53e3\u53f7<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>RPC remote procedure call<\/li><li>MQ \u6d88\u606f\u961f\u5217\uff0c\u751f\u4ea7\u8005\u548c\u6d88\u8d39\u8005\uff0c\u5982\uff1aKafka\uff0cRabbitMQ\uff0cActiveMQ<\/li><\/ul>\n\n\n\n<p>\u8303\u4f8b\uff1a\u5229\u7528\u7ba1\u9053\u6587\u4ef6\u5b9e\u73b0IPC<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u5728XSHELL\u65b0\u5efa2\u4e2a\u7ec8\u7aef<br>#\u5728\u5176\u4e2d\u4e00\u4e2a\u7ec8\u7aef\u521b\u5efa\u7ba1\u9053\u6587\u4ef6<br>mkfifo test.fifo<br>#\u5f80\u91cc\u9762\u5199\u4e00\u53e5\u8bdd<br>echo hello &gt; test.fifo<br>#\u5728\u53e6\u4e00\u4e2a\u7ec8\u7aef\u67e5\u770b\u6587\u4ef6\u53ef\u4ee5\u8bfb\u53d6\u5230\u521a\u624d\u7684\u8bdd<br>root@DMIT-iJboSKPbP4:~# cat test.fifo<br>hello<\/code><\/pre>\n\n\n\n<p>\u8303\u4f8b\uff1a\u67e5\u627esocket\u7c7b\u578b\u7684\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find \/ -type s -ls<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u8fdb\u7a0b\u4f18\u5148\u7ea7<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u4f18\u5148\u7ea7\u8303\u56f4<\/th><th>\u63cf\u8ff0<\/th><\/tr><\/thead><tbody><tr><td>0-99<\/td><td>\u5b9e\u65f6\u8fdb\u7a0b\uff0c\u5b9e\u65f6\u4f18\u5148\u7ea7\uff0c\u8d8a\u5927\u4f18\u5148\u7ea7\u8d8a\u9ad8<\/td><\/tr><tr><td>100-139<\/td><td>\u975e\u5b9e\u65f6\u8fdb\u7a0b\uff0c\u7cfb\u7edf\u4f18\u5148\u7ea7\u3002\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8\u3002<\/td><\/tr><tr><td>-20-19<\/td><td>NICE\u503c\uff0c\u5bf9\u5e94\u7cfb\u7edf\u4f18\u5148\u7ea7\u7684100-139\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u67e5\u770b\u8fdb\u7a0b\u7f16\u53f7\uff0c\u547d\u4ee4\uff0c\u4f18\u5148\u7ea7\nps axo pid,cmd,ni,pri,rtprio\n#\u628a\u67d0\u4e2a\u8fdb\u7a0bPID\u7684\u4f18\u5148\u7ea7\u6539\u62105\nrenice -n 5 PID<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u8fdb\u7a0b\u5206\u7c7b<\/h2>\n\n\n\n<p><strong>\u64cd\u4f5c\u7cfb\u7edf\u5206\u7c7b\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u534f\u4f5c\u5f0f\u591a\u4efb\u52a1\uff1a\u65e9\u671f windows \u7cfb\u7edf\u4f7f\u7528\uff0c\u5373\u4e00\u4e2a\u4efb\u52a1\u5f97\u5230\u4e86 CPU \u65f6\u95f4\uff0c\u9664\u975e\u5b83\u81ea\u5df1\u653e\u5f03\u4f7f\u7528<br>CPU \uff0c\u5426\u5219\u5c06\u5b8c\u5168\u9738\u5360 CPU \uff0c\u6240\u4ee5\u4efb\u52a1\u4e4b\u95f4\u9700\u8981\u534f\u4f5c\u2014\u2014\u4f7f\u7528\u4e00\u6bb5\u65f6\u95f4\u7684 CPU \uff0c\u4e3b\u52a8\u653e\u5f03\u4f7f\u7528\u3002<\/li><li>\u62a2\u5360\u5f0f\u591a\u4efb\u52a1\uff1a\uff1aLinux\u5185\u6838\uff0cCPU\u7684\u603b\u63a7\u5236\u6743\u5728\u64cd\u4f5c\u7cfb\u7edf\u624b\u4e2d\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u8f6e\u6d41\u8be2\u95ee\u6bcf\u4e00\u4e2a\u4efb\u52a1\u662f<br>\u5426\u9700\u8981\u4f7f\u7528 CPU \uff0c\u9700\u8981\u4f7f\u7528\u7684\u8bdd\u5c31\u8ba9\u5b83\u7528\uff0c\u4e0d\u8fc7\u5728\u4e00\u5b9a\u65f6\u95f4\u540e\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u5265\u593a\u5f53\u524d\u4efb\u52a1\u7684 CPU<br>\u4f7f\u7528\u6743\uff0c\u628a\u5b83\u6392\u5728\u8be2\u95ee\u961f\u5217\u7684\u6700\u540e\uff0c\u518d\u53bb\u8be2\u95ee\u4e0b\u4e00\u4e2a\u4efb\u52a1\u3002<\/li><\/ul>\n\n\n\n<p><strong>\u8fdb\u7a0b\u7c7b\u578b\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5b88\u62a4\u8fdb\u7a0b\uff1adaemon,\u5728\u7cfb\u7edf\u5f15\u5bfc\u8fc7\u7a0b\u4e2d\u542f\u52a8\u7684\u8fdb\u7a0b\uff0c\u548c\u7ec8\u7aef\u65e0\u5173\u8fdb\u7a0b\u3002<\/li><li>\u524d\u53f0\u8fdb\u7a0b\uff1a\u8ddf\u7ec8\u7aef\u76f8\u5173\uff0c\u901a\u8fc7\u7ec8\u7aef\u542f\u52a8\u7684\u8fdb\u7a0b\u3002 <em>\u6ce8\u610f\uff1a\u4e24\u8005\u53ef\u76f8\u4e92\u8f6c\u5316<\/em><\/li><\/ul>\n\n\n\n<p><strong>\u6309\u8fdb\u7a0b\u8d44\u6e90\u4f7f\u7528\u7684\u5206\u7c7b\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>CPU-Bound\uff1aCPU \u5bc6\u96c6\u578b\uff0c\u975e\u4ea4\u4e92<\/li><li>IO-Bound\uff1aIO \u5bc6\u96c6\u578b\uff0c\u4ea4\u4e92<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662f\u8fdb\u7a0b \u78c1\u76d8\u4e0a\u6709\u5f88\u591a\u6587\u4ef6\uff0c\u4f46\u5b83\u53ea\u6709\u5728\u8fd0\u884c\u7684\u65f6\u5019\u624d\u4f1a\u6210\u4e3a\u8fdb\u7a0b\u3002\u8fdb\u7a0b\u662f\u8fd0\u884c\u4e2d\u7684\u7a0b\u5e8f\u7684\u4e00\u4e2a\u526f\u672c\uff0c\u662f\u88ab\u8f7d\u5165\u5185\u5b58\u7684\u4e00\u4e2a\u6307\u4ee4\u96c6\u5408\uff0c\u662f\u8d44\u6e90\u5206\u914d\u7684\u5355\u4f4d\u3002 \u8fdb\u7a0bID\uff08Process ID\uff0cPID\uff09\u53f7\u7801\u88ab\u7528\u6765\u6807\u8bb0\u5404\u4e2a\u8fdb\u7a0b UID\u3001GID\u3001\u548cSELinux\u8bed&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[41],"topic":[],"class_list":["post-247","post","type-post","status-publish","format-standard","hentry","category-linux","tag-41"],"_links":{"self":[{"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/posts\/247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=247"}],"version-history":[{"count":6,"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/posts\/247\/revisions"}],"predecessor-version":[{"id":261,"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/posts\/247\/revisions\/261"}],"wp:attachment":[{"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=247"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}