2014年3月19日 星期三

評估某段code的cpu overhead

1 把演算法寫成 code
2 cross compiler成 ARM binary (因為SSD controller中多半是用ARM)
3 用SimpleScaler來算指令數

------------------------------

目前的code(假設10個users)算出來如下:
1 dispatch request       →  201 道 Inst.   →  0.25 us
2 credits charging        →  52 道 Inst.    → 0.06 us

ps: 假設800Mhz的cpu, CPI = 1 (i.e., as BLAS),  no cache。


0.25us     僅是完成一個page read 的 0.2% (i.e., 0.25/(25+100))
              或僅是完成一個page write 的  0.08% (i.e., 0.25/(200+100))

沒有留言:

張貼留言