Program Behavior Sequence Prediction
Bo Wu, Yunlian Jiang, Xipeng Shen (The College of William & Mary) Yaoqing Gao, Raul Silvera, Graham Yiu (IBM Toronto)
Thursday, November 10, 11
Program Behavior Sequence Prediction Bo Wu, Yunlian Jiang, Xipeng - - PowerPoint PPT Presentation
Program Behavior Sequence Prediction Bo Wu, Yunlian Jiang, Xipeng Shen (The College of William & Mary) Yaoqing Gao, Raul Silvera, Graham Yiu (IBM Toronto) Thursday, November 10, 11 Outline Motivation Our perspectives Behavior
Bo Wu, Yunlian Jiang, Xipeng Shen (The College of William & Mary) Yaoqing Gao, Raul Silvera, Graham Yiu (IBM Toronto)
Thursday, November 10, 11
Motivation Our perspectives Behavior sequence prediction framework Some results of loop trip count prediction Possible uses Summary
Thursday, November 10, 11
Accurate and proactive prediction of program
Thursday, November 10, 11
The usefulness is not limited to program
Provision in cloud computing Scheduling to reduce resource contention
Voltage scaling
Thursday, November 10, 11
However, the prediction of program behaviors is
Thursday, November 10, 11
Opportunities do exist
Thursday, November 10, 11
Difgerence between instance prediction and
Statistical correlation among difgerent behaviors
Context awareness
Thursday, November 10, 11
Three requirements for behavior prediction
Thursday, November 10, 11
The initial study is on loop trip counts prediction
Thursday, November 10, 11
Loop trip count sequences follow patterns
Thursday, November 10, 11
Three steps
Thursday, November 10, 11
Pattern Recognition
Thursday, November 10, 11
Pattern Recognition
<c1.4,1,1,17> <c2.1.1,c1.4,10,31,-1,c1.1,18,23>
Thursday, November 10, 11
Correlation Prediction
Thursday, November 10, 11
Thursday, November 10, 11
0.25 0.50 0.75 1.00
m c f l i b q u a n t u m b z i p 2 g
m k h m m e r m i l c p a r s e r s p h i n x 3 h 2 6 4 r e f s j e n g A v e r a g e
Loop Coverage
Thursday, November 10, 11
0.700 0.775 0.850 0.925 1.000
m c f l i b q u a n t u m b z i p 2 g
m k h m m e r m i l c p a r s e r s p h i n x 3 h 2 6 4 r e f s j e n g A v e r a g e
Thursday, November 10, 11
Aggressive Optimizations
While(!p) { if(satisfySomeCondition(p)) { result = p; break; } else p = p->next; }
Thursday, November 10, 11
Loop parallelization
loop interchange?
Thursday, November 10, 11
From loop trip counts to other behaviors
– Function hotness – Prefetching aggressiveness – Software pipelining – Trace selection in trace JIT
Thursday, November 10, 11
Program behavior prediction is useful for many
Behavior Sequences show extreme complexity,
Three requirements for useful predictions High prediction accuracy is possible for many
Thursday, November 10, 11
Bo Wu @ William & Mary
Thursday, November 10, 11