a genetic algorithm to improve linux kernel performance
play

A Genetic Algorithm to Improve Linux Kernel Performance on - PowerPoint PPT Presentation

A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices James T. Kukunas , Robert D. Cupper, and Gregory M. Kapfhammer Department of Computer Science Allegheny College, Pennsylvania, USA Late Breaking Abstracts


  1. A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices James T. Kukunas , Robert D. Cupper, and Gregory M. Kapfhammer Department of Computer Science Allegheny College, Pennsylvania, USA Late Breaking Abstracts The Genetic and Evolutionary Computation Conference (GECCO), July 2010 James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  2. What is a Resource-Constrained Device? A Resource-Constrained Device Is . . . Any Device In Which Resources Are Intentionally Constrained James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  3. What is a Resource-Constrained Device? A Resource-Constrained Device Is . . . Any Device In Which Resources Are Intentionally Constrained James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  4. Why Do We Intentionally Constrain Resources? VS The Goal of This Research is to . . . Achieve BMW Performance With A Honda Motor While Keeping Honda Benefits James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  5. Intel Atom Specifics: In-Order Execution Memory Pipeline Instruction Buffer Out-of-Order Instruction Execution Hardware Dynamically Reorders Instructions to Reduce Dependency Stalls in the Pipeline James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  6. Intel Atom Specifics: In-Order Execution Memory Pipeline In-Order Instruction Execution Pipeline Sensitive to Depedency Stalls James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  7. Intel Atom Specifics: In-Order Execution Program Compiler Memory Pipeline Pipeline Modeling . . . At Compile-Time Reduces Dependency Stalls James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  8. Intel Atom Specifics: Power-Aware Cache CPU Cache At Higher Processor Power States . . . All Caches Blocks are Enabled James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  9. Intel Atom Specifics: Power-Aware Cache CPU Cache At Lower Processor Power States . . . Cache Blocks are Disabled to Conserve Power James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  10. What is the Linux Kernel? Hardware Peripherals CPU Mem Disk James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  11. What is the Linux Kernel? System Layout User Space Applications System Calls Kernel Space I/O Mem. Mgmt Proc. Mgmt Interrupts Hardware Peripherals CPU Mem Disk James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  12. Precise Fitness Metric System Calls with Counts > 26 open stat64 System Calls mmap2 close fstat64 getxattr read 50 100 150 200 System Call Counts (#) Fitness Metric System Calls Model User/Kernel Space Interaction James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  13. Precise Fitness Metric System Calls with Counts > 26 open stat64 System Calls mmap2 close fstat64 getxattr read 50 100 150 200 System Call Counts (#) Fitness Metric Only 10% of System Calls had Non-Zero Counts James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  14. Genetic Algorithm Initialization Initialize Population Parse Compiler Flags Bit String Representation Of Enabled Compiler Flags Initialization: Individual Represents Enabled Compiler Options James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  15. Genetic Algorithm Initialization Fitness Operator Build Kernel With Send Kernel To Netbook Micro−Benchmarking Specified Compiler Flags Fitness Operator: System Call Micro-Benchmarking James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  16. Genetic Algorithm Selection and Initialization Fitness Operator Crossover Operators Top 75% Reproduce Bottom 25% Discarded Enough to Replace Bottom 25% Selection Operator: Enforces Strong Elitism James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  17. Genetic Algorithm Selection and Mutation Operator Initialization Fitness Operator Crossover Operators 1% Chance of a Bit Flip Mutation Operator: Too Much Mutation Masks Evolution James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  18. Genetic Algorithm Selection and Mutation Operator Initialization Fitness Operator Crossover Operators Result Analysis N Iterations Termination Condition: Predefined Generation Count James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  19. Results Analysis Results Analysis Technique Phoronix Test Suite Suite to emulate netbook workload SQLLite GnuPG Ogg CRay SciMark 7Zip GTKPerf James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  20. GTK Results The Fastest Evolved Kernel . . . is About 20 Seconds Faster James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  21. SQLLite The Fasted Evolved Kernel . . . is About 140 Seconds Faster James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  22. Conclusions and Future Work Conclusions Evolved Kernels Outperformed Stock Fedora Kernel Genetic Algorithm Excels at Finding Correlations Between Optimizations Future Work More Platforms More Compilers More GA Options James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

  23. Conclusions and Future Work More Information at . . . Jim Kukunas < jkukunas@acm.org > http://member.acm.org/~treak007 James Kukunas < jkukunas@acm.org > Allegheny College A Genetic Algorithm to Improve Linux Kernel Performance on Resource-Constrained Devices

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend