Multi Core Processing How To Calculate No Of CPU & CPU Frequency

1)Two or More Independent Processing may couple in tightly or loosely or they may implement Message Passing Interface.
2)Actually processor called CORES. which are units read and execute the Program Execution. Multi core run Multiple Instruction.
3)Multiple core run multiple instruction at the same time,Increasing overall speed called PARALLEL COMPUTING.
4)Multi Core Processing CPU are
DUAL CORE processor has 2 processor
Hexa-Core Processor contain 6 processor.
octa-Core Processor contain 8 Processor.

What is Difference between processor & Cores.
Processor – Physical Processor
Core – Virtual Processor Inside Physical Processor.
1) Processor are Physical CPU, it can be count in following manner.
# cat /proc/cpuinfo  | grep "physical id" | sort | uniq
physical id     : 0
physical id     : 1
1.2)How to Find the Number of Socket -Using Physical address
#cat /proc/cpuinfo  | grep "physical id" | sort | uniq
physical id     : 0
physical id     : 1
it has two pysical id, so, it has two socket,
2)Cores are Virtual CPU, it can be count in following manner.
# cat /proc/cpuinfo  | grep "cpu cores" | sort | uniq
cpu cores       : 4
2.2)How to find Single Physical CPU has how many  Virtual cores,
# cat /proc/cpuinfo | grep "core id" | sort | uniq
core id         : 0
core id         : 1
core id         : 2
core id         : 3
it has 4 Cores,
NOTE : Physical id mean Socket id ,
core id where the (virtual processor)core located inside the Physical Processor (socket)
so it should have 2 socket id and 4 core id.
These server has  2 Physical Processor. Each single processor has  4 Virtual Processor.
Total Number of Processor = 2 * 4 = 8.
2.3)cat /proc/cpuinfo | grep sibling - Get the no of core available on physical cpu(or)socket.
3)To Find the total Number of processor.
# cat /proc/cpuinfo | grep "^processor"
processor       : 0
processor       : 1
processor       : 2
processor       : 3
processor       : 4
processor       : 5
processor       : 6
processor       : 7

PARALLEL COMPUTING
larger problem is divided into small , then it'll solve parallel.
single program can run in to the multiple CPU.

Difference between serial programing & Parallel Program ing
Serial Programing
Instruction are executed one after another. [ Only one instruction
may execute at moment in time]
Slow ,Run in Single CPU
Parallel programming
Problem are solved concurrently. [ Instruction execute simultaneously]
Very Fast , Run in Multiple CPU.

Calculate Processor Speed (or) CPU Frequency
1)How CPU Speed or Frequency is Calculating
CPU Speed Calculation = Clock speed* Multiplier.
For Example
Clock Speed = 300 mhz
Multiplier = 10
CPUSpeed = 300mhz*10 =3000mhz=3.0ghz.
2)cpu Frequency Possibility.
# ls /sys/devices/system/cpu/cpu0/cpufreq/
affected_cpus     ondemand                       scaling_driver
cpuinfo_cur_freq  scaling_available_frequencies  scaling_governor
cpuinfo_max_freq  scaling_available_governors    scaling_max_freq
cpuinfo_min_freq  scaling_cur_freq               scaling_min_freq
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
3003000 2403000 2003000 1603000 1203000
3)cpuspeed -C [Enable the Maximum CPU Frequency]