瀏覽單個文章
Arucueid
Master Member
 
Arucueid的大頭照
 

加入日期: Feb 2004
您的住址: 加拿大
文章: 2,391
回覆: Prescott架構的問題(爬文ed)

引用:
Originally posted by IceOnly
假設我們有個k-stage的pipeline,每clock cycle time為T.
現在我們有n條指令(or task)
則時間應為k*T+(n-1)*T=(k+n-1)*T

而沒pipeline時間為n*k*T

因此速度增加的比率為n*k*T/(k+n-1)*T
對n取極限(->無限大),得出k,即理論上k條pipeline會比無pipeline快上k倍
------------------------------------------------------------
為什麼我要提這?
因為之前看某大大說prescott是因為stage多總和時間變長
效能才低落
有點和上面起衝突


沒錯,這是理論上,管線越長時脈越快,處理速度也應該越快,但是還是牽涉到其他的問題

舉例來說,若是再"K-1"stage的地方出問題,就要重新來過,這要把之前已經在pipline裡的東西倒掉,空出整個單元給這個出錯的計算.
這個過程會嚴重的拖慢CPU的速度,所以管線越長,Branch prediction table就要越好越精確,以減少預測錯誤造成的延遲.

另外,管線越長,級數越多,最好就要保持管線時時都在"工作",才能展現長管線的高速處理優勢.

從Prescott的表現來看,Intel加強了分支預測來減少錯誤造成的延遲,並增加了L2快取來保持管線的"忙碌"
__________________

Rule #12: Never date a co-worker.
Rule #13: Never involve lawyers.
Rule #23: Never mess with a Marine's coffee if you want to live!
Rule #51: Sometimes you are wrong

純白の吸血鬼は微笑む:私を殺した責任、とってもらうからわ - アルクエイド ブリュンスッド
貴方に出逢い STAR輝いて アタシが生まれて
Was aus Liebe gethan wird, geschieht immer Jenseits von Gut und Böse - Friedrick Wilhelm Nietzsche

Cain was the first man ever to strike down another... and when the Lord came to him and said ‘What have you done!?’, Cain could not hide his crime. For the voice of his brother’s blood cried out from the very ground

The world has been your battlefield, everywhere you go. The blood of brothers and sons screams out against you. Perhaps you cannot yet hear it, because the soil is not your own, but you will... you will
舊 2004-04-27, 07:15 PM #3
回應時引用此文章
Arucueid離線中