Download Using virtualization to enforce real-time Thesis
Transcript
Diploma Thesis Design The first problem mentioned (concerning the amount of processor instructions not accessing the main memory) is solved in LMBench by loop unrolling1. The second problem (concerning the compiler optimization) is solved by declaring the temp variable as volatile2 and involving it in a (useless) computation at the end of the loop. For more detail on LMBench, please refer Carl Staelin's article [C23], its documentation [C22] and its source code (properly documented). The document Memory hierarchy performance measurement of commercial dual-core desktop processors gives an example on using LMBench to perform memory performance measurements. [C24] We used the last available version of LMBench (3.0-a9) to compare the usage of the main memory between Fedora 11 32-bits without virtualization and Fedora 11 32-bits over VMware ESXi. Again the results of those tests are biased by the imperfection already described in chapter 3.5.1.1.1 Overhead on CPU-Bound applications (other small tasks are running, the system is disturbed by interrupts, etc.), but again we can reasonably consider that those effects are negligible. Moreover the recommendations displayed during the LMBench installation (e.g. the X server should be turned off) have been respected. We made a default configuration of LMBench during the installation process. Without virtualization, the installation process indicated a timing granularity of 50 ms after some measurements, which means it considers that running each test during only 50 ms will be enough to reach a good precision. Each test will be run 11 times and the median result will be delivered. [C23] On the system over ESXi, the timing granularity is 10 ms. All scripts written to automate the tests and display the results are available on the CD-ROM: /eval/ram/ . 3.5.1.2.1 Memory Bandwidth Without virtualization This test uses the bw_mem microbenchmark. It measures the bandwidth when reading from or writing into an array. [C25] The array size can be specified and this test has been run five times for several array sizes. To run this test yourself, type one of the following commands: $ ./run.sh bw_rd_profile $ ./run.sh bw_wr_profile To display the results, type one of the following commands: $ ./display.sh bw_rd_profile $ ./display.sh bw_wr_profile 1 Loop unrolling is the replacement of a loop by a sequence of identical iterations. [C4] volatile is a C++ keyword telling the compiler not to make any assumption concerning the value of a variable, but to act as if its value could be modified at any time by an external agent. 2 © KIT and COMSOFT Diploma Thesis-RT&Virtualization-V1.0/30.04.2010 79