Got it

What is socket, core, threads, CPU?

Created: May 27, 2020 07:47:39Latest reply: Jun 10, 2021 08:58:35 1480 11 3 0 1
  Rewarded HiCoins: 0 (problem resolved)

Hello, everyone!


As I know,  the NUMA (Non-Uniform Memory Access Architecture), the basic feature of NUMA server is that it has multiple CPU modules, each CPU module is composed of multiple CPUs (such as 4), and has independent local memory, I/O slots.

Refer to the post: https://bit.ly/3c2kX6B


But I looked at some of the data and found that I didn't quite understand some of the concepts, such as socket, core, threads, CPU.

Can anyone tell What is socket, core, threads, CPU?


Thank you very much!

Featured Answers

Best answer

Recommended answer

stephen.xu
Admin Created May 27, 2020 08:53:00

The forum god should have a lot of good explanations, I also briefly expounded my views, I hope to be helpful to you. 

What is 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. 

What is 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. 

What is Thread

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

The relationship between Socket, Core, and Thread

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.  


View more
  • x
  • convention:

zaheernew
zaheernew Created Jun 9, 2021 05:58:59 (0) (0)
 
All Answers

Hello, dear


Socket is a physical slot for installing a CPU on a server.  A server usually has multiple slots for CPUs. 

Core indicates the number of CPU cores encapsulated by each CPU.  Generally, the quad-core CPU refers to the core. 

If the number of sockets, cores, and threads is multiplied by 2, that is, 2 x 6 x 2, the number of CPUs is 24. These are not real CPUs, but the number of parallel threads that the system can execute.


View more
  • x
  • convention:

Peterhof
Peterhof Author Created May 27, 2020 08:15:05

Hello!
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.
View more
  • x
  • convention:

stephen.xu
stephen.xu Created May 27, 2020 08:23:57 (0) (0)
Thank you for reply.  

The forum god should have a lot of good explanations, I also briefly expounded my views, I hope to be helpful to you. 

What is 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. 

What is 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. 

What is Thread

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

The relationship between Socket, Core, and Thread

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.  


View more
  • x
  • convention:

zaheernew
zaheernew Created Jun 9, 2021 05:58:59 (0) (0)
 
That is a good post for the understanding socket, core, threads, CPU

Thank you
View more
  • x
  • convention:

What is socket, core, threads, CPU?-3963327-1
View more
  • x
  • convention:

GOOD
View more
  • x
  • convention:

Hi!

I'd like to add something.


Socket is an intermediate software abstraction layer for communication between application layer and TCP/IP protocol family. It is a group of interfaces.

In the design pattern, the Socket is essentially a facade pattern that hides the complex TCP/IP protocol family behind the Socket interface. To the user, a simple set of interfaces is all that is required, allowing the Socket to organize data to conform to the specified protocol.


Thread is the smallest unit of operation that an operating System can schedule. It is contained within a process and is the actual operating unit of a process. A thread refers to a single sequential flow of control within a process V and Sunos are also referred to as lightweight processes, but lightweight processes refer more to kernel threads than to user threads.


Hope I can help you.

:)

View more
  • x
  • convention:

stephen.xu
stephen.xu Created Jun 10, 2021 08:59:14 (0) (0)
Thank you!  
user_4147187
user_4147187 Reply stephen.xu  Created Jun 10, 2021 09:25:06 (0) (0)
 

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.