{"id":147162,"date":"2019-06-13T08:48:04","date_gmt":"2019-06-13T00:48:04","guid":{"rendered":"https:\/\/gulass.cn\/?p=147162"},"modified":"2019-06-04T16:49:20","modified_gmt":"2019-06-04T08:49:20","slug":"linux-cpu-gpu","status":"publish","type":"post","link":"https:\/\/gulass.cn\/linux-cpu-gpu.html","title":{"rendered":"Linux \u4e2dCPU \u548c GPU \u7684\u884c\u4e3a\u76d1\u63a7"},"content":{"rendered":"
\u7531\u4e8e\u00a0Steam\uff08\u5305\u62ec\u00a0Steam Play\uff0c\u5373 Proton\uff09\u548c\u4e00\u4e9b\u5176\u4ed6\u7684\u53d1\u5c55\uff0cGNU\/Linux \u6b63\u5728\u6210\u4e3a\u8d8a\u6765\u8d8a\u591a\u8ba1\u7b97\u673a\u7528\u6237\u7684\u65e5\u5e38\u6e38\u620f\u5e73\u53f0\u7684\u9009\u62e9\u3002\u4e5f\u6709\u76f8\u5f53\u4e00\u90e8\u5206\u7528\u6237\u5728\u9047\u5230\u50cf\u89c6\u9891\u7f16\u8f91\u6216\u56fe\u5f62\u8bbe\u8ba1\u7b49\uff08Kdenlive \u548c\u00a0Blender\u00a0\u662f\u8fd9\u7c7b\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5f88\u597d\u7684\u4f8b\u5b50\uff09\u8d44\u6e90\u6d88\u8017\u578b\u8ba1\u7b97\u4efb\u52a1\u65f6\uff0c\u4e5f\u4f1a\u4f7f\u7528 GNU\/Linux\u3002<\/p>\n
\u4e0d\u7ba1\u4f60\u662f\u5426\u662f\u8fd9\u4e9b\u7528\u6237\u4e2d\u7684\u4e00\u5458\u6216\u5176\u4ed6\u7528\u6237\uff0c\u4f60\u4e5f\u4e00\u5b9a\u60f3\u77e5\u9053\u4f60\u7684\u7535\u8111 CPU \u548c GPU \u80fd\u6709\u591a\u70ed\uff08\u5982\u679c\u4f60\u60f3\u8981\u8d85\u9891\u7684\u8bdd\u66f4\u4f1a\u5982\u6b64\uff09\u3002\u5982\u679c\u662f\u8fd9\u6837\uff0c\u90a3\u4e48\u7ee7\u7eed\u8bfb\u4e0b\u53bb\u3002\u6211\u4eec\u4f1a\u4ecb\u7ecd\u4e24\u4e2a\u975e\u5e38\u7b80\u5355\u7684\u547d\u4ee4\u6765\u76d1\u63a7 CPU \u548c GPU \u6e29\u5ea6\u3002<\/p>\n
\u6211\u7684\u88c5\u7f6e\u5305\u62ec\u4e00\u53f0\u00a0Slimbook Kymera\u00a0\u548c\u4e24\u53f0\u663e\u793a\u5668\uff08\u4e00\u53f0 TV \u548c\u4e00\u53f0 PC \u76d1\u89c6\u5668\uff09\uff0c\u4f7f\u5f97\u6211\u53ef\u4ee5\u7528\u4e00\u53f0\u6765\u73a9\u6e38\u620f\uff0c\u53e6\u4e00\u53f0\u6765\u7559\u610f\u76d1\u63a7\u6e29\u5ea6\u3002\u53e6\u5916\uff0c\u56e0\u4e3a\u6211\u4f7f\u7528\u00a0Zorin OS\uff0c\u6211\u4f1a\u5c06\u5173\u6ce8\u70b9\u653e\u5728 Ubuntu \u548c Ubuntu \u7684\u884d\u751f\u53d1\u884c\u7248\u4e0a\u3002<\/p>\n
\u4e3a\u4e86\u76d1\u63a7 CPU \u548c GPU \u7684\u884c\u4e3a\uff0c\u6211\u4eec\u5c06\u5229\u7528\u5b9e\u7528\u7684\u00a0watch\u00a0\u547d\u4ee4\u5728\u6bcf\u51e0\u79d2\u949f\u4e4b\u540e\u52a8\u6001\u5730\u5f97\u5230\u8bfb\u6570\u3002<\/p>\n
\u5bf9\u4e8e CPU \u6e29\u5ea6\uff0c\u6211\u4eec\u5c06\u7ed3\u5408\u4f7f\u7528\u00a0watch\u00a0\u4e0e\u00a0sensors\u00a0\u547d\u4ee4\u3002\u4e00\u7bc7\u5173\u4e8e\u6b64\u5de5\u5177\u7684\u56fe\u5f62\u7528\u6237\u754c\u9762\u7248\u672c\u7684\u6709\u8da3\u6587\u7ae0\u5df2\u7ecf\u5728 It\u2019s FOSS \u4e2d\u4ecb\u7ecd\u8fc7\u4e86\u3002\u7136\u800c\uff0c\u6211\u4eec\u5c06\u5728\u6b64\u5904\u4f7f\u7528\u547d\u4ee4\u884c\u7248\u672c\uff1a<\/p>\n
watch -n 2 sensors<\/pre>\nwatch\u00a0\u4fdd\u8bc1\u4e86\u8bfb\u6570\u4f1a\u5728\u6bcf 2 \u79d2\u949f\u66f4\u65b0\u4e00\u6b21\uff08\u5f53\u7136\uff0c\u8fd9\u4e2a\u5468\u671f\u503c\u80fd\u591f\u6839\u636e\u4f60\u7684\u9700\u8981\u53bb\u66f4\u6539\uff09\uff1a<\/p>\n
Every 2,0s: sensors\r\n\r\niwlwifi-virtual-0\r\nAdapter: Virtual device\r\ntemp1: +39.0\u00b0C\r\n\r\nacpitz-virtual-0\r\nAdapter: Virtual device\r\ntemp1: +27.8\u00b0C (crit = +119.0\u00b0C)\r\ntemp2: +29.8\u00b0C (crit = +119.0\u00b0C)\r\n\r\ncoretemp-isa-0000\r\nAdapter: ISA adapter\r\nPackage id 0: +37.0\u00b0C (high = +82.0\u00b0C, crit = +100.0\u00b0C)\r\nCore 0: +35.0\u00b0C (high = +82.0\u00b0C, crit = +100.0\u00b0C)\r\nCore 1: +35.0\u00b0C (high = +82.0\u00b0C, crit = +100.0\u00b0C)\r\nCore 2: +33.0\u00b0C (high = +82.0\u00b0C, crit = +100.0\u00b0C)\r\nCore 3: +36.0\u00b0C (high = +82.0\u00b0C, crit = +100.0\u00b0C)\r\nCore 4: +37.0\u00b0C (high = +82.0\u00b0C, crit = +100.0\u00b0C)\r\nCore 5: +35.0\u00b0C (high = +82.0\u00b0C, crit = +100.0\u00b0C)<\/pre>\n\u9664\u6b64\u4e4b\u5916\uff0c\u6211\u4eec\u8fd8\u80fd\u5f97\u5230\u5982\u4e0b\u4fe1\u606f\uff1a<\/p>\n
\u6839\u636e\u4ee5\u4e0a\u7684\u6e29\u5ea6\u503c\u6211\u4eec\u53ef\u4ee5\u5f97\u51fa\u7ed3\u8bba\uff0c\u6211\u7684\u7535\u8111\u76ee\u524d\u7684\u5de5\u4f5c\u8d1f\u8f7d\u975e\u5e38\u5c0f\u3002<\/p>\n
\u73b0\u5728\u8ba9\u6211\u4eec\u6765\u770b\u770b\u663e\u5361\u3002\u6211\u4ece\u6765\u6ca1\u4f7f\u7528\u8fc7 AMD \u7684\u663e\u5361\uff0c\u56e0\u6b64\u6211\u4f1a\u5c06\u91cd\u70b9\u653e\u5728 Nvidia \u7684\u663e\u5361\u4e0a\u3002\u6211\u4eec\u9700\u8981\u505a\u7684\u7b2c\u4e00\u4ef6\u4e8b\u662f\u4ece\u00a0Ubuntu \u7684\u9644\u52a0\u9a71\u52a8\u00a0\u4e2d\u4e0b\u8f7d\u5408\u9002\u7684\u6700\u65b0\u9a71\u52a8\u3002<\/p>\n
\u5728 Ubuntu\uff08Zorin \u6216 Linux Mint \u4e5f\u662f\u76f8\u540c\u7684\uff09\u4e2d\uff0c\u8fdb\u5165\u201c\u8f6f\u4ef6\u548c\u66f4\u65b0 > \u9644\u52a0\u9a71\u52a8\u201d\u9009\u9879\uff0c\u9009\u62e9\u6700\u65b0\u7684\u53ef\u7528\u9a71\u52a8\u3002\u53e6\u5916\uff0c\u4f60\u53ef\u4ee5\u6dfb\u52a0\u6216\u542f\u7528\u663e\u793a\u5361\u7684\u5b98\u65b9 ppa\uff08\u901a\u8fc7\u547d\u4ee4\u884c\u6216\u901a\u8fc7\u201c\u8f6f\u4ef6\u548c\u66f4\u65b0 > \u5176\u4ed6\u8f6f\u4ef6\u201d\u6765\u5b9e\u73b0\uff09\u3002\u5b89\u88c5\u9a71\u52a8\u7a0b\u5e8f\u540e\uff0c\u4f60\u5c06\u53ef\u4ee5\u4f7f\u7528 \u201cNvidia X Server\u201d \u7684 GUI \u7a0b\u5e8f\u4ee5\u53ca\u547d\u4ee4\u884c\u5de5\u5177\u00a0nvidia-smi\uff08Nvidia \u7cfb\u7edf\u7ba1\u7406\u754c\u9762\uff09\u3002\u56e0\u6b64\u6211\u4eec\u5c06\u4f7f\u7528\u00a0watch\u00a0\u548c\u00a0nvidia-smi\uff1a<\/p>\n
watch -n 2 nvidia-smi<\/pre>\n\u4e0e CPU \u7684\u60c5\u51b5\u4e00\u6837\uff0c\u6211\u4eec\u4f1a\u5728\u6bcf\u4e24\u79d2\u5f97\u5230\u4e00\u6b21\u66f4\u65b0\u7684\u8bfb\u6570\uff1a<\/p>\n
Every 2,0s: nvidia-smi\r\n\r\nFri Apr 19 20:45:30 2019\r\n+-----------------------------------------------------------------------------+\r\n| Nvidia-SMI 418.56 Driver Version: 418.56 CUDA Version: 10.1 |\r\n|-------------------------------+----------------------+----------------------+\r\n| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |\r\n| Fan Temp Perf Pwr:Usage\/Cap| Memory-Usage | GPU-Util Compute M. |\r\n|===============================+======================+======================|\r\n| 0 GeForce GTX 106... Off | 00000000:01:00.0 On | N\/A |\r\n| 0% 54C P8 10W \/ 120W | 433MiB \/ 6077MiB | 4% Default |\r\n+-------------------------------+----------------------+----------------------+\r\n\r\n+-----------------------------------------------------------------------------+\r\n| Processes: GPU Memory |\r\n| GPU PID Type Process name Usage |\r\n|=============================================================================|\r\n| 0 1557 G \/usr\/lib\/xorg\/Xorg 190MiB |\r\n| 0 1820 G \/usr\/bin\/gnome-shell 174MiB |\r\n| 0 7820 G ...equest-channel-token=303407235874180773 65MiB |\r\n+-----------------------------------------------------------------------------+<\/pre>\n\u4ece\u8fd9\u4e2a\u8868\u683c\u4e2d\u6211\u4eec\u5f97\u5230\u4e86\u5173\u4e8e\u663e\u793a\u5361\u7684\u5982\u4e0b\u4fe1\u606f\uff1a<\/p>\n
\u5927\u90e8\u5206\u8fd9\u4e9b\u4e8b\u5b9e\u6216\u6570\u503c\u90fd\u6e05\u6670\u5730\u8868\u660e\uff0c\u6211\u4eec\u6ca1\u6709\u5728\u73a9\u4efb\u4f55\u6d88\u8017\u7cfb\u7edf\u8d44\u6e90\u7684\u6e38\u620f\u6216\u5904\u7406\u5927\u8d1f\u8f7d\u7684\u4efb\u52a1\u3002\u5f53\u6211\u4eec\u5f00\u59cb\u73a9\u6e38\u620f\u3001\u5904\u7406\u89c6\u9891\u6216\u5176\u4ed6\u7c7b\u4f3c\u4efb\u52a1\u65f6\uff0c\u8fd9\u4e9b\u503c\u5c31\u4f1a\u5f00\u59cb\u4e0a\u5347\u3002<\/p>\n
\u5373\u4fbf\u6211\u4eec\u6709 GUI \u5de5\u5177\uff0c\u4f46\u6211\u8fd8\u662f\u53d1\u73b0\u8fd9\u4e24\u4e2a\u547d\u4ee4\u5bf9\u4e8e\u5b9e\u65f6\u76d1\u63a7\u786c\u4ef6\u975e\u5e38\u7684\u987a\u624b\u3002<\/p>\n
\u4f60\u5c06\u5982\u4f55\u53bb\u4f7f\u7528\u5b83\u4eec\u5462\uff1f\u4f60\u53ef\u4ee5\u901a\u8fc7\u9605\u8bfb\u4ed6\u4eec\u7684 man \u624b\u518c\u6765\u5b66\u4e60\u66f4\u591a\u5173\u4e8e\u8fd9\u4e9b\u5de5\u5177\u7684\u4f7f\u7528\u6280\u5de7\u3002<\/p>\n
\u4f60\u6709\u5176\u4ed6\u504f\u7231\u7684\u5de5\u5177\u5417\uff1f\u5728\u8bc4\u8bba\u91cc\u5206\u4eab\u7ed9\u6211\u4eec\u5427 ;)\u3002<\/p>\n
\u73a9\u5f97\u5f00\u5fc3\uff01<\/p>\n
via:\u00a0https:\/\/itsfoss.com\/monitor-cpu-gpu-temp-linux\/<\/a><\/p>\n \u4f5c\u8005\uff1aAlejandro Egea-Abell\u00e1n<\/a>\u00a0\u9009\u9898\uff1alujun9972<\/a>\u00a0\u8bd1\u8005\uff1acycoe<\/a>\u00a0\u6821\u5bf9\uff1awxy<\/a><\/p>\n \u672c\u6587\u7531\u00a0LCTT<\/a>\u00a0\u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a>\u00a0\u8363\u8a89\u63a8\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":" \u7531\u4e8e\u00a0Steam\uff08\u5305\u62ec\u00a0Steam Play\uff0c\u5373 Proton\uff09\u548c\u4e00\u4e9b\u5176\u4ed6\u7684\u53d1\u5c55\uff0cGNU\/Linux \u6b63\u5728\u6210\u4e3a […]<\/p>\n","protected":false},"author":323,"featured_media":115582,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-147162","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/147162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=147162"}],"version-history":[{"count":2,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/147162\/revisions"}],"predecessor-version":[{"id":147244,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/147162\/revisions\/147244"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/115582"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=147162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=147162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=147162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}