TY - JOUR
T1 - When the virtual machine wins over the container
T2 - DBMS performance and isolation in virtualized environments
AU - Mardan, Asraa Abdulrazak Ali
AU - Kono, Kenji
N1 - Funding Information:
Acknowledgments This work is partially supported by JST, CREST, JPMJCR19F3 and Keio Gijuku Academic Development Funds.
Publisher Copyright:
© 2020 Information Processing Society of Japan.
PY - 2020/7
Y1 - 2020/7
N2 - Database management systems (DBMSs) are a common service in the cloud. Cloud providers employ virtualization to consolidate DBMSs for efficient resource utilization and to isolate collocated DBMS workloads. To guarantee the service-level agreement (SLA), the disk I/O performance and its isolation are critical in DBMSs because they are inherently disk I/O intensive. This paper investigates the disk I/O performance and its isolation of MySQL on two major virtualization platforms, KVM and LXC. KVM provides the hypervisor-based virtualization (virtual machines) while LXC provides the operating-system-level virtualization (containers). Containers are widely believed to outperform virtual machines because of negligible virtualization overheads, while virtual machines are to provide stronger performance isolation. Contrary to the general belief, our results show that KVM outperforms LXC by up to 95% in MySQL throughput without compromising the isolation. Furthermore, LXC violates the performance isolation; a container given 30% share of the disk bandwidth consumes the 70% share. Our analysis reveals that the file system journaling, which is mandatory to maintain file system consistency, has negative impact on both the performance and its isolation in the container. Because of the sharing of the journaling module in containers, the journaling activities are serialized and bundled with each other, resulting in poor performance and violation of the performance isolation.
AB - Database management systems (DBMSs) are a common service in the cloud. Cloud providers employ virtualization to consolidate DBMSs for efficient resource utilization and to isolate collocated DBMS workloads. To guarantee the service-level agreement (SLA), the disk I/O performance and its isolation are critical in DBMSs because they are inherently disk I/O intensive. This paper investigates the disk I/O performance and its isolation of MySQL on two major virtualization platforms, KVM and LXC. KVM provides the hypervisor-based virtualization (virtual machines) while LXC provides the operating-system-level virtualization (containers). Containers are widely believed to outperform virtual machines because of negligible virtualization overheads, while virtual machines are to provide stronger performance isolation. Contrary to the general belief, our results show that KVM outperforms LXC by up to 95% in MySQL throughput without compromising the isolation. Furthermore, LXC violates the performance isolation; a container given 30% share of the disk bandwidth consumes the 70% share. Our analysis reveals that the file system journaling, which is mandatory to maintain file system consistency, has negative impact on both the performance and its isolation in the container. Because of the sharing of the journaling module in containers, the journaling activities are serialized and bundled with each other, resulting in poor performance and violation of the performance isolation.
KW - Container
KW - DBMS
KW - Journaling file system
KW - Virtualization
UR - http://www.scopus.com/inward/record.url?scp=85090623376&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85090623376&partnerID=8YFLogxK
U2 - 10.2197/ipsjjip.28.369
DO - 10.2197/ipsjjip.28.369
M3 - Article
AN - SCOPUS:85090623376
SN - 0387-5806
VL - 28
SP - 369
EP - 377
JO - Journal of information processing
JF - Journal of information processing
ER -