To be able to do the activity specified in the title of this article which is how to check socket size in server, it can be done briefly by executing a simple command. This is actually a command specifically exist in the UNIX or Linux operating system environment.
Being an operating system with the additional feature of command line environment or the support of CLI (Command Line Interface) enable it to pass and execute command specifically performed specific function in the bash prompt.
In this case, based on the manual page given in the operating system if the command of the following is being executed in the bash prompt :
The output of the command executed above is shown as follows :
NAME lscpu - display information about the CPU architecture
The command above if it is executed in a real situation in a real server can be shown below :
-bash-4.1$ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 26 Stepping: 5 CPU MHz: 2000.153 BogoMIPS: 4000.30 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 4096K NUMA node0 CPU(s): 0-3 -bash-4.1$
As it can be shown in the above output of the command executed, there is only one socket for the processor and the available core for the socket is only 4 core. Since the advancement of the processor technology, it is possible to have a processor with multi-core where the core itself is considered as a logical execution unit comprises of L1 Cache and function units. So, it is possible to have two cores, four cores, etc depends on the processor itself.
The output generated above can be vary from one to another depends on the architecture of the CPU owned or utilized by the server, host or workstation.