[CPU] 같은 cpu 인데 왜 차이가 날까요?

   조회 6949   추천 0    

######################

# A 서버

######################

[root@localhost ~]# lscpu

Architecture:          x86_64

CPU op-mode(s):        32-bit, 64-bit

Byte Order:            Little Endian

CPU(s):                32

On-line CPU(s) list:   0-31

Thread(s) per core:    2

Core(s) per socket:    8

Socket(s):             2

NUMA node(s):          2

Vendor ID:             GenuineIntel

CPU family:            6

Model:                 45

Model name:            Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz

Stepping:              7

CPU MHz:               2600.000

CPU max MHz:           2600.0000

CPU min MHz:           1200.0000

BogoMIPS:              5187.55

Virtualization:        VT-x

L1d cache:             32K

L1i cache:             32K

L2 cache:              256K

L3 cache:              20480K

NUMA node0 CPU(s):     0-7,16-23

NUMA node1 CPU(s):     8-15,24-31

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 pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts md_clear spec_ctrl intel_stibp flush_l1d

[root@localhost ~]# 

[root@localhost ~]# 

[root@localhost ~]# 

[root@localhost ~]# cpupower frequency-info

analyzing CPU 0:

  driver: pcc-cpufreq

  CPUs which run at the same hardware frequency: 0

  CPUs which need to have their frequency coordinated by software: 0

  maximum transition latency:  Cannot determine or is not supported.

  hardware limits: 1.20 GHz - 2.60 GHz

  available cpufreq governors: conservative userspace powersave ondemand performance

  current policy: frequency should be within 1.20 GHz and 2.60 GHz.

                  The governor "performance" may decide which speed to use

                  within this range.

  current CPU frequency: Unable to call hardware

  current CPU frequency: 2.60 GHz (asserted by call to kernel)

  boost state support:

    Supported: yes

    Active: yes

    3200 MHz max turbo 4 active cores

    3200 MHz max turbo 3 active cores

    3300 MHz max turbo 2 active cores

    3300 MHz max turbo 1 active cores


######################

# B 서버

######################

[root@localhost ~]# lscpu

Architecture:          x86_64

CPU op-mode(s):        32-bit, 64-bit

Byte Order:            Little Endian

CPU(s):                32

On-line CPU(s) list:   0-31

Thread(s) per core:    2

Core(s) per socket:    8

Socket(s):             2

NUMA node(s):          2

Vendor ID:             GenuineIntel

CPU family:            6

Model:                 45

Model name:            Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz

Stepping:              7

CPU MHz:               1199.865

CPU max MHz:           3300.0000

CPU min MHz:           1200.0000

BogoMIPS:              5200.16

Virtualization:        VT-x

L1d cache:             32K

L1i cache:             32K

L2 cache:              256K

L3 cache:              20480K

NUMA node0 CPU(s):     0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30

NUMA node1 CPU(s):     1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31

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 pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts md_clear spec_ctrl intel_stibp flush_l1d

[root@localhost ~]# cpupower frequency-info

analyzing CPU 0:

  driver: intel_pstate

  CPUs which run at the same hardware frequency: 0

  CPUs which need to have their frequency coordinated by software: 0

  maximum transition latency:  Cannot determine or is not supported.

  hardware limits: 1.20 GHz - 3.30 GHz

  available cpufreq governors: performance powersave

  current policy: frequency should be within 1.20 GHz and 3.30 GHz.

                  The governor "performance" may decide which speed to use

                  within this range.

  current CPU frequency: 1.20 GHz (asserted by call to hardware)

  boost state support:

    Supported: yes

    Active: yes

    3200 MHz max turbo 4 active cores

    3200 MHz max turbo 3 active cores

    3300 MHz max turbo 2 active cores

    3300 MHz max turbo 1 active cores

A 서버는 HP DL360 G8 / B 서버는 R620 입니다


cpupower frequency-set -g performance 로 MAX cpu 클럭에 맞추려고 하는데 두대 서버가 같은 CPU 인데 제가 뭔가 설정을 잘못했나봅니다


왜?

A 서버는 CPU max MHz: 2600.0000 밖에 안나오고 MAX는 고정되어지고 

B 서버는 CPU max MHz: 3300.0000 까지 표시되는데 MAX cpu 클럭에 맞춰지 않을까요?


서로 드라이버 정보가 다르던데 메인보드 사양 때문일 까요?

A서버 driver: pcc-cpufreq , B서버 driver: intel_pstate


 OS 는 둘다 CentOS Linux release 7.9.2009 (Core) 입니다


조언 부탁드립니다.

미리 답변에 감사드립니다.~

짧은글 일수록 신중하게.
감자 2021-11
좀 더 자세히 적어주셔야...
이선호 2021-11
질문은 질문게시판에... 부탁합니다
     
