減少功耗同時保持CPU效能的一種方法

來源:互聯網
上載者:User

剛剛看到,這個技術應該被IBM power7用到了:)

We get CPI from below equation(Assume we only had 2 level caches and L2 is inclusive & unified cache) :

 

exe + 0.67*(hit_LI1 + LI1_missrate * (L2_hit + L2_missrate * L2_penalty)) + 0.33 * (hit_L1 + L1_missrate * (L2_hit + L2_missrate * L2_penalty))

exe:   average cycles for each instruction。

hit_LI1:  cycles for hit L1 instruction cache (1 cycle when pipeline is full)

hit_L1:  cycles for hit L1 data cache (1 cycle when pipeline is full)

LI1_missrate: miss ratio for L1 instruction cache.

L1_missrate: miss ratio for L1 data cache L2_hit :  cycles for hit L2 data cache.

L2_missrate: miss ratio for L2 data cache.

L2_penalty: cycles for miss penalty when L2 cache miss occurs.

 

L1/L2 hit, L2_penalty are determined by cache unit and system bus respectively.

Total execution time are CPI* Clock cycle time * instruction counts.

 

If we find the program speed closely depends on cache miss, and slow our cpu frequency, MAYBE we could save power without hurting performance. For example because of slower frequency we need more time to handle the current data, with independent clock dcache unit fetch next line become more efficient, cache miss penalty also become smaller.

Because our cpi from above equation gets smaller, with slower cpu frequency total execution time could keep the same with higher cpu frequency.

Normally cache access latency is 4/6 cycles, if cpu frequency become orig/2, our cache access latency only need 2/3 cycles, then cpi become smaller.

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.