歡迎您光臨本站 註冊首頁

請教: cpu的類型的疑惑.

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

請教: cpu的類型的疑惑.

我有一網站, 放在一個web hosting公司.給我說的是intel 的cpu. 我想驗證一下.

我在自己的開發機(intel cpu)上, 寫了一個簡單的c程序.用file命令一看, 輸出如下:

root@dc1:# file test
test: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.6.15, not stripped


我把這個程序上載到web hosting的主機, 同樣用file命令, 輸出如下:

$file test
test: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.15, statically linked, not stripped


為啥在web hosting的主機上, 顯示是AMD的cpu呢? 而且, 在web  hosting 主機上, 我more /proc/cpuinfo, 得到如下輸出
$more /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
stepping        : 6
cpu MHz         : 3000.174
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
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 pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_goo
d pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca sse4_1 lahf_lm
bogomips        : 6004.73
clflush size    : 64
cache_alignment : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel

又顯示cpu是intel的?

請問這是怎麼回事?

謝謝了.
《解決方案》

操作系統版本?編譯器版本?

只是架構的名稱問題,很多地方x86-64是AMD的架構,(AMD先大規模推出Opertron處理器的),Intel的64位CPU一般叫做intel64,或者EM64t。有些地方簡單的把AMD或intel的64位處理器都叫做x86-64,或者AMD64
《解決方案》

只是顯示的問題,cpuinfo顯示的是真實的cpu類型

[火星人 ] 請教: cpu的類型的疑惑.已經有473次圍觀

http://coctec.com/docs/service/show-post-5295.html