나가이써 2021-11
아 넵~
ocarina 2021-11
1번은 현재 코어를 전부 갈구고 있으니 올코어 터보 2.6으로 맞춰진것 같고, 2번은 idle상태니 1코어 터보 3.3으로 표시되는것 같습니다.
     
나가이써 2021-11
아 네 1번 서버는 열심히 서비스 중이고 2번 서버는 아직 서비스전인 서버가 맞습니다~
그렇다면 cpu 유휴상태에 따라서 cpupower frequency-info 중에  hardware limits: 1.20 GHz - 2.60 GHz , current policy: frequency should be within 1.20 GHz and 2.60 GHz. 등도 바뀌게 될까요?
답변 감사드립니다
          
박문형 2021-11


CPU가 얼마나 부하를 받느냐에 따라서 클럭이 계속 변합니다..

https://rhyshan.com/m/550?category=469964

윈도우즈라면 HWMonitor 라는 프로그램 설치하면 코어단위로 클럭변화 전압변화 온도변화를 거의 실시간 급으로 모니터링 가능합니다..
화란 2021-11
1. 메인보드 다르면 같은 서버가 아닙니다^^

2. 메인보드가 같더라도 바이오스 버전과 세팅도 같아야 합니다^^
박문형 2021-11
두대의 서버가 같은 제조사에 모든 것을 똑같이 셋팅해도 속도 차이는 날 수 있습니다..

둘 다 아예 똑같게 동작하게는 못 만들겁니다..

그리고 부하 상태에 따라 CPU 속도가 변합니다..
박문형 2021-11
여기는 하드웨어 갤러리란입니다..
나가이써 2021-11
게시글 위치를 잘못 정한거 같네요 내일까지만 조언글 얻고 게시물 삭제하겠습니다. 수정으로 게시글 이동이 안되네요;;
박문형 2021-11
삭제 안하셔도 되고 다음에는 Q/A란에 적어주시기 바랍니다..
     
나가이써 2021-11
네~
cpu의 터보수치는
코어로드율/온도/전력소모에 따라 유동적입니다.
보통 최대터보클럭은 굉장히 적은 코어만 사용시에 전력을 그 소수의 코어에 몰아줘서 달성되는 클럭입니다.
이 수치는 사용되는 코어수에 따라 점점 낮아지는데
일례로 E5 2699v4의 경우
22코어/44쓰레드에 기본 2.2ghz/최대터보 3.6ghz이고

14/14/12/11/10/9/8/7/6/6/6/6/6/6/6/6/6/6/6/6/6/6
의 터보수치를 가집니다.
첫번째와 두번째의14가 의미하는건 2코어 사용까진 기본클럭+14의 터보클럭(=최대클럭인 3.6ghz)이 적용된다는 것이고
세번째의 12는 3코어 사용까지는 +12로  터보클럭 3.4ghz
네번째의 11은 4코어 사용까지는  +11로 터보클럭 3.3ghz
9코어사용부터 22코어사용까지는  +6으로 터보클럭 2.8ghz
로 적용된다는 겁니다
따라서 e5 2699v4를 100% 풀로드시의 올코어터보 클럭은 2.8ghz가 되겠네요.

이는 신형 스케일러블에 와서는 더 복잡해지는데 사용하는 명령어에 따라 이 수치가 또 다르게 적용됩니다.
     
나가이써 2021-11
친절한 설명 감사드립니다~ 좋은 공부 되었습니다~!!
dateno1 2021-11
활성화된 코어 개수도 영향을 주지만 BIOS 옵션이나 ACPI에 정의된 값에 따라서도 저런게 바뀝니다
나가이써 2021-11
답변 주신 모든 분들께 감사드립니다~! 혹 검색 타고 들어오실 분들 위해 cpu 튜닝 좌표 하나 남깁니다
https://access.redhat.com/documentation/ko-kr/red_hat_enterprise_linux/6/html/power_management_guide/tuning_cpufreq_policy_and_speed


제목Page 17/283
2014-05   5247795   정은준1
2015-12   1773107   백메가
2020-05   8648   화정큐삼
2022-04   6592   춘삼띄
2023-04   18189   RuBisCO
2018-08   6336   전직P연구원
2022-04   6532   현진
2023-07   21956   겨울나무
2023-10   39904   Inbusiness
2010-04   6090   에스반
2019-05   8888   eugeneshin
2020-07   5808   원주멋진덩치
2018-08   11026   곰탱이아빠
2019-07   10354   송주환
2021-11   7877   지존
2024-03   3686   2CPU최주희
2024-12   4486   TubeAmp
2010-05   7003   굴다리교
2019-05   8750   eugeneshin
2020-07   5714   원주멋진덩치
2022-02   7170   아름다음파파
2023-01   24285   박문형