{"id":87,"date":"2010-08-05T09:51:21","date_gmt":"2010-08-05T01:51:21","guid":{"rendered":"http:\/\/ipcpu.sa.cy.com\/?p=87"},"modified":"2010-08-05T09:51:21","modified_gmt":"2010-08-05T01:51:21","slug":"linux-cpu-32-64","status":"publish","type":"post","link":"https:\/\/c.ipcpu.com\/2010\/08\/linux-cpu-32-64\/","title":{"rendered":"Linux\u5224\u65adCPU\u662f32\u4f4d\u8fd8\u662f64\u4f4d\uff0c\u5224\u65ad\u7cfb\u7edf\u662f32\u4f4d\u8fd8\u662f64\u4f4d"},"content":{"rendered":"

\u672c\u6587\u4ec5\u9650\u4e8e\u670d\u52a1\u5668CPU\u548cLinux\u7cfb\u7edf\u8ba8\u8bba\uff0c\u4e0e\u53f0\u5f0f\u7535\u8111\u3001\u7b14\u8bb0\u672c\u65e0\u5173\u3002<\/p>\n

32\u4f4d\u300164\u4f4d\u4e0d\u80fd\u4e71\u88c5\uff0c64\u7684\u80fd\u88c532\u4f4d\u7684\uff0c\u56e0\u4e3a64\u4f4d\u7684CPU\u53ef\u4ee5\u517c\u5bb932\u4f4d\uff0c32\u4f4d\u7684\u88c5\u4e0d\u4e8664\u4f4d\u7684\u3002
\n\u6700\u8fd1\u90e8\u7f72\u4e86MongoDB\uff0c\u7cfb\u7edf\u662f32\u4f4d\u7684\u63d0\u793a\u4f1a\u6709\u6700\u5927\u6587\u4ef62G\u7684\u9650\u5236\u3002\u8fd8\u6709\u6700\u5e38\u89c1\u7684\u95ee\u989832\u4f4d\u7cfb\u7edf\u4e0d\u652f\u63014G\u4ee5\u4e0a\u5185\u5b58\uff0c\u5373\u4f7f\u6253PAE\u6548\u7387\u4e5f\u53d7\u5f71\u54cd\u3002<\/p>\n

1\u3001\u5224\u65adCPU\u662f32\u4f4d\u8fd8\u662f64\u4f4d<\/strong><\/p>\n

\u8fd9\u4e2a\u95ee\u9898\u6bd4\u8f83\u6709\u610f\u601d\uff0c\u7f51\u4e0a\u7ed9\u51fa\u7684\u529e\u6cd5\u90fd\u662f\u5224\u65ad\u4e86\u7cfb\u7edf\u7684\u4f4d\u6570\uff0c\u4e0d\u4ee3\u8868CPU\u7684\u4f4d\u6570\u3002\u8be6\u7ec6\u7684\u53ef\u4ee5\u770b\u4e0b\u8fd9\u4e2a\u5e16\u5b50\uff1ahttp:\/\/bbs2.chinaunix.net\/viewthread.php?tid=1600422<\/a>\u3010\u6bd4\u8f83\u7ecf\u5178\u7684\u6280\u672f\u5e16\u5b50\u548c\u4e89\u8bba\u5e16\u5b50\u3011<\/p>\n

\u65b9\u6cd5\uff1a
\n[root@s2.ipcpu.com ~]#\u00a0<\/span>cat \/proc\/cpuinfo | grep lm
\n<\/strong>flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall
\nnx\u00a0<\/span>lm<\/span>\u00a0<\/span><\/strong>constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm<\/p>\n

lm\u8868\u793aLong Mode \u2013 64\u4f4dCPU<\/p>\n

2\u3001\u5224\u65ad\u7cfb\u7edf\u662f32\u4f4d\u8fd8\u662f64\u4f4d<\/strong><\/p>\n

[root@s1.ipcpu.com ~]# uname -a\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd
\nLinux s1.ipcpu.com 2.6.18-164.el5PAE #1 SMP Thu Sep 3 04:10:44 EDT 2009\u00a0<\/span>i686 i686 i386<\/strong><\/span>\u00a0<\/span>GNU\/Linux<\/p>\n

i686 i386\u5747\u662f32\u4f4d\u64cd\u4f5c\u7cfb\u7edf<\/p>\n

[root@s2.ipcpu.com ~]# uname -a
\nLinux s2.ipcpu.com 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:12:36 EST 2009\u00a0<\/span>x86_64 x86_64 x86_64<\/span>\u00a0<\/span><\/strong>GNU\/Linux<\/p>\n

x86_64\u4f4d64\u4f4d\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6709\u4e9b\u5730\u65b9\u4e5f\u53ebamd64\uff0c\u4f46\u5e76\u975e\u5c31\u662fAMD\u7684CPU\uff0c\u800c\u662f64\u4f4d\u662fAMD\u5148\u63a8\u51fa\u7684\u3002<\/p>\n

\u53e6\u5916getconf LONG_BIT\u4e5f\u80fd\u5224\u65ad\u5f53\u524d\u7cfb\u7edf\u5b57\u957f\u3002<\/p>\n

\u5982\u679c\u4f60cpuinfo\u7684\u8f93\u51fa\u6709lm\u6807\u5fd7, \u800cuname -a\u547d\u4ee4\u7684\u8f93\u51fa\u662fi386\u6216i686, \u8bf4\u660e\u4f60\u662f64\u4f4d\u7684CPU\u8dd1\u768432\u4f4d\u7684\u7cfb\u7edf<\/p>\n

\u53c2\u8003\u8d44\u6599\uff1a<\/strong>
\n
http:\/\/blog.csdn.net\/eiyaa\/archive\/2009\/05\/14\/4184353.aspx<\/a>
\n
http:\/\/bbs2.chinaunix.net\/viewthread.php?tid=1600422<\/a>
\n
http:\/\/www.linuxquestions.org\/questions\/linux-general-1\/proc-cpuinfo-flag-lm-358563\/<\/a>
\n
http:\/\/www.unixtutorial.org\/2009\/05\/how-to-confirm-if-your-cpu-is-32bit-or-64bit\/<\/a><\/p>\n

\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aIPCPU-\u7f51\u7edc\u4e4b\u8def<\/a> » Linux\u5224\u65adCPU\u662f32\u4f4d\u8fd8\u662f64\u4f4d\uff0c\u5224\u65ad\u7cfb\u7edf\u662f32\u4f4d\u8fd8\u662f64\u4f4d<\/a><\/p>","protected":false},"excerpt":{"rendered":"

\u672c\u6587\u4ec5\u9650\u4e8e\u670d\u52a1\u5668CPU\u548cLinux\u7cfb\u7edf\u8ba8\u8bba\uff0c\u4e0e\u53f0\u5f0f\u7535\u8111\u3001\u7b14\u8bb0\u672c\u65e0\u5173\u3002 32\u4f4d\u300164\u4f4d\u4e0d\u80fd\u4e71\u88c5\uff0c64\u7684\u80fd\u88c532\u4f4d\u7684\uff0c\u56e0\u4e3a64\u4f4d\u7684CPU\u53ef\u4ee5\u517c\u5bb932\u4f4d\uff0c32\u4f4d\u7684\u88c5\u4e0d\u4e8664\u4f4d\u7684\u3002 \u6700\u8fd1\u90e8\u7f72\u4e86MongoDB\uff0c\u7cfb\u7edf\u662f32\u4f4d\u7684\u63d0\u793a\u4f1a\u6709\u6700\u5927\u6587\u4ef62G\u7684\u9650\u5236\u3002\u8fd8\u6709\u6700\u5e38\u89c1\u7684\u95ee\u989832\u4f4d\u7cfb\u7edf\u4e0d\u652f\u63014G\u4ee5\u4e0a\u5185\u5b58\uff0c\u5373\u4f7f\u6253PAE\u6548\u7387\u4e5f\u53d7\u5f71\u54cd\u3002 1\u3001\u5224\u65adCPU\u662f32\u4f4d\u8fd8\u662f64\u4f4d \u8fd9\u4e2a\u95ee\u9898\u6bd4\u8f83\u6709\u610f\u601d\uff0c\u7f51\u4e0a\u7ed9\u51fa\u7684\u529e\u6cd5\u90fd\u662f\u5224\u65ad\u4e86\u7cfb\u7edf\u7684\u4f4d\u6570\uff0c\u4e0d\u4ee3\u8868CPU\u7684\u4f4d\u6570\u3002\u8be6\u7ec6\u7684\u53ef\u4ee5\u770b\u4e0b\u8fd9\u4e2a\u5e16\u5b50\uff1ahttp:\/\/bbs2.chinaunix.net\/viewthread.php?tid=1600422\u3010\u6bd4\u8f83\u7ecf\u5178\u7684\u6280\u672f\u5e16\u5b50\u548c\u4e89\u8bba\u5e16\u5b50\u3011 \u65b9\u6cd5\uff1a [root@s2.ipcpu.com ~]#\u00a0cat \/proc\/cpuinfo | grep lm flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx\u00a0lm\u00a0constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm lm\u8868\u793aLong […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,13],"tags":[17],"_links":{"self":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/87"}],"collection":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":0,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"wp:attachment":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}