The Ohio State University
Identifying and Understanding Performance Problems in Software Systems
Abstract
dc:descriptionPerformance analysis is fundamental and significant to software development in both academia and industry. Especially in the era of post Moore’s law, performance analysis becomes increasingly important and challenging due to stagnant per-core CPU performance and slow increase of core count. In addition, the large scale of trace data generated by applications, operating systems and hardware (like performance monitor counter) make performance analysis more difficult. To solve these challenges, we need to design performance analysis methods systematically and holistically leveraging the information from applications, operating systems, and hardware. In this dissertation, I focus on identifying and understanding performance problems related to two key performance metrics: throughput and latency.First, we propose wPerf, a generic off-CPU analysis method to identify waiting events that limit the maximal throughput of a multi-threaded application. To achieve this, we not only need to understand an event’s impact on threads waiting for this event (i.e., local impact), but also need to understand whether its impact can reach other threads that are involved in request processing (i.e., global impact). To address these challenges, wPerf computes the local impact of a waiting event with a technique called cascaded re-distribution; more importantly, wPerf builds a wait-for graph to compute whether such impact can indirectly reach other threads. By combining these two techniques, wPerf essentially identifies events with large impacts on all threads. We apply wPerf to a number of open-source multithreaded applications. By following the guide of wPerf, we are able to improve their throughput by up to 4.83×.Second, we present our experience to understand latency variance caused by kernel and hardware events, which are often invisible at the application level. For this purpose, we have built VarMRI, a tool chain to monitor and analyze those events in the long term. The design of VarMRI is based on our study of existing tools: among them, we have identified the design choices that fit with our goal and VarMRI inherits such designs; we have also identified key functions that are missing in existing methods, which motivate us to either improve existing methods or develop new solutions. VarMRI has helped us to carry out a 3,000-hour study of six applications and benchmarks. The result reveals a wide variety of events causing latency variance, including interrupts, scheduling, Java GC, pipeline stall, NUMA balancing, etc.; simple optimization or tuning can reduce tail latencies by up to 31%.Third, we introduce LatencyMRI, a tool chain to understand latency variance caused by all kinds of events including application events, kernel events, and hardware events. Although VarMRI can monitor and analyze kernel and hardware events, it ignores application events and does not support AppTasks defined in kernel space. To solve these challenges, we develop flexible recording functions in kernel used to record AppTasks in kernel space, prepare caching component in kernel to reduce overhead, and update the definition of impact value to obtain an event’s impact on the request latency. Evaluations on two popular server applications show LatencyMRI can provide developers a comprehensive understanding of latency variance caused by all kinds of events.
Degree
thesis:*- Name thesis:degree_name
- Doctor of Philosophy
- Level thesis:degree_level
- doctoral
- Discipline thesis:degree_discipline
- Computer Science and Engineering
- Grantor dc:publisher
- The Ohio State University
- Year dc:date
- 2021
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Zhou, Fang
- Advisor dc:contributor.advisor
-
- Wang, Yang
Subjects
dc:subject × 5Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=osu1629470884534454