Abstract
It is surprisingly hard to obtain accurate and precise measurements of the time spent executing a query because there are many sources of variance. To understand these sources, we review relevant per-process and overall measures obtainable from the Linux kernel and introduce a structural causal model relating these measures. A thorough correlational analysis provides strong support for this model. We attempted to determine why a particular measurement wasn’t repeatable and then to devise ways to eliminate or reduce that variance. This enabled us to articulate a timing protocol that applies to proprietary DBMSes, that ensures the repeatability of a query, and that obtains a quite accurate query execution time while dropping very few outliers. This resulting query time measurement procedure, termed the Tucson Timing Protocol Version 2 (TTPv2), consists of the following steps: (i) perform sanity checks to ensure data validity; (ii) drop some query executions via clearly motivated predicates; (iii) drop some entire queries at a cardinality, again via clearly motivated predicates; (iv) for those that remain, compute a single measured time by a carefully justified formula over the underlying measures of the remaining query executions; and (v) perform post-analysis sanity checks. The result is a mature, general, robust, self-checking protocol that provides a more precise and more accurate timing of the query. The protocol is also applicable to other operating domains in which measurements of multiple processes each doing computation and I/O is needed.
Publisher
Association for Computing Machinery (ACM)
Reference26 articles.
1. Learning-based Query Performance Modeling and Prediction
2. T. Bowden B. Bauer J. Nerin S. Feng and S. Seibold. 2009. Linux kernel documentation - The /proc file system. Retrieved from https://www.kernel.org/doc/Documentation/filesystems/proc.txt. T. Bowden B. Bauer J. Nerin S. Feng and S. Seibold. 2009. Linux kernel documentation - The /proc file system. Retrieved from https://www.kernel.org/doc/Documentation/filesystems/proc.txt.
3. Benchmarking cloud serving systems with YCSB
4. DBMS metrology
Cited by
11 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献