+ -
当前位置:首页 → 问答吧 → rhas4.8新添加两个cpu,貌似认不到。

rhas4.8新添加两个cpu,貌似认不到。

时间:2010-12-28

来源:互联网

本帖最后由 kerom 于 2010-12-28 09:06 编辑

原来已经有两路,负载不够,昨晚再添加两路,但系统象是没认到,请大侠们看看什么原因:
  1. [root@onwms ~]# cat /etc/redhat-release
  2. Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
复制代码
  1. [root@onwms ~]# uname -a
  2. Linux onwms.yh.cn 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:33:05 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
复制代码
  1. [root@onwms ~]# cat /proc/cpuinfo
  2. processor       : 0
  3. vendor_id       : GenuineIntel
  4. cpu family      : 6
  5. model           : 29
  6. model name      : Intel(R) Xeon(R) CPU           E7440  @ 2.40GHz
  7. stepping        : 1
  8. cpu MHz         : 2398.813
  9. cache size      : 16384 KB
  10. physical id     : 1
  11. siblings        : 2
  12. core id         : 8
  13. cpu cores       : 2
  14. fpu             : yes
  15. fpu_exception   : yes
  16. cpuid level     : 11
  17. wp              : yes
  18. 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 lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
  19. bogomips        : 4803.98
  20. clflush size    : 64
  21. cache_alignment : 64
  22. address sizes   : 40 bits physical, 48 bits virtual
  23. power management:

  24. processor       : 1
  25. vendor_id       : GenuineIntel
  26. cpu family      : 6
  27. model           : 29
  28. model name      : Intel(R) Xeon(R) CPU           E7440  @ 2.40GHz
  29. stepping        : 1
  30. cpu MHz         : 2398.813
  31. cache size      : 16384 KB
  32. physical id     : 4
  33. siblings        : 2
  34. core id         : 32
  35. cpu cores       : 2
  36. fpu             : yes
  37. fpu_exception   : yes
  38. cpuid level     : 11
  39. wp              : yes
  40. 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 lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
  41. bogomips        : 4796.96
  42. clflush size    : 64
  43. cache_alignment : 64
  44. address sizes   : 40 bits physical, 48 bits virtual
  45. power management:

  46. processor       : 2
  47. vendor_id       : GenuineIntel
  48. cpu family      : 6
  49. model           : 29
  50. model name      : Intel(R) Xeon(R) CPU           E7440  @ 2.40GHz
  51. stepping        : 1
  52. cpu MHz         : 2398.813
  53. cache size      : 16384 KB
  54. physical id     : 2
  55. siblings        : 2
  56. core id         : 16
  57. cpu cores       : 2
  58. fpu             : yes
  59. fpu_exception   : yes
  60. cpuid level     : 11
  61. wp              : yes
  62. 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 lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
  63. bogomips        : 4796.98
  64. clflush size    : 64
  65. cache_alignment : 64
  66. address sizes   : 40 bits physical, 48 bits virtual
  67. power management:

  68. processor       : 3
  69. vendor_id       : GenuineIntel
  70. cpu family      : 6
  71. model           : 29
  72. model name      : Intel(R) Xeon(R) CPU           E7440  @ 2.40GHz
  73. stepping        : 1
  74. cpu MHz         : 2398.813
  75. cache size      : 16384 KB
  76. physical id     : 7
  77. siblings        : 2
  78. core id         : 56
  79. cpu cores       : 2
  80. fpu             : yes
  81. fpu_exception   : yes
  82. cpuid level     : 11
  83. wp              : yes
  84. 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 lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
  85. bogomips        : 4796.99
  86. clflush size    : 64
  87. cache_alignment : 64
  88. address sizes   : 40 bits physical, 48 bits virtual
  89. power management:

  90. processor       : 4
  91. vendor_id       : GenuineIntel
  92. cpu family      : 6
  93. model           : 29
  94. model name      : Intel(R) Xeon(R) CPU           E7440  @ 2.40GHz
  95. stepping        : 1
  96. cpu MHz         : 2398.813
  97. cache size      : 16384 KB
  98. physical id     : 1
  99. siblings        : 2
  100. core id         : 9
  101. cpu cores       : 2
  102. fpu             : yes
  103. fpu_exception   : yes
  104. cpuid level     : 11
  105. wp              : yes
  106. 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 lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
  107. bogomips        : 4797.05
  108. clflush size    : 64
  109. cache_alignment : 64
  110. address sizes   : 40 bits physical, 48 bits virtual
  111. power management:

  112. processor       : 5
  113. vendor_id       : GenuineIntel
  114. cpu family      : 6
  115. model           : 29
  116. model name      : Intel(R) Xeon(R) CPU           E7440  @ 2.40GHz
  117. stepping        : 1
  118. cpu MHz         : 2398.813
  119. cache size      : 16384 KB
  120. physical id     : 4
  121. siblings        : 2
  122. core id         : 33
  123. cpu cores       : 2
  124. fpu             : yes
  125. fpu_exception   : yes
  126. cpuid level     : 11
  127. wp              : yes
  128. 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 lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
  129. bogomips        : 4796.94
  130. clflush size    : 64
  131. cache_alignment : 64
  132. address sizes   : 40 bits physical, 48 bits virtual
  133. power management:

  134. processor       : 6
  135. vendor_id       : GenuineIntel
  136. cpu family      : 6
  137. model           : 29
  138. model name      : Intel(R) Xeon(R) CPU           E7440  @ 2.40GHz
  139. stepping        : 1
  140. cpu MHz         : 2398.813
  141. cache size      : 16384 KB
  142. physical id     : 2
  143. siblings        : 2
  144. core id         : 17
  145. cpu cores       : 2
  146. fpu             : yes
  147. fpu_exception   : yes
  148. cpuid level     : 11
  149. wp              : yes
  150. 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 lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
  151. bogomips        : 4797.14
  152. clflush size    : 64
  153. cache_alignment : 64
  154. address sizes   : 40 bits physical, 48 bits virtual
  155. power management:

  156. processor       : 7
  157. vendor_id       : GenuineIntel
  158. cpu family      : 6
  159. model           : 29
  160. model name      : Intel(R) Xeon(R) CPU           E7440  @ 2.40GHz
  161. stepping        : 1
  162. cpu MHz         : 2398.813
  163. cache size      : 16384 KB
  164. physical id     : 7
  165. siblings        : 2
  166. core id         : 57
  167. cpu cores       : 2
  168. fpu             : yes
  169. fpu_exception   : yes
  170. cpuid level     : 11
  171. wp              : yes
  172. 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 lm pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
  173. bogomips        : 4796.90
  174. clflush size    : 64
  175. cache_alignment : 64
  176. address sizes   : 40 bits physical, 48 bits virtual
  177. power management:
