{"id":84952,"date":"2020-05-15T13:21:16","date_gmt":"2020-05-15T05:21:16","guid":{"rendered":"http:\/\/4563.org\/?p=84952"},"modified":"2020-05-15T13:21:16","modified_gmt":"2020-05-15T05:21:16","slug":"%e4%b8%8d%e6%87%82%e5%b0%b1%e8%a6%81%e9%97%ae%ef%bc%8c%e5%a6%82%e4%bd%95%e7%94%a8-c%e8%b7%a8%e5%b9%b3%e5%8f%b0%e8%8e%b7%e5%8f%96-cpu%e3%80%81%e5%86%85%e5%ad%98%e4%bd%bf%e7%94%a8%e7%8e%87%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=84952","title":{"rendered":"\u4e0d\u61c2\u5c31\u8981\u95ee\uff0c\u5982\u4f55\u7528 C++\u8de8\u5e73\u53f0\u83b7\u53d6 CPU\u3001\u5185\u5b58\u4f7f\u7528\u7387\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4e0d\u61c2\u5c31\u8981\u95ee\uff0c\u5982\u4f55\u7528 C++\u8de8\u5e73\u53f0\u83b7\u53d6 CPU\u3001\u5185\u5b58\u4f7f\u7528\u7387\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liuguangxuan <\/span>  <span><i><\/i> 11<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u60f3\u7528 C++\u83b7\u53d6 CPU \u3001\u5185\u5b58\u7684\u4f7f\u7528\u7387\uff0c\u8981\u6c42\u8de8\u5e73\u53f0\uff08 Windows \u3001Linux \uff09\u3002\u67e5\u5230\u7684\u89e3\u51b3\u529e\u6cd5\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>sigar \u5e93\uff0c\u4f46\u662f\u4f5c\u8005\u597d\u50cf\u5df2\u7ecf\u653e\u5f03\u7ef4\u62a4\u4e86\uff0c\u6ca1\u6709\u6587\u6863\u53ef\u4ee5\u53c2\u8003\uff0c\u5b98\u7f51\u6253\u4e0d\u5f00\u3002<\/li>\n<li>ACE \u7f51\u7edc\u5e93\u63d0\u4f9b\u4e86\u63a5\u53e3\uff0c\u4f46\u662f\u53ea\u662f\u83b7\u53d6 CPU \u3001\u5185\u5b58\u4f7f\u7528\u7387\uff0c\u663e\u5f97\u6709\u70b9\u513f\u592a\u7b28\u91cd\u4e86\u3002<\/li>\n<li>\u81ea\u5df1\u5b9e\u73b0\uff0c\u6839\u636e\u5b8f\u6765\u5224\u65ad\u5e73\u53f0\u3002\u7136\u540e\u8c03\u7528\u7cfb\u7edf\u63a5\u53e3\u3002<\/li>\n<\/ol>\n<p>\u8bf7\u6559\u5404\u4f4d\u5927\u4f6c\uff0c\u6709\u6ca1\u6709\u66f4\u597d\u7684\u89e3\u51b3\u529e\u6cd5\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>26<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1417745\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ysc3839 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9996\u5148\u76ee\u524d\u6765\u770b C++ \u6807\u51c6\u5e93\u4e2d\u662f\u6ca1\u6709\u76f8\u5173\u529f\u80fd\u7684\uff0c\u6240\u4ee5\u6700\u7ec8\u53ea\u80fd\u8c03\u7528\u7cfb\u7edf API \u6765\u83b7\u53d6\u3002<br \/>\u63a5\u4e0b\u6765\u5c31\u662f\u770b\u6709\u6ca1\u6709\u73b0\u6210\u7684\u7b2c\u4e09\u65b9\u5e93\u4e86\uff0c\u6211\u6ca1\u8c03\u67e5\u8fc7\u4e0d\u597d\u8bf4\uff0c\u5982\u679c\u6ca1\u6709\u7684\u8bdd\uff0c\u5c31\u53ea\u80fd\u81ea\u5df1\u5b9e\u73b0\u4e86\u3002<br \/>\u6839\u636e\u4f60\u7a0b\u5e8f\u8fd0\u884c\u7684\u5e73\u53f0\u6765\u5199\uff0c\u5e94\u8be5\u4e0d\u4f1a\u592a\u96be\u5427\uff1f\u53ea\u9700\u8981\u652f\u6301 Windows \u548c Linux \u7684\u8bdd\u4e0d\u592a\u96be\u3002<br \/>Windows \u7684\u8bdd\u5185\u5b58\u4f7f\u7528\u7387\u53ef\u4ee5\u4f7f\u7528 GlobalMemoryStatusEx https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/api\/sysinfoapi\/nf-sysinfoapi-globalmemorystatusex \u4e0d\u8fc7\u6ca1\u6709\u4efb\u52a1\u7ba1\u7406\u5668\u90a3\u91cc\u90a3\u4e48\u8be6\u7ec6\u3002CPU \u4f7f\u7528\u7387 (\u51c6\u786e\u8bf4\u662f\u4e00\u6bb5\u65f6\u95f4\u5185\u975e\u7a7a\u95f2\u65f6\u95f4\u767e\u5206\u6bd4) \u53ef\u4ee5\u7528 GetSystemTimes \u8bfb\u4e86\u81ea\u5df1\u7b97\u51fa\u6765\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417746\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             linux \u4e0b\u7edf\u8ba1\u5185\u5b58\u4f7f\u7528\u7387\u597d\u50cf\u610f\u4e49\u4e0d\u5927\uff0c\u56e0\u4e3a\u57fa\u672c\u90fd\u662f\u88ab\u5360\u6ee1\u7684\u72b6\u6001\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417747\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wtof <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e9b\u529f\u80fd\u672c\u6765\u5c31\u662f\u5e73\u53f0\u76f8\u5173\u7684\uff0c\u5176\u4ed6\u5e93\u4e5f\u65e0\u975e\u5c31\u662f\u7b2c\u4e09\u79cd\u65b9\u6cd5\u5c01\u88c5\u4e86\u4e00\u5c42\u5b9e\u73b0<br \/>\u4e2a\u4eba\u503e\u5411\u4e8e\u7b2c\u4e09\u79cd\u7136\u540e\u81ea\u5df1\u5c01\u4e00\u5c42\u63a5\u53e3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417748\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Nitroethane <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @3dwelcome \u4e0d\u4e86\u89e3\u5c31\u4e0d\u8981\u4e71\u8bf4\uff0cLinux \u4e0b\u7a7a\u95f2\u5185\u5b58\u90fd\u88ab\u7528\u4f5c file cache\uff0c\u5728\u5185\u5b58\u4e0d\u8db3\u89e6\u53d1 watermark \u7684\u60c5\u51b5\u4e0b\uff0c\u88ab\u7528\u4f5c file cache \u7684\u5927\u90e8\u5206\u662f\u80fd\u591f\u88ab\u5185\u6838\u91cd\u65b0\u6536\u56de\u7684<\/p>\n<p>Linux \u4e0b\u8981\u83b7\u53d6\u5404\u79cd\u6570\u636e\u7684\u8bdd\u9700\u8981\u81ea\u5df1\u53bb\u89e3\u6790 \/proc \u4e0b\u7684\u5404\u79cd\u6587\u4ef6\uff0c\u7136\u540e\u518d\u901a\u8fc7\u9605\u8bfb \/proc \u7684 manual \u4e86\u89e3\u6587\u4ef6\u4e2d\u6bcf\u4e2a\u5b57\u6bb5\u7684\u542b\u4e49\uff0c\u6bd4\u5982\u5185\u5b58\u4fe1\u606f\u7684\u8bdd \/proc\/meminfo \u3002<br \/>Windows \u7684\u8bdd\u4e0d\u6e05\u695a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417749\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Nitroethane \u6211\u600e\u4e48\u5c31\u4e71\u8bf4\u4e86\uff1f\u771f\u55b5\u7684\u5947\u602a\u4e86\uff0c\u90fd\u77e5\u9053 linux \u7a7a\u95f2\u5185\u5b58\u4f1a\u88ab\u7528\u6765\u52a0\u901f\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u670d\u52a1\u5668\u957f\u671f\u8fd0\u884c\uff0c\u6240\u4ee5\u5f88\u96be\u7edf\u8ba1\u771f\u6b63\u7a7a\u4f59\u5185\u5b58\u6709\u591a\u5c11\u3002<br \/>\u8fd9\u70b9\u548c windows \u4e0d\u4e00\u6837\uff0c\u6211\u5c31\u63d0\u4e00\u4e0b\uff0c\u4f60\u8fd8\u771f\u662f\u4f1a\u55b7\u4eba\u554a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417750\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Nitroethane <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @3dwelcome #5 \uff1f\u4e00\u8138\u61f5\u903c\uff0c\u8fd9\u5e74\u5934 \u201c\u4e0d\u4e86\u89e3\u5c31\u4e0d\u8981\u4e71\u8bf4\u201d \u4e5f\u7b97\u662f\u55b7\u4eba\u4e86\u4e48\uff1f\u65e2\u7136\u4f60\u89c9\u5f97\u6211\u662f\u5728\u55b7\u4f60\uff0c\u90a3\u6211\u5411\u4f60\u9053\u6b49\u597d\u5427\u3002\u8bdd\u8bf4\u56de\u6765\uff0c \u5efa\u8bae\u4e86\u89e3\u4e00\u4e0b \/proc\/meminfo \u91cc\u9762\u6240\u6709\u5b57\u6bb5\u7684\u542b\u4e49\u4e48\u548c Linux \u7684\u5185\u5b58\u56de\u6536\u673a\u5236                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417751\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : systemcall <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @3dwelcome \u5e76\u4e0d\u662f\u6ca1\u610f\u4e49\u5427\u3002\u6709\u65f6\u5019\u5185\u5b58\u6cc4\u6f0f\u4e86\uff0c\u4e0d\u597d\u4fee\u5c31\u8d81\u6ca1\u7206\u5185\u5b58\u628a\u90a3\u4e2a\u8fdb\u7a0b\u6740\u4e86\u91cd\u5f00\uff0c\u8fd9\u6837\u8d77\u7801\u8fd8\u53ef\u4ee5\u7528\uff0c\u8981\u6c42\u4e0d\u592a\u9ad8\u7684\u5730\u65b9\u5c31\u53ef\u4ee5\u8fd9\u4e48\u641e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417752\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wslzy007 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             windows \u4e0b\u4f7f\u7528 winapi\uff0ccpu \u7ebf\u7a0b\u6570\u4f7f\u7528 GetSystemInfo \uff1b linux \u7cfb\u4f7f\u7528 \/proc\/xxx \u5927\u6cd5\uff0c\u81ea\u5df1\u8ba1\u7b97\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417753\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhuangzhuang1988 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             osquery \u8fd9\u4e2a\u9879\u76ee\u91cc<br \/>\u627e\u627e.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417754\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Nitroethane \u8bf4\u8005\u65e0\u5fc3\uff0c\u542c\u8005\u6709\u610f\u3002\u4e0a\u6709\u4eba\u652f\u6301\u4f60\uff0c\u6211\u4e5f\u5411\u4f60\u9053\u6b49\u3002\u53ef\u80fd\u6211\u786e\u5b9e\u8868\u8ff0\u592a\u8fc7\u6577\u884d\uff0c\u4e5f\u6ca1\u63cf\u8ff0\u6e05\u695a\u3002<br \/>\u540c\u4e00\u4e2a\u7269\u4f53\uff0c\u5728\u4e0d\u540c\u89d2\u5ea6\u53bb\u770b\uff0c\u662f\u4e0d\u4e00\u6837\u7684\u3002\u592a\u7b80\u5355\u7684\u56de\u590d\u5199\u51fa\u6765\u662f\u4e00\u4e2a\u610f\u601d\uff0c\u88ab\u4eba\u770b\u53c8\u662f\u53e6\u5916\u4e00\u4e2a\u610f\u601d\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417755\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Nitroethane <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @3dwelcome #10 \u62b1\u6b49\uff0c\u5176\u5b9e\u6211\u8bf4\u8bdd\u7684\u65b9\u5f0f\u4e5f\u6709\u70b9\u95ee\u9898\uff0c\u4e0d\u8fc7\u5c31\u4e0d\u7528\u7ea0\u7ed3\u8fd9\u79cd\u5c0f\u4e8b\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417756\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : songjiaxin2008 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u53c2\u8003 prometheus node_exporter<br \/>https:\/\/github.com\/prometheus\/node_exporter                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417757\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : evilic <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u89c9\u5f97 @3dwelcome \u8bf4\u7684\u6ca1\u5565\u4e0d\u5bf9\u7684\u2026\u2026\u56e0\u4e3a\u5728\u6211\u770b\u6765\uff0c\u90a3\u6837\u7684\u5185\u5b58\u4f7f\u7528\u7387\u786e\u5b9e\u610f\u4e49\u4e0d\u5927\u3002<br \/>\u81f3\u5c11\u6211\u8bfb\u53d6\u865a\u62df\u673a\u5185\u5b58\u7684\u4fe1\u606f\u7684\u65f6\u5019\uff0c\u5c31\u662f\u8fd9\u6837\u7684\u60c5\u51b5\u3002<\/p>\n<p>\u8bfb \/proc\/ \u76ee\u5f55\uff1f\u6211\u5728\u865a\u62df\u673a\u5916\u4e0d\u4f1a\u53bb\u8bfb\u8fd9\u4e9b\u6587\u4ef6\u7684\u3002<br \/>\u6211\u53ea\u662f\u628a\u4e24\u4e2a\u60c5\u51b5\u7edf\u4e00\u6210\u4e00\u4e2a\u95ee\u9898\u770b\u5f85\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417758\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tigerstudent <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7ed9 10  11 \u4e24\u4e2a\u4e56\u5b9d\u5b9d\u90fd\u53d1\u4e86\u4e2a\u611f\u8c22\u94dc\u5e01\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417759\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Chenamy2017 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e5f\u4e0d\u96be\uff0c\u81ea\u5df1\u5c01\u88c5\u5427\uff0c\u7528\u522b\u4eba\u5e93\u7684\u4ee3\u4ef7\u5927\u4e8e\u81ea\u5df1\u5b9e\u73b0\u7684\u4ee3\u4ef7\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417760\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : UnknownR <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u4e0d\u590d\u6742\uff0c\u81ea\u5df1\u5c01\u88c5\u4e0b\u5373\u53ef\uff0cwindows \u4e0b CPU \u7684\u8bdd\u53ef\u4ee5\u5b9e\u4f8b\u4e00\u4e2a performancecounter\uff0c \u5185\u5b58\u53ef\u4ee5 query wmi\uff0c\u6709\u5185\u7f6e\u5c5e\u6027\uff0cWin32_OperatingSystem \u4e0b\u7684 FreePhysicalMemory \u548c Win32_ComputerSystem \u4e0b\u7684 TotalPhysicalMemory                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417761\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xdeng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             #ifdef WIN32<\/p>\n<p>#else Mac<\/p>\n<p>#endif                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417762\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : misaka19000 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @3dwelcome #9 \u8fd9\u5c31\u662f\u6587\u5b57\u7684\u5751\u7239\u4e4b\u5904\uff0c\u540c\u6837\u4e00\u6bb5\u6587\u5b57\u6709\u65f6\u5019\u5728\u4e0d\u540c\u7684\u4eba\u770b\u6765\u4f1a\u6709\u4e0d\u540c\u7684\u611f\u53d7\uff0c\u751a\u81f3\u4e8e\u5305\u542b\u4e86\u6b63\u53cd\u4e24\u79cd\u622a\u7136\u4e0d\u540c\u7684\u60c5\u7eea\uff0c\u8fd9\u5927\u6982\u4e5f\u662f\u4e92\u8054\u7f51\u4e0a\u9762\u201c\u6760\u7cbe\u201d\u8d8a\u6765\u8d8a\u591a\u7684\u539f\u56e0\u3002\u56e0\u4e3a\u5728\u8fdb\u884c\u6587\u5b57\u4ea4\u6d41\u7684\u65f6\u5019\u603b\u4f1a\u4f34\u968f\u7740\u5927\u91cf\u7684\u8bef\u89e3\uff0c\u4f46\u662f\u7531\u4e8e\u6587\u5b57\u8fd9\u79cd\u4ea4\u6d41\u6e20\u9053\u5176\u81ea\u5b58\u5728\u7684\u53ca\u65f6\u6027\u4ee5\u53ca\u51c6\u786e\u6027\u65b9\u9762\u7684\u95ee\u9898\uff0c\u6709\u65f6\u5019\u53cd\u800c\u4f1a\u4f7f\u5f97\u8fd9\u79cd\u8bef\u89e3\u8fdb\u4e00\u6b65\u7684\u52a0\u6df1\u3002\u540c\u65f6\u901a\u8fc7\u6587\u5b57\u6765\u8fdb\u884c\u89e3\u91ca\u6216\u8005\u8bf4\u6f84\u6e05\u672c\u8eab\u4e5f\u662f\u4e00\u4ef6\u975e\u5e38\u9ebb\u70e6\u7684\u4e8b\u60c5\uff0c\u56e0\u4e3a\u5728\u5927\u90e8\u5206\u65f6\u5019\u6211\u4eec\u90fd\u4e0d\u592a\u613f\u610f\u82b1\u8d39\u7cbe\u529b\u53bb\u548c\u4e00\u4e2a\u964c\u751f\u4eba\u53bb\u5bf9\u67d0\u4ef6\u4e8b\u60c5\u8fdb\u884c\u89e3\u91ca\uff08\u9664\u975e\u662f\u5728\u67d0\u79cd\u53ca\u5176\u5c01\u95ed\u7684\u5c0f\u5708\u5b50\u4e2d\uff09\uff0c\u6240\u4ee5\u8fd9\u5927\u6982\u4e5f\u662f\u4e92\u8054\u7f51\u4e0a\u623e\u6c14\u8d8a\u6765\u8d8a\u91cd\u7684\u539f\u56e0~~~                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417763\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : paoqi2048 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u81ea\u5df1\u5b9e\u73b0\u5427\uff0c\u4e0d\u7528\u591a\u5c11\u4ee3\u7801                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417764\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : VYSE <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53c2\u8003 Python \u8de8\u5e73\u53f0\u5b9e\u73b0 psutil.virtual_memory().available                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417765\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Dlad <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u53c2\u8003 cacti \u5417\uff1f<br \/>snmp \u534f\u8bae\u80fd\u5b9e\u73b0\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417766\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gamexg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             c \u7684\u4e0d\u77e5\u9053\uff0cgo \u6211\u7528\u7684\u662f https:\/\/github.com\/shirou\/gopsutil\uff0cwindows \u3001linux \u7b49\u7cfb\u7edf\u90fd\u652f\u6301\uff0c\u53ef\u4ee5\u53c2\u8003\u4e0b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417767\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzzzx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e4b\u524d\u7528 Qt \u4e5f\u6709\u8fd9\u4e2a\u9700\u6c42\uff0c\u67e5\u8d44\u6599\u65f6\u8bf4\u662f\u8fd9\u4e9b\u4e1c\u897f\u592a\u5e73\u53f0\u76f8\u5173\u6027\u4e86\uff0c\u6240\u4ee5\u5373\u4fbf\u662f Qt \u4e5f\u6ca1\u63d0\u4f9b\u3002\u81ea\u5df1\u5199\u4e5f\u4e0d\u9ebb\u70e6                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417768\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xcstream <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9009 3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417769\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tianshiyeben <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             sigar \u7528\u7740\u6ca1\u6709\u95ee\u9898\u554a\u3002\u8fd9\u4e2a\u76d1\u63a7\u5de5\u5177\u5c31\u7528 sigar \u6765\u91c7\u96c6\u7cfb\u7edf\u4fe1\u606f\u7684\uff0c\u8fd9\u5c31\u662f\u6211\u5199\u7684\u76d1\u63a7\u7cfb\u7edf\u3002<br \/> https:\/\/github.com\/tianshiyeben\/wgcloud                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1417770\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : paoqi2048 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tianshiyeben sigar \u5728 GitHub \u4e0a\u7684\u6700\u540e\u4e00\u6b21\u66f4\u65b0\u662f Jan 4, 2016                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0d\u61c2\u5c31\u8981\u95ee\uff0c\u5982\u4f55\u7528 C++\u8de8\u5e73\u53f0\u83b7&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/84952"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84952"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/84952\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84952"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}