Got it

More Core or CPU Socket ?

Created: Jul 6, 2020 16:01:23Latest reply: Jul 8, 2022 01:41:24 544 7 0 0 0
  HiCoins as reward: 0 (problem unresolved)

Dear All,


Can someone help, which one is best performance, when you created vm ?


example if i want to create a VM with 8 Core,


is it better 1 socket with 8 cores ?

or 4 socket 2 cores ?



Thank you

  • x
  • convention:

Featured Answers
olive.zhao
Admin Created Jul 7, 2020 14:40:52

Hello, dear!

Have a nice day!

You can optimize multiple sockets or cores based on your scenario. 

If you can optimize multiple sockets, you are advised to use 1socket, 8cores(each socket).

If you can optimize for multiple cores, you can use 2 sockets, 4 cores(each socket).

For LLC, vNuma, and hyper-threading, it is recommended that multiple cores be deployed for a single socket. Considering different service types, it is recommended that multiple socket single-core interfaces be used for distributed services and database services, and multiple socket multi-core interfaces be used for WBE services. 

View more
  • x
  • convention:

stephen.xu
stephen.xu Admin Created Jul 7, 2022 01:58:21

For more details, about the socket, core, threads and CPU, you can see 

What is socket, core, threads, CPU?


View more
  • x
  • convention:

All Answers
ariase88
ariase88 Admin Created Jul 6, 2020 16:03:06

Thanks for your question.. We will provide you a proper answer in a moment
View more
  • x
  • convention:

wissal
wissal MVE Created Jul 6, 2020 20:20:11

Hello,

I hope to be helpful to you.

Socket is the socket at the mainboard where CPU is installed. More sockets - more CPUs. But socket can be empty in some situations. For example, you can choose server with 2-sockets mainboard and only 1 CPU.

Core is the part of CPU witch can calculate everything independently from other cores. It is a "small CPU". Modern CPUs have more then 1 core to make possible to execute calculations in parallel.

Thread can be:
1. The core of the CPU can run some commands in parallel because they are divided into small parts and when first part of the command 1 is passed, the command 2 can start its first part of the command. In this case command 1 and command 2 will run in parallel. Not everything can be paralleled this way. It also can be bad for the virtualization. And you can disable this feature in the BIOS. It names hyper threading.
2. Thread is the flow of the commands that execute one by one. For example, simple application. If thread can occupy core of the CPU - it will execute faster. If the threads number is bigger than core number, then threads will share the core and execute its code for a some time and then give other thread the core to execute others thread code.

CPU is the central processor unit. It is installed in the socket and have several cores. Each core can run several threads.

Socket 

This is a physical concept. It refers to the number of CPU slots on the mainboard. Generally, a server has multiple CPU slots. 

NUMA also introduces the concept of Node, which logically represents a CPU slot. 


Core 

A core is a physical unit that can independently execute tasks on a CPU. Generally, a CPU has multiple cores. A quad-core CPU refers to a CPU that has four cores and four units that can independently execute tasks. 


Thread

A thread is a logical concept and is a unit that can be logically executed independently. 


We can look at their relationship through a diagram.

core and thread



The Node concept is introduced to the NUMA architecture to solve the core grouping problem.

Each node has its own internal CPU, bus, and memory, and can access the memory of other nodes. The biggest advantage of NUMA is that it can increase the number of CPUs. 

————————————————The biggest advantage of NUMA is that the number of CPUs can be increased. ————————————————


node


As shown in the preceding figure, each socket has two nodes, and each socket has two nodes. Each node has eight threads. Therefore, there are a total of 4 (Socket) × 2 (Node) × 8 (4core × 2 Thread) = 64 threads.  

Thanks!

View more
  • x
  • convention:

radiv
radiv Created Jul 7, 2020 07:36:21

Thank's for the brief explaination related to Core, CPU, Thread and NUMA.

in my case, what is the best performance when you created the virtual machines in FusionCompute,

example, i want to create virtual machine 8cpu,

there are 2 scenario,
1. i can create 8 socket, with 1 core (each socket)
2. i can create 2 socket, with 4 core (each socket)

which one is the best performance, related to Create virtual machine in FusionCompute


Thank You,
View more
  • x
  • convention:

Spas1212
Spas1212 Created Jul 7, 2020 07:38:57

is it better 1 socket with 8 cores ?
or 4 socket 2 cores ?
if this configuration constant - 1 soket 8 core. if you increase CPU config online later - 4s x 2 core
View more
  • x
  • convention:

olive.zhao
olive.zhao Admin Created Jul 7, 2020 14:40:52

Hello, dear!

Have a nice day!

You can optimize multiple sockets or cores based on your scenario. 

If you can optimize multiple sockets, you are advised to use 1socket, 8cores(each socket).

If you can optimize for multiple cores, you can use 2 sockets, 4 cores(each socket).

For LLC, vNuma, and hyper-threading, it is recommended that multiple cores be deployed for a single socket. Considering different service types, it is recommended that multiple socket single-core interfaces be used for distributed services and database services, and multiple socket multi-core interfaces be used for WBE services. 

View more
  • x
  • convention:

stephen.xu
stephen.xu Admin Created Jul 7, 2022 01:58:21

For more details, about the socket, core, threads and CPU, you can see 

What is socket, core, threads, CPU?


View more
  • x
  • convention:

hahahahaa
hahahahaa Created Jul 8, 2022 01:41:24

Posted by stephen.xu at 2022-07-07 01:58 For more details, about the socket, core, threads and CPU, you can see What is socket, core, thread ...
非常有用
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.