复制代码
  1. [root@onwms ~]# sar -u -P ALL
  2. Linux 2.6.9-89.ELsmp (onwms.yh.cn)      12/28/2010

  3. 12:00:01 AM       CPU     %user     %nice   %system   %iowait     %idle
  4. 12:10:01 AM       all     26.03      0.00      0.21      0.04     73.71
  5. 12:10:01 AM         0     20.56      0.00      0.37      0.01     79.06
  6. 12:10:01 AM         1     22.50      0.00      0.46      0.06     76.98
  7. 12:10:01 AM         2     30.34      0.00      0.21      0.06     69.39
  8. 12:10:01 AM         3     35.28      0.00      0.14      0.02     64.57
  9. 12:10:01 AM         4     24.78      0.00      0.18      0.01     75.03
  10. 12:10:01 AM         5     12.10      0.00      0.12      0.01     87.77
  11. 12:10:01 AM         6     35.10      0.00      0.11      0.01     64.78
  12. 12:10:01 AM         7     27.58      0.00      0.10      0.17     72.16
  13. 12:20:01 AM       all     25.99      0.00      0.21      0.02     73.78
  14. 12:20:01 AM         0     12.33      0.00      0.48      0.00     87.19
  15. 12:20:01 AM         1     16.66      0.00      0.30      0.07     82.97
  16. 12:20:01 AM         2     31.45      0.00      0.30      0.05     68.19
  17. 12:20:01 AM         3     56.37      0.00      0.08      0.02     43.53
  18. 12:20:01 AM         4     19.31      0.00      0.16      0.01     80.52
  19. 12:20:01 AM         5     14.38      0.00      0.14      0.01     85.47
  20. 12:20:01 AM         6     25.05      0.00      0.09      0.00     74.86
  21. 12:20:01 AM         7     32.34      0.00      0.11      0.00     67.55
复制代码
难道还要重新编译内核吗?
硬件已经认到四路U, 3850M2

E7440  @ 2.40GHz 是4核心的U,这边怎么才2核心?  cpu cores       : 2
  1. [root@onwms ~]# cat /proc/cpuinfo |grep cores
  2. cpu cores       : 2
  3. cpu cores       : 2
  4. cpu cores       : 2
  5. cpu cores       : 2
  6. cpu cores       : 2
  7. cpu cores       : 2
  8. cpu cores       : 2
  9. cpu cores       : 2
