State University of New York at Buffalo
Database Benchmarking and CPU Policies for Phone Systems
Abstract
dc:description.abstractPhones, one of the largest systems consisting of millions of smartphone apps and billions of smartphone users, have well documented needs. Yet, techniques originally developed for other platforms can not match well with usage conditions of phones. We observe two mismatches that both stem from phones' intermittent CPU use patterns and develop solutions to both. First, we show that traditional database benchmarking methods produce misleading results when applied to mobile devices. On phones, embedded database libraries are a key component of major mobile operating systems, and provide developers with a common and convenient data persistence layer. Database performance affects the response times and resource consumption. It is critical that we understand how embedded databases operate in realistic mobile settings, and how they interact with mobile environments. However, traditional database measurements fail to answer this, due to evaluating performance only at saturation. To rectify this, we present PocketData, a new benchmark for mobile device database evaluation that uses typical workloads to produce representative performance results. We explain the performance measurement methodology behind \systemname, and address specific challenges. We analyze the results obtained, and show how different classes of workload interact with database performance. Notably, our study of mobile databases at non-saturated levels uncovers significant latency and energy variation in database workloads resulting from CPU frequency scaling policies called governors --- variation that we show is hidden by typical benchmark measurement techniques. Second, existing governor policies frequently pick speeds that cost both energy and performance. CPU frequency scaling is a critical component of power management on modern mobile phones, as CPUs can represent a significant source of power consumption on the phone. On Android the governor, a configurable policy, dictates the CPU's frequency and the performance to energy savings tradeoff. Android's existing governors rely on recent CPU usage patterns to make this trade-off. The longer a CPU is active, the faster the governor sets the CPU's frequency. We demonstrate that this assumption is flawed: The lower range of frequency settings on a typical mobile CPU saves minimal energy at the cost of much slower performance; high speeds consume significant energy for marginal performance boost. We introduce KeepItSimple, a governor that leverages this observation. Because of the commoncase intermittent CPU use patterns on phones, this governor, in addition to being considerably simpler than the default, can both improve performance and reduce energy consumption on a typical Android phone.
Degree
thesis:*- Grantor dc:publisher
- State University of New York at Buffalo
- Year dc:date.issued
- 2024
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Nuessle, Carl; 0000-0002-6391-2854
- Contributors dc:contributor
-
- Kennedy, Oliver
- Computer Science and Engineering
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions.
- Language dc:language
- eng
Identifiers
dc:identifier.*- Handle dc:identifier
- http://hdl.handle.net/10477/89951