{"id":53,"date":"2015-06-02T14:43:23","date_gmt":"2015-06-02T06:43:23","guid":{"rendered":"http:\/\/yyshell.com\/?p=53"},"modified":"2015-09-14T10:10:36","modified_gmt":"2015-09-14T02:10:36","slug":"%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8blinux%e7%89%a9%e7%90%86%e5%86%85%e5%ad%98%e5%a4%a7%e5%b0%8f","status":"publish","type":"post","link":"https:\/\/yyshell.com\/?p=53","title":{"rendered":"\u5982\u4f55\u67e5\u770bLinux\u7269\u7406\u5185\u5b58\u5927\u5c0f"},"content":{"rendered":"<p>\u4eca\u5929\u6709\u5ba2\u6237\u627e\u8fc7\u6765\uff0c\u8be2\u95ee\u4ed6Linux\u7cfb\u7edf\u7684\u4e00\u4e9b\u95ee\u9898\uff0c\u4ed6\u7684\u4e3b\u8981\u95ee\u9898\u5982\u4e0b\uff1a<br \/>\n\u4e91\u670d\u52a1\u5668\u7684\u5185\u5b58\u4e3a2G\uff0c\u4e3a\u4f55\u663e\u793a\u7684\u5185\u5b58\u4e0d\u8db32G\uff0c\u4f9d\u636e\u5982\u4e0b\uff1a<\/p>\n<pre class=\"lang:default decode:true \">[root@localhost ~]# free -m\r\ntotal used free shared buff\/cache available\r\nMem: 1833 494 465 16 874 1124\r\nSwap: 2047 0 2047<\/pre>\n<p>\u4e5f\u5c31\u662f\u8bf4\uff0c\u4ed6\u7684total memory\u4e3a1833MB\uff0c\u4e0d\u662f2048MB\uff0c\u7136\u540e\u5ba2\u6237\u8bf4\u6211\u4eec\u5185\u5b58\u6ca1\u7ed9\u8db3\u3002\u7531\u4e8e\u4e4b\u524d\u8fd8\u771f\u6ca1\u6ce8\u610f\u8fd9\u4e2a\uff0c\u53ea\u77e5\u9053kdump\u6216\u8005linux\u7684\u7f13\u5b58\u673a\u5236\u53ef\u80fd\u4f1a\u4f7f\u53ef\u7528\u7684\u5185\u5b58\u53d8\u5c0f\uff0c\u90a3\u4e48\u600e\u4e48\u624d\u80fd\u77e5\u9053\u670d\u52a1\u5668\u7684\u5b9e\u9645\u7269\u7406\u5185\u5b58\u5927\u5c0f\u5462\uff1f<br \/>\ngoogle\u4e4b\u540e\uff0c\u5927\u81f4\u4e86\u89e3\u5982\u4e0b\u5185\u5bb9\uff1a<br \/>\n\u5b9e\u9645\u4e0a\uff0c\u7528\u6237\u8f93\u5165\u547d\u4ee4free -m\u4e4b\u540e\uff0c\u663e\u793a\u7684total mem\u4e3a\u5b9e\u9645\u53ef\u7528\u7684\u5185\u5b58\u5927\u5c0f\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u9664\u6b64\u4e4b\u5916\u7684\u5185\u5b58\uff0c\u56e0\u4e3a\u5404\u79cd\u673a\u5236\uff0c\u5b9e\u9645\u7684\u7cfb\u7edf\u4e2d\u7684\u7a0b\u5e8f\u662f\u65e0\u6cd5\u4f7f\u7528\u7684\u3002\u7269\u7406\u5185\u5b58\u7684\u5927\u5c0f\u53ef\u4ee5\u8fd9\u6837\u67e5\u770b\uff1a<\/p>\n<pre class=\"lang:default decode:true \">[root@localhost ~]# dmidecode -t 17 | grep \"Size.*MB\"<\/pre>\n<p>\u663e\u793a\u7ed3\u679c\uff1a<br \/>\n<span style=\"color: #ff0000;\">Size: 2048 MB<\/span><br \/>\n\u8fd9\u4e2a\u5c31\u662f\u5b9e\u9645\u7684\u7269\u7406\u5185\u5b58\u7684\u5927\u5c0f\u4e86\uff0c\u5b9e\u9645\u4e0admidecode\u547d\u4ee4\u662f\u7528\u4e8e\u5bfc\u51fa\u8ba1\u7b97\u673admi\u4fe1\u606f\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u67e5\u770b\u8bbe\u5907\u7684cpu\u3001\u7269\u7406\u5185\u5b58\u7b49\u4fe1\u606f\u3002\u5982\u679c\u5bf9\u4e0a\u8ff0\u547d\u4ee4\u76f4\u63a5\u663e\u793a\u7684\u7ed3\u679c\u6709\u7591\u95ee\uff0c\u53ef\u4ee5\u770b\u4e0b\u6240\u6709\u4fe1\u606f\u7684\u663e\u793a\uff1a<\/p>\n<pre class=\"lang:default decode:true \">dmidecode -t memory | less<\/pre>\n<p>\u663e\u793a\u7ed3\u679c\uff1a<\/p>\n<pre class=\"lang:default decode:true \"># dmidecode 2.12\r\nSMBIOS 2.3 present.\r\n\r\nHandle 0x0051, DMI type 16, 15 bytes\r\nPhysical Memory Array\r\nLocation: Unknown\r\nUse: System Memory\r\nError Correction Type: None\r\nMaximum Capacity: Unknown\r\nError Information Handle: 0x0050\r\nNumber Of Devices: 64\r\n\r\nHandle 0x0055, DMI type 17, 27 bytes\r\nMemory Device\r\nArray Handle: 0x0051\r\nError Information Handle: 0x0050\r\nTotal Width: Unknown\r\nData Width: Unknown\r\nSize: 2048 MB\r\nForm Factor: Unknown\r\nSet: None\r\nLocator: M0\r\nBank Locator: None\r\nType: Other\r\nType Detail: Unknown\r\nSpeed: Unknown\r\nManufacturer: Microsoft\r\nSerial Number: None\r\nAsset Tag: None\r\nPart Number: None<\/pre>\n<p>\u5b9e\u9645\u4e0a\uff0c\u540e\u9762\u8fd8\u6709\u5f88\u591a\u5173\u4e8e\u5185\u5b58\u7684\u4fe1\u606f\uff0c\u8fd9\u91cc\u5c31\u4e0d\u4e00\u4e00\u5217\u4e3e\u4e86\u3002<br \/>\nDMI\u8bbe\u5907\u5206\u4e3a\u5982\u4e0b\u7684\u7c7b\u578b\uff1a<\/p>\n<pre class=\"lang:default decode:true \">0 BIOS\r\n1 System\r\n2 Baseboard\r\n3 Chassis\r\n4 Processor\r\n5 Memory Controller\r\n6 Memory Module\r\n7 Cache\r\n8 Port Connector\r\n9 System Slots\r\n10 On Board Devices\r\n11 OEM Strings\r\n12 System Configuration Options\r\n13 BIOS Language\r\n14 Group Associations\r\n15 System Event Log\r\n16 Physical Memory Array\r\n17 Memory Device\r\n18 32-bit Memory Error\r\n19 Memory Array Mapped Address\r\n20 Memory Device Mapped Address\r\n21 Built-in Pointing Device\r\n22 Portable Battery\r\n23 System Reset\r\n24 Hardware Security\r\n25 System Power Controls\r\n26 Voltage Probe\r\n27 Cooling Device\r\n28 Temperature Probe\r\n29 Electrical Current Probe\r\n30 Out-of-band Remote Access\r\n31 Boot Integrity Services\r\n32 System Boot\r\n33 64-bit Memory Error\r\n34 Management Device\r\n35 Management Device Component\r\n36 Management Device Threshold Data\r\n37 Memory Channel\r\n38 IPMI Device\r\n39 Power Supply\r\n40 Additional Information\r\n41 Onboard Devices Extended Information\r\n42 Management Controller Host Interface<\/pre>\n<p>\u5b9e\u9645\u4e0a\uff0c\u5728\u67e5\u770b\u7269\u7406\u5185\u5b58\u4e2d\uff0c\u6211\u4eec\u5173\u6ce8type 17\u5373\u53ef\u3002<\/p>\n<pre class=\"lang:default decode:true \">dmidecode -t 17 | less<\/pre>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cdmidecode\u547d\u4ee4\u5fc5\u987b\u7528root\u6743\u9650\u624d\u80fd\u8fd0\u884c\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u4e5f\u53ef\u4ee5\u7528<\/p>\n<pre class=\"lang:default decode:true \">[root@localhost ~]# cat \/proc\/meminfo<\/pre>\n<p>\u67e5\u770b\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6700\u540e\u4e24\u884c\uff1a<\/p>\n<pre class=\"lang:default decode:true \">DirectMap4k: 47040 kB\r\nDirectMap2M: 2050048 kB<\/pre>\n<p>\u628a\u8fd9\u4e24\u884c\u663e\u793a\u7684\u6570\u503c\u76f8\u52a0\uff0c\u9664\u4ee51024\uff0c\u5c31\u662f\u5b9e\u9645\u7269\u7406\u5185\u5b58\u7684\u5927\u5c0f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u6709\u5ba2\u6237\u627e\u8fc7\u6765\uff0c\u8be2\u95ee\u4ed6Linux\u7cfb\u7edf\u7684\u4e00\u4e9b\u95ee\u9898\uff0c\u4ed6\u7684\u4e3b\u8981\u95ee\u9898\u5982\u4e0b\uff1a \u4e91\u670d\u52a1\u5668\u7684<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-53","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=53"}],"version-history":[{"count":2,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":55,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/53\/revisions\/55"}],"wp:attachment":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}