复制代码
看下面又象是有认到CPU,有认到4个physical
  1. [root@onwms ~]# cat /proc/cpuinfo |grep physical
  2. physical id     : 1
  3. address sizes   : 40 bits physical, 48 bits virtual
  4. physical id     : 4
  5. address sizes   : 40 bits physical, 48 bits virtual
  6. physical id     : 2
  7. address sizes   : 40 bits physical, 48 bits virtual
  8. physical id     : 7
  9. address sizes   : 40 bits physical, 48 bits virtual
  10. physical id     : 1
  11. address sizes   : 40 bits physical, 48 bits virtual
  12. physical id     : 4
  13. address sizes   : 40 bits physical, 48 bits virtual
  14. physical id     : 2
  15. address sizes   : 40 bits physical, 48 bits virtual
  16. physical id     : 7
  17. address sizes   : 40 bits physical, 48 bits virtual
复制代码
  1. [root@onwms ~]# cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
  2. 4
  3. [root@onwms ~]# cat /proc/cpuinfo |grep "processor"|wc -l
  4. 8
  5. [root@onwms ~]# cat /proc/cpuinfo |grep "cores"|uniq
  6. cpu cores       : 2
  7. [root@onwms ~]# cat /proc/cpuinfo |grep MHz|uniq
  8. cpu MHz         : 2398.813
复制代码

作者: kerom   发布时间: 2010-12-28

回复 kerom


    sar -P ALL 看下~

作者: liaosnet   发布时间: 2010-12-28

  1. 07:20:01 AM       all     26.77      0.00      0.34      0.47     72.42
  2. 07:20:01 AM         0     16.68      0.00      0.81      0.42     82.09
  3. 07:20:01 AM         1     18.04      0.00      0.43      0.83     80.70
  4. 07:20:01 AM         2     37.86      0.00      0.34      0.77     61.02
  5. 07:20:01 AM         3     44.60      0.00      0.17      0.47     54.76
  6. 07:20:01 AM         4     22.10      0.00      0.37      0.36     77.18
  7. 07:20:01 AM         5     22.06      0.00      0.25      0.23     77.47
  8. 07:20:01 AM         6     33.24      0.00      0.19      0.36     66.22
  9. 07:20:01 AM         7     19.61      0.00      0.16      0.34     79.89
  10. 07:30:01 AM       all     26.70      0.00      0.30      0.30     72.70
  11. 07:30:01 AM         0     12.09      0.00      0.62      0.42     86.87
  12. 07:30:01 AM         1     30.15      0.00      0.46      0.27     69.13
  13. 07:30:01 AM         2     39.82      0.00      0.28      0.47     59.42
  14. 07:30:01 AM         3     32.67      0.00      0.27      0.42     66.64
  15. 07:30:01 AM         4     19.89      0.00      0.33      0.43     79.35
  16. 07:30:01 AM         5     16.28      0.00      0.24      0.22     83.25
  17. 07:30:01 AM         6     35.82      0.00      0.13      0.04     64.01
  18. 07:30:01 AM         7     26.87      0.00      0.10      0.10     72.94
  19. 07:40:01 AM       all     26.64      0.00      0.31      0.28     72.77
  20. 07:40:01 AM         0     13.24      0.00      0.56      0.26     85.95
  21. 07:40:01 AM         1     12.52      0.00      0.56      0.59     86.33
  22. 07:40:01 AM         2     40.66      0.00      0.31      0.35     58.67
  23. 07:40:01 AM         3     36.45      0.00      0.23      0.37     62.95
  24. 07:40:01 AM         4      8.90      0.00      0.30      0.50     90.30
  25. 07:40:01 AM         5     41.09      0.00      0.20      0.10     58.61
  26. 07:40:01 AM         6     36.15      0.00      0.13      0.06     63.65
  27. 07:40:01 AM         7     24.07      0.00      0.17      0.03     75.73
复制代码

作者: kerom   发布时间: 2010-12-28

/usr/sbin/dmidecode -t processor

