Browse > Article
http://dx.doi.org/10.5626/JCSE.2012.6.1.12

Multicore-Aware Code Co-Positioning to Reduce WCET on Dual-Core Processors with Shared Instruction Caches  

Ding, Yiqiang (Department of Electrical and Computer Engineering, Virginia Commonwealth University)
Zhang, Wei (Department of Electrical and Computer Engineering, Virginia Commonwealth University)
Publication Information
Journal of Computing Science and Engineering / v.6, no.1, 2012 , pp. 12-25 More about this Journal
Abstract
For real-time systems it is important to obtain the accurate worst-case execution time (WCET). Furthermore, how to improve the WCET of applications that run on multicore processors is both significant and challenging as the WCET can be largely affected by the possible inter-core interferences in shared resources such as the shared L2 cache. In order to solve this problem, we propose an innovative approach that adopts a code positioning method to reduce the inter-core L2 cache interferences between the different real-time threads that adaptively run in a multi-core processor by using different strategies. The worst-case-oriented strategy is designed to decrease the worst-case WCET among these threads to as low as possible. The other two strategies aim at reducing the WCET of each thread to almost equal percentage or amount. Our experiments indicate that the proposed multicore-aware code positioning approaches, not only improve the worst-case performance of the real-time threads but also make good tradeoffs between efficiency and fairness for threads that run on multicore platforms.
Keywords
Worst-case execution time analysis; Multicore processors; Shared caches; Hard real-time;
Citations & Related Records
연도 인용수 순위
  • Reference
1 V. Kathail, M. S. Schlansker, and B. R. Rau, "HPL-PD architecture specification: version 1.1," Hewlett-Packard Company, Palo Alto, CA, Technical Report HPL-93-80, 1994.
2 L. Gwennap, "Digital 21264 set new standard," Microprocessor Report, vol. 10, no. 14, 1996.
3 "Trimaran," http://www.trimaran.org.
4 National University of Singapore, "Chronos," http://www. comp.nus.edu.sg/-rpembed/chronos/.
5 "SimpleScalar," http://www.simplescalar.com/.
6 IBM, "IBM ilog CPLEX optimizer," http://www-01.ibm.com/ software/integration/optimization/cplex-optimizer/.
7 Malardalen Real-Time Research Centre (MRTC), "The worst-case execution time (WCET) analysis project," http:// www.mrtc.mdh.se/projects/wcet/.
8 D. B. Kirk, "SMART (strategic memory allocation for realtime) cache design," Proceedings of the Real-Time Systems Symposium, Santa Monica, CA, 1989, pp. 229-237.
9 D. B. Kirk and J. K. Strosnider, "SMART (strategic memory allocation for real-time) cache design using the MIPS R3000," Proceedings of the 11th Real-Time Systems Symposium, Lake Buena Vista, FL, 1990, pp. 322-330.
10 A. Wolfe, "Software-based cache partitioning for real-time applications," Journal of Computer and Software Engineering, vol. 2, no. 3, pp. 315-327, 1994.
11 F. Mueller, "Compiler support for software-based cache partitioning," Proceedings of the ACM SIGPLAN 1995 worshop on Languages, Compilers, and Tools for Real-Time Systems, La Jolla, CA, 1995, pp. 125-133.
12 T. Tian and C. Shih, "Software techniques for shared-cache multi-core systems," Intel Software Network, 2009, http:// software.intel.com/en-us/articles/software-techniques-for-sharedcache- multi-core-systems/.
13 J. Yan and W. Zhang, " WCET analysis for multi-core processors with shared L2 instruction caches," Proceedings of the 2008 IEEE Real-Time and Embedded Technology and Applications Symposium, St. Louis, MO, 2008, pp. 80-89.
14 Y. S. Li and S. Malik, "Performance analysis of embedded software using implicit path enumeration," Proceedings of the 32nd Annual ACM/IEEE Design Automation Conference, San Francisco, CA, 1995, pp. 456-461.
15 Y. S. Li, S. Malik, and A. Wolfe, "Cache modeling for realtime software: beyond direct mapped instruction caches," Proceedings of the 17th IEEE Real-Time Systems Symposium, Washington D.C., 1996, pp. 254-263.
16 Y. Ding and W. Zhang, "WCET-oriented code positioning on multicore processors with shared instruction cashes," Proceedings of the 16th IEEE Real-Time and Embedded Technology and Applications Symposium, Stockholm, Sweden, 2010, pp. 69-72.
17 K. Kim, D. Kim, and C. Park, "Real-Time scheduling in heterogeneous dual-core architectures," Proceedings of the 12th International Conference on Parallel and Distributed Systems, Minneapolis, MN, 2006, pp. 91-96.
18 W. Zhao, D. Whalley, C. A. Healy, and F. Mueller, "WCET code positioning," Proceedings of the 25th IEEE International Real-Time Systems Symposium, Lisbon, Portugal, 2004, pp. 81-91.
19 P. Lokuciejewski, H. Falk, and P. Marwedel, "WCET-driven cache-based procedure positioning optimization," Proceedings of the 2008 Euromicro Conference on Real-Time Systems, Prague, Czech Republic, 2008, pp. 321-330.
20 Y. Ding and W. Zhang, "Multicore-aware code positioning to improve worst-case performance," The 14th IEEE International Symposium on Object/Component/Service-Oriented Real-Time Distributed Computing, Newport Beach, CA, 2011, pp. 225-232.
21 S. McFarling, "Program optimization for instruction caches," Proceedings of the 3rd International Conference on Architectural Support for Programming Languages and Operating Systems, Boston, MA, 1989, pp. 183-191.
22 W. W. Hwu and P. P. Chang, "Achieving high instruction cache performance with an optimizing compiler," Proceedings of the 16th Annual International Symposium on Computer Architecture, Jerusalem, Israel, 1989, pp. 242-251.
23 K. Pettis and R. C. Hansen, "Profile guided code positioning," Proceedings of the ACM SIGPLAN 1990 Conference on Programming Language Design and Implementation, White Plains, New York, 1990, pp. 16-27.
24 S. Mohan, F. Mueller, W. Hawkins, M. Root, C. A. Healy, and D. Whalley, "ParaScale: exploiting parametric timing analysis for real-time schedulers and dynamic voltage scaling," Proceedings of the 26th IEEE International Real-Time Systems Symposium, Miami, FL, 2005, pp. 233-242.
25 B. Calder and D. Grunwald, "Reducing branch costs via branch alignment," Proceedings of the 6th International Conference on Architectural Support for Programming Languages and Operating Systems, San Jose, CA, 1994, pp. 242-251.
26 C. Young, D. S. Johnson, M. D. Smith, and D. R. Karger, "Near-optimal intraprocedural branch alignment," Proceedings of the ACM SIGPLAN 1997 Conference on Programming Languages Design and Implementation, Las Vegas, NV, 1997, pp. 183-193.
27 J. M. Calandrino, J. H. Anderson, and D. P. Baumberger, "A hybrid real-time scheduling approach for large-scale multicore platforms," Proceedings of the 19th Euromicro Conference on Real-Time Systems, Pisa, Italy, 2007, pp. 247-258.