我的CPU是32位還是64位?來自 lshw、lscpu、getconf 和 /proc/cpuinfo 的輸出

我的CPU是32位還是64位?來自 lshw、lscpu、getconf 和 /proc/cpuinfo 的輸出

我在 Toshiba Satellite 上使用 Debian squeeze。我想確定我的 CPU 是 64 位元還是 32 位元。我在這裡問這個是因為我現在很困惑。以下是四個不同 bash 命令的輸出,允許使用者準確查詢(CPU 的寬度):

grep getconf LONG_BIT返回 32;

grep /proc/cpuinfo回報

flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc amdc1e nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a 3dnowprefetch osvw ibs skinit wdt nodeid_msr

表示如果lm突出顯示,則我的 CPU 是 64 位元;好吧,它沒有突出顯示。

lshw返回兩個不同的東西:32位元主機板和64位元處理器(我看到這篇文章在這裡我認為答案適用於我的情況。lscpu是嗎?

Architecture:          i686
CPU op-mode(s):        64-bit
CPU(s):                1
Vendor ID:             AuthenticAMD
CPU family:            16
Model:                 6
Stepping:              3
CPU MHz:               800.000
Virtualization:        AMD-V
L1d cache:             64K
L1i cache:             64K
L2 cache:              512K

結論:這裡的結論是什麼?我的 CPU 是 32 位元還是 64 位元?我知道我安裝了 32 位元 (i386) 內核,但除此之外我還需要知道我的處理器是什麼。

答案1

這是所有 Linux 發行版的通用命令:

grep -q '\<lm\>' /proc/cpuinfo && echo "My CPU is a 64 bits one" || echo "My CPU is a 32 bits one"

它是硬體資訊:您可以在 64 位元 PC 上運行 32 位元發行版。該命令將揭示真相。

答案2

根據Gentoo wiki 上的此頁面,您的 CPU(系列 16、型號 6、步進 3)是 64 位元。

相關內容