6.1.4 · D1 · HinglishParallelism & Multicore

FoundationsMulticore vs manycore designs

2,107 words10 min read↑ Read in English

6.1.4 · D1 · Hardware › Parallelism & Multicore › Multicore vs manycore designs

Parent note Multicore vs Manycore Designs padhne se pehle, tumhe usme aane wale har symbol ko earn karna hoga. Yeh page har ek ko zero se build karta hai, ek aisi order mein jahan har idea pehle wale par lean karta hai. Yahan yeh assume nahi kiya gaya ki tumne pehle kabhi CPU diagram dekha hai.


1. "Core" kya hota hai? (har cheez ke peeche ki picture)

Ek chip (woh kala square jo tumhe computer kholne par dikhta hai) andar bahut saare aaise workers side by side rakh sakta hai. Yahi is chapter ka poora subject hai: kitne workers, aur har ek kitna clever hai.

Figure — Multicore vs manycore designs

Figure dekho. Left par, ek bada worker ek badi desk ke saath (bahut saare tools). Right par, bahut saare chhote workers choti choti desks ke saath. Same total floor space. Yahi tradeoff hai, ek baar draw kiya taaki tum kabhi na bhuulo.


2. Die area — "floor space" symbol

Parent note mein aisi cheezein likhi hain jaise , , . Letter ka matlab sirf area hai — koi cheez chip surface par kitni jagah leti hai.

Chote subscripts (letter ke neeche ke chhote words) sirf batate hain ki hum kaunsa area mean kar rahe hain:

Subscript
Yeh kaunsa area name karta hai
poori chip ka floor space (cost & manufacturing se fixed)
ek core ki calculating machinery ke liye jagah
ek core ki fast local memory ke liye jagah
"smart" logic ke liye jagah (prediction, reordering)
wiring ke liye jagah jo cores ko baat karne deti hai

3. Counting symbol

is pure topic ka star hai. Har formula disguise mein ek hi sawaal poochta hai: badhne par kya hota hai?

Yahan area idea se seedha pehla payoff milta hai. Agar poori chip hai aur har core ko chahiye, toh tum jitne cores fit kar sakte ho woh hai:

Yeh bas division = "chhoti cheez badi cheez mein kitni baar fit hoti hai?" hai — usi tarah jaise tum pizza ke slices count karne ke liye pizza ka area slice ke area se divide karte ho. Ek tiny core () ek fat core () se 50× zyada baar fit hota hai, jo exactly parent ka "1 complex core ≈ 50 simple cores" hai.


4. Clock speed — "har worker kitni tez tick karta hai" symbol

Har worker ke paas ek metronome imagine karo. Ek metronome ek second mein 4 billion baar tick karta hai; worker har tick par ek baar act kar sakta hai.


5. IPC — instructions per tick

aur IPC ko confuse mat karo:

  • = ticks per second kitne hain (metronome speed)
  • IPC = ek tick mein kitna kaam hota hai (worker ke kitne haath hain)
Figure — Multicore vs manycore designs

Figure mein ek clever core dikhta hai (har tick mein 4 boxes clear) aur saath mein chaar simple cores (har ek tick mein 1 box). Notice karo: chaar simple cores milke bhi 4 boxes per tick clear karte hain — lekin sirf tab jab chaar independent kaam dene ke liye hoon. Yeh thought pakad ke rakho; yahi wajah hai ki manycore ko "data parallelism" chahiye.


6. Latency vs Throughput — "fast" hone ke do tarike

Yeh is pure topic mein sabse gehri confusion hai, isliye hum dono ko ek picture ke saath define karte hain.

Figure — Multicore vs manycore designs

Figure mein do checkout lanes dekho. Ek express lane ek lightning-fast cashier ke saath low latency deta hai — tumhare items seconds mein scan ho jaate hain. Daas slow cashiers ki ek row high throughput deti hai — store overall per minute zyada customers serve karta hai, chahe har customer thoda zyada wait kare.

Parent note ka throughput formula ab padhne layak hai:

Seedhe shabdon mein: (kitne workers hain) × (har ek ke ticks per second) × (har ek ke jobs per tick) × (actually kaam karne ka fraction). Yeh bas un chaar ideas ko multiply karna hai jo ab tumhare paas hain.


7. Utilization — "fraction actually busy" symbol


8. Parallel fraction — Amdahl's Law ki key

Ek kaam ko ek bar samjho. Uska kuch hissa "shareable" colour karo (length ) aur kuch "akele karna hai" (length ). Shareable part workers ko dene se woh ho jaata hai. Akela wala part kabhi nahi shrinks.

Yeh akeli picture hi speedup formula hai:

  • term = woh zidd wala akela part (kabhi nahi shrinks).
  • term = shareable part, mein split.

Poori derivation Amdahl's Law mein hai; yahan tumhe sirf dekhte hi har symbol pehchanna hai.


Yeh foundations topic ko kaise feed karte hain

Core = one worker

N = how many cores

Die area A = fixed floor space

Fixed area forces few-big vs many-small

Clock f = ticks per second

Throughput formula

IPC = jobs per tick

Utilization = fraction busy

Latency vs Throughput idea

Multicore vs Manycore choice

Parallel fraction P

Amdahl speedup

Upar se neeche padho: core aur area ideas number-of-cores tradeoff create karte hain; clock, IPC, utilization throughput lens build karte hain; latency vs throughput aur Amdahl's decide karte hain ki kisi diye gaye kaam ke liye kaunsi philosophy jeetti hai.



Equipment checklist

Right side cover karo aur khud ko test karo. Agar koi jawab fuzzy lage, parent note se pehle woh section dobara padho.

Ek "core" physically kya represent karta hai?
Chip par ek complete worker jo instructions ko order mein read aur execute karta hai.
kya count karta hai?
Chip par cores ki sankhya.
Symbol (subscripts ke saath) kya measure karta hai, aur kis unit mein?
Silicon par ek component ka physical area, mein.
Tum bahut saare cores AUR bade cores dono kyun nahi rakh sakte?
Total die area fixed hai; ek par kharch kiya gaya area doosre ke liye available nahi.
(clock frequency) kya hai aur uski unit kya hai?
Ticks per second jitni tez ek core run karta hai, Hz mein measure hota hai (GHz = billions of ticks/s).
IPC se alag kaise hai?
ticks per second hai; IPC ek single tick mein finish hue instructions hain.
Ek sentence mein latency define karo.
Ek single kaam ko shuru se end tak finish hone ka time.
Ek sentence mein throughput define karo.
Sabhi cores milake per second kitne kaam finish hote hain.
Utilization (0–1) kya capture karta hai?
Woh fraction jitna time ek core wait karne ki jagah real work kar raha hai.
Amdahl's Law mein aur ka kya matlab hai?
= program ka shareable/parallel fraction; = woh serial part jo ek core ko akele karna hai.
Parallel part kyun ban jaata hai?
Equal kaam ko cores mein split karne par har ek karta hai, time mein.
Kaunsa design latency optimize karta hai, aur kaunsa throughput?
Multicore latency optimize karta hai ("pehle main"); manycore throughput optimize karta hai ("sab milake").