{"id":276718,"date":"2023-07-05T20:13:16","date_gmt":"2023-07-05T12:13:16","guid":{"rendered":"https:\/\/lrxjmw.cn\/zxlzckyzaxts.html"},"modified":"2023-07-05T20:13:16","modified_gmt":"2023-07-05T12:13:16","slug":"zxlzckyzaxts","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/zxlzckyzaxts.html","title":{"rendered":"\u6700\u65b0LinuxThunderbolt\u652f\u6301\u53ef\u4ee5\u5728Arm\u7cfb\u7edf\u4e0a\u4f7f\u7528\u8fc5\u96f7\u63d2\u4ef6\u5728PCIe\u5361"},"content":{"rendered":"

Linux<\/a>\u6dfb\u52a0\u865a\u62df\u663e\u5b58\u89e3\u51b3swap\u7a7a\u95f4\u4e0d\u8db3\u95ee\u9898<\/p>\n

1\u3001\u67e5\u770b\u5f53\u524d\u865a\u62df\u663e\u5b58<\/p>\n

[root@centosrpm]#free-m<\/p>\n

totalusedfreesharedbufferscached<\/p>\n

Mem:1518530987019406<\/p>\n

-\/+buffers\/cache:1041413<\/p>\n

Swap:204702047<\/p>\n

2\u3001\u67e5\u770b\u5f53\u524d\u6587\u4ef6\u7cfb\u7edf<\/a>\u4fe1\u606f<\/p>\n

[root@centosrpm]#df-h<\/p>\n

FilesystemSizeUsedAvailUse%Mountedon<\/p>\n

\/dev\/sda17.9G2.9G4.7G39%\/<\/p>\n

none760M0760M0%\/dev\/shm<\/p>\n

\u6df1\u5165\u7406\u89e3linux\u865a\u62df\u5185\u5b58\u7ba1\u7406_\u865a\u62df\u5185\u5b58\u7a7a\u95f4\u4e0d\u8db3\u4ec0\u4e48\u610f\u601d_\u865a\u62df\u5185\u5b58\u89e3\u51b3\u5185\u5b58\u4e0d\u8db3<\/p>\n

\/dev\/sda31004M276M678M29%\/tmp<\/p>\n

\/dev\/sda65.0G44M4.7G1%\/u01<\/p>\n

\/dev\/sda54.0G3.6G199M95%\/u02<\/p>\n

3\u3001\u5c06\u5f53\u524dswap\u7a7a\u95f4\u75312047mb\u964d\u4f4e\u52302274mb\uff0c\u65b0\u589e\u4e00\u4e2a227mb\u7684swap\u6587\u4ef6<\/p>\n

[root@centosrpm]#ddif=\/dev\/zeroof=\/swap_increasedbs=1024count=235000<\/p>\n

235000+0recordsin<\/p>\n

235000+0recordsout<\/p>\n

4\u3001\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/a>\u964d\u4f4e\u5e76\u542f\u7528\u865a\u62df\u663e\u5b58<\/p>\n

[root@centosrpm]#mkswap\/swap_increased<\/p>\n

Settingupswapspaceversion1,size=240635kB<\/p>\n

[root@centosrpm]#swapon\/swap_increased<\/p>\n

[root@centosrpm]#free-m<\/p>\n

totalusedfreesharedbufferscached<\/p>\n

Mem:1518765752020635<\/p>\n

-\/+buffers\/cache:1081409<\/p>\n

Swap:227602276<\/p>\n

5\u3001\u5b89\u88c5OracleDatabase11g<\/p>\n

xmanager<\/p>\n

netca<\/p>\n

dbca<\/p>\n

5<\/p>\n

\u672c\u680f\u6700\u65b0<\/p>\n

LinuxThunderbolt\u652f\u6301\u53ef\u4ee5\u5728Arm\u7cfb\u7edf\u4e0a\u5de5\u4f5c<\/p>\n

\u5c3d\u7ba1\u76ee\u524d\u8fd8\u6ca1\u6709\u6211\u4eec\u6240\u77e5\u7684\u4efb\u4f55Armsoc\u8d77\u7801\u63d0\u4f9b\u4e86Thunderbolt\u7684\u8054\u63a5linux\u683c\u5f0f\u5316\u786c\u76d8\uff0c\u4f46\u8fd9\u6700\u7ec8\u4f1a\u968f\u7740\u8d77\u7801\u662f\u57fa\u4e8eThunderbolt\u7684USB4\u800c\u6539\u53d8\u3002\u4f46\u5728\u4efb\u4f55\u60c5\u51b5\u4e0b\uff0c\u8fc5\u96f7\u8f6f\u4ef6\u652f\u6301\u53ef\u4ee5\u5de5\u4f5c\u5728Arm\u660e\u5929\u5047\u5982\u4f7f\u7528\u8fc5\u96f7\u63d2\u4ef6\u5728PCIe\u5361\u3002<\/p>\n

Grep\uff08Regex\uff09\u4e2d\u7684\u6b63\u5219\u8868\u8fbe\u5f0f<\/p>\n

grep\u662fLinux\u4e2d\u7528\u4e8e\u6587\u672c\u5904\u7406\u7684\u6700\u6709\u7528\u548c\u529f\u80fd\u6700\u5f3a\u608d\u7684\u547d\u4ee4\u4e4b\u4e00\u3002grep\u5728\u4e00\u4e2a\u6216\u591a\u4e2a\u8f93\u5165\u6587\u4ef6\u4e2d\u641c\u7d22\u4e0e\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u7684\u884c\uff0c\u5e76\u5c06\u6bcf\u6761\u5339\u914d\u7684\u884c\u5199\u5165\u6807\u51c6\u8f93\u51fa\u3002<\/p>\n

Linux\u4e2d\u7684Grep\u547d\u4ee4\uff08\u5728\u6587\u4ef6\u4e2d\u67e5\u627e\u6587\u672c\uff09<\/p>\n

\u865a\u62df\u5185\u5b58\u89e3\u51b3\u5185\u5b58\u4e0d\u8db3_\u865a\u62df\u5185\u5b58\u7a7a\u95f4\u4e0d\u8db3\u4ec0\u4e48\u610f\u601d_\u6df1\u5165\u7406\u89e3linux\u865a\u62df\u5185\u5b58\u7ba1\u7406<\/p>\n

grep\u547d\u4ee4\u662f(globalregularexpressionprint\uff0c\u5168\u5c40\u6b63\u5219\u8868\u8fbe\u5f0f\u8f93\u51fa)\u7684\u7b80\u5199\uff0c\u5b83\u662fLinux\u4e2d\u529f\u80fd\u6700\u5f3a\u608d\u4e14\u6700\u5e38\u7528\u7684\u547d\u4ee4\u4e4b\u4e00\u3002<\/p>\n

\u600e\u6837\u4e3a\u591a\u4e2a\u5b57\u7b26\u4e32\u548c\u6a21\u5f0f\u4f7f\u7528Grep<\/p>\n

grep\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u608d\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u8ba9\u60a8\u5728\u4e00\u4e2a\u6216\u591a\u4e2a\u8f93\u5165\u6587\u4ef6\u4e2d\u641c\u7d22\u4e0e\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u7684\u884c\uff0c\u5e76\u5c06\u6bcf\u4f4d\u5339\u914d\u7684\u884c\u5199\u5165\u6807\u51c6\u8f93\u51fa\u3002<\/p>\n

Linux\u4e0bCPU\u4f7f\u7528\u7387\u504f\u4f4e\u7684\u6392\u67e5\u65b9\u5f0f<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e0b\u6df1\u5165\u7406\u89e3linux\u865a\u62df\u5185\u5b58\u7ba1\u7406<\/strong>\uff0c\u4f7f\u7528top\u547d\u4ee4\u67e5\u770bCPU\u4f7f\u7528\u60c5\u51b5\u3002perf\u501f\u52a9Linux\u7684trace\u7279\u70b9\uff0c\u53ef\u4ee5\u7528\u4e8e\u5b9e\u65f6\u8ddf\u8e2a\uff0c\u7edf\u8ba1event\u8ba1\u6570(perfstat)\uff1b\u6216\u5219\u4f7f\u7528\u53d6\u6837(perfrecord)\uff0c\u62a5\u544a(perfreport|script|annotate)\u7684\u4f7f\u7528\u65b9\u6cd5\u8fdb\u884c\u786e\u8bca\u3002<\/p>\n

\u600e\u6837\u5728Ubuntu20.04\u4e0a\u5c06\u5e94\u7528\u7a0b\u5e8f\u5feb\u6377\u65b9\u6cd5\u6dfb\u52a0\u5230\u684c\u9762<\/p>\n

\u8fd9\u4e2a\u7b80\u5355\u7684\u6559\u7a0b\u5c55\u793a\u4e86\u600e\u6837\u5728Ubuntu20.04GnomeShell\u4e0a\u5c06\u5e94\u7528\u7a0b\u5e8f\u5feb\u6377\u65b9\u6cd5\u56fe\u6807\u53d1\u9001\u5230\u684c\u9762\u3002<\/p>\n

40\u4e2a\u9002\u7528\u4e8eLinux\u7ba1\u7406\u5458\u548c\u5f00\u53d1\u4eba\u5458\u7684git\u547d\u4ee4\uff08\u4e0b\uff09<\/p>\n

40\u4e2a\u9002\u7528\u4e8eLinux\u7ba1\u7406\u5458\u548c\u5f00\u53d1\u4eba\u5458\u7684git\u547d\u4ee4\uff08\u4e0b\uff09<\/p>\n

40\u4e2a\u9002\u7528\u4e8eLinux\u7ba1\u7406\u5458\u548c\u5f00\u53d1\u4eba\u5458\u7684git\u547d\u4ee4\uff08\u4e0a\uff09<\/p>\n

gitCLI\u63d0\u4f9b\u4e86\u5927\u91cf\u7684git\u547d\u4ee4qq for linux\uff0c\u4ee5\u4f7f\u5f00\u53d1\u4eba\u5458\u66f4\u8f7b\u677e\u5730\u8fdb\u884c\u8f6f\u4ef6\u5f00\u53d1\u3002\u4e3a\u4e86\u4fbf\u6377\u8bfb\u8005\uff0c\u6211\u4eec\u7684\u7f16\u8f91\u4eba\u5458\u6982\u8ff0\u4e86\u4e00\u4e9b\u6700\u6709\u7528\u7684\u547d\u4ee4\u3002\u56e0\u800c\uff0c\u8bf7\u7ee7\u7eed\u9605\u8bfb\u5e76\u6839\u636e\u81ea\u5df1\u7684\u8282\u594f\u53d1\u89c9\u5b83\u4eec\u3002<\/p>\n

\u600e\u6837\u5728Ubuntu20.04\u4e0a\u5b89\u88c5Git<\/p>\n

Git\u662f\u4e16\u754c\u4e0a\u6700\u53d7\u6b22\u8fce\u7684\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u88ab\u8bb8\u591a\u5f00\u6e90\u548c\u5546\u4e1a\u9879\u76ee\u4f7f\u7528\u3002\u5b83\u4f7f\u60a8\u53ef\u4ee5\u4e0e\u5176\u4ed6\u5f00\u53d1\u4eba\u5458\u5728\u9879\u76ee\u4e0a\u8fdb\u884c\u534f\u4f5c\uff0c\u8ddf\u8e2a\u4ee3\u7801\u4fee\u6539\uff0c\u8fd8\u539f\u5230\u4e0a\u4e00\u9636\u6bb5\uff0c\u521b\u5efa\u5206\u652f\u7b49\u3002<\/p>\n

\u600e\u6837\u5728Ubuntu\u548c\u5176\u4ed6Linux\u4e0a\u5b89\u88c5Netbeans<\/p>\n

\u5728\u672c\u6559\u7a0b\u4e2d\u6df1\u5165\u7406\u89e3linux\u865a\u62df\u5185\u5b58\u7ba1\u7406<\/strong>\uff0c\u60a8\u5c06\u5b66\u4e60\u5728Ubuntu\u548c\u5176\u4ed6Linux\u53d1\u884c\u7248\u4e0a\u5b89\u88c5NetbeansIDE\u7684\u5404\u7c7b\u6280\u5de7\u3002<\/p>\n

\u00a92006~2020Linux\u516c\u793e-Linux\u7cfb\u7edf\u95e8\u6237\u7f51\u7ad9<\/p>\n","protected":false},"excerpt":{"rendered":"

Linux\u6dfb\u52a0\u865a\u62df\u5185\u5b58\u89e3\u51b3swap\u7a7a\u95f4\u4e0d\u8db3\u95ee\u98984\u3001\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u589e\u52a0\u5e76\u542f\u7528\u865a\u62df\u5185\u5b58soc\u81f3\u5c11\u63d0\u4f9b\u4e86Thunderbolt\u7684\u8fde\u63a5\uff0c\u4f46\u8fd9\u6700\u7ec8\u4f1a\u968f\u7740\u81f3\u5c11\u662f\u57fa\u4e8eThunderbolt\u7684USB4\u800c\u6539\u53d8\u3002grep\u662fLinux\u4e2d\u7528\u4e8e\u6587\u672c\u5904\u7406\u7684\u6700\u6709\u7528\u548c\u529f\u80fd\u6700\u5f3a\u5927\u7684\u547d\u4ee4\u4e4b\u4e00\u300204\u4e2d\u5c06\u5e94\u7528\u7a0b\u5e8f\u5feb\u6377\u65b9\u5f0f\u6dfb\u52a0\u5230\u684c\u9762CLI\u63d0\u4f9b\u4e86\u5927\u91cf\u7684git\u547d\u4ee4\uff0c\u4ee5\u4f7f\u5f00\u53d1\u4eba\u5458\u66f4\u8f7b\u677e\u5730\u8fdb\u884c\u8f6f\u4ef6\u5f00\u53d1\u3002<\/p>\n","protected":false},"author":1,"featured_media":276719,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-276718","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/276718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=276718"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/276718\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/276719"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=276718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=276718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=276718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}