作者: taojie2000   发布时间: 2010-12-28

  1. [root@onwms ~]# dmidecode -t processor
  2. # dmidecode 2.9
  3. SMBIOS 2.4 present.

  4. Handle 0x00A2, DMI type 4, 40 bytes
  5. Processor Information
  6.         Socket Designation: Node 1 CPU 3
  7.         Type: Central Processor
  8.         Family: Xeon MP
  9.         Manufacturer: GenuineIntel
  10.         ID: D1 06 01 00 00 00 00 00
  11.         Signature: Type 0, Family 6, Model 29, Stepping 1
  12.         Flags: None
  13.         Version: Intel Xeon MP           
  14.         Voltage: 1.5 V
  15.         External Clock: 133 MHz
  16.         Max Speed: 4000 MHz
  17.         Current Speed: 2400 MHz
  18.         Status: Populated, Enabled
  19.         Upgrade: ZIF Socket
  20.         L1 Cache Handle: 0x0042
  21.         L2 Cache Handle: 0x0043
  22.         L3 Cache Handle: 0x0044
  23.         Serial Number: Not Specified
  24.         Asset Tag: Not Specified
  25.         Part Number: Not Specified
  26.         Core Count: 4
  27.         Core Enabled: 4
  28.         Thread Count: 4
  29.         Characteristics:
  30.                 64-bit capable

  31. Handle 0x00A3, DMI type 4, 40 bytes
  32. Processor Information
  33.         Socket Designation: Node 1 CPU 1
  34.         Type: Central Processor
  35.         Family: Xeon MP
  36.         Manufacturer: GenuineIntel
  37.         ID: D1 06 01 00 00 00 00 00
  38.         Signature: Type 0, Family 6, Model 29, Stepping 1
  39.         Flags: None
  40.         Version: Intel Xeon MP           
  41.         Voltage: 1.5 V
  42.         External Clock: 133 MHz
  43.         Max Speed: 4000 MHz
  44.         Current Speed: 2400 MHz
  45.         Status: Populated, Enabled
  46.         Upgrade: ZIF Socket
  47.         L1 Cache Handle: 0x0045
  48.         L2 Cache Handle: 0x0046
  49.         L3 Cache Handle: 0x0047
  50.         Serial Number: Not Specified
  51.         Asset Tag: Not Specified
  52.         Part Number: Not Specified
  53.         Core Count: 4
  54.         Core Enabled: 4
  55.         Thread Count: 4
  56.         Characteristics:
  57.                 64-bit capable

  58. Handle 0x00A4, DMI type 4, 40 bytes
  59. Processor Information
  60.         Socket Designation: Node 1 CPU 2
  61.         Type: Central Processor
  62.         Family: Xeon MP
  63.         Manufacturer: GenuineIntel
  64.         ID: D1 06 01 00 00 00 00 00
  65.         Signature: Type 0, Family 6, Model 29, Stepping 1
  66.         Flags: None
  67.         Version: Intel Xeon MP           
  68.         Voltage: 1.5 V
  69.         External Clock: 133 MHz
  70.         Max Speed: 4000 MHz
  71.         Current Speed: 2400 MHz
  72.         Status: Populated, Enabled
  73.         Upgrade: ZIF Socket
  74.         L1 Cache Handle: 0x0048
  75.         L2 Cache Handle: 0x0049
  76.         L3 Cache Handle: 0x004A
  77.         Serial Number: Not Specified
  78.         Asset Tag: Not Specified
  79.         Part Number: Not Specified
  80.         Core Count: 4
  81.         Core Enabled: 4
  82.         Thread Count: 4
  83.         Characteristics:
  84.                 64-bit capable

  85. Handle 0x00A5, DMI type 4, 40 bytes
  86. Processor Information
  87.         Socket Designation: Node 1 CPU 4
  88.         Type: Central Processor
  89.         Family: Xeon MP
  90.         Manufacturer: GenuineIntel
  91.         ID: D1 06 01 00 00 00 00 00
  92.         Signature: Type 0, Family 6, Model 29, Stepping 1
  93.         Flags: None
  94.         Version: Intel Xeon MP           
  95.         Voltage: 1.5 V
  96.         External Clock: 133 MHz
  97.         Max Speed: 4000 MHz
  98.         Current Speed: 2400 MHz
  99.         Status: Populated, Enabled
  100.         Upgrade: ZIF Socket
  101.         L1 Cache Handle: 0x004B
  102.         L2 Cache Handle: 0x004C
  103.         L3 Cache Handle: 0x004D
  104.         Serial Number: Not Specified
  105.         Asset Tag: Not Specified
  106.         Part Number: Not Specified
  107.         Core Count: 4
  108.         Core Enabled: 4
  109.         Thread Count: 4
  110.         Characteristics:
  111.                 64-bit capable
复制代码

作者: kerom   发布时间: 2010-12-28

回复 kerom


    和你配置一样吗?

作者: taojie2000   发布时间: 2010-12-28

本帖最后由 kerom 于 2010-12-28 17:39 编辑


QUOTE:
回复  kerom


    和你配置一样吗?
taojie2000 发表于 2010-12-28 17:27



机子配置是四路  Intel(R) Xeon(R) CPU           E7440  @ 2.40GHz
上面显示的dmidecode -t processor 也是四路每路4核心吧?如果是的话,为什么跟/proc/cpuinfo上的不一样呢?

作者: kerom   发布时间: 2010-12-28



QUOTE:
回复  kerom


    和你配置一样吗?
taojie2000 发表于 2010-12-28 17:27



机子的物理配置是4路  Intel(R) Xeon(R) CPU           E7440  @ 2.40GHz

作者: kerom   发布时间: 2010-12-28

回复 kerom


    对啊  你仔细看那结果 4个U

                                    Socket Designation: Node 1 CPU 3

                                            Core Count: 4

                                            Core Enabled: 4

                                            Thread Count: 4

                                     Socket Designation: Node 1 CPU 1

                                     Core Count: 4
                                      ............

作者: taojie2000   发布时间: 2010-12-28