Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2019 Aug 26;16(17):3096.
doi: 10.3390/ijerph16173096.

Taming Performance Variability of Healthcare Data Service Frameworks with Proactive and Coarse-Grained Memory Cleaning

Affiliations

Taming Performance Variability of Healthcare Data Service Frameworks with Proactive and Coarse-Grained Memory Cleaning

Eunji Lee. Int J Environ Res Public Health. .

Abstract

This article explores the performance optimizations of an embedded database memory management system to ensure high responsiveness of real-time healthcare data frameworks. SQLite is a popular embedded database engine extensively used in medical and healthcare data storage systems. However, SQLite is essentially built around lightweight applications in mobile devices, and it significantly deteriorates when a large transaction is issued such as high resolution medical images or massive health dataset, which is unlikely to occur in embedded systems but is quite common in other systems. Such transactions do not fit in the in-memory buffer of SQLite, and SQLite enforces memory reclamation as they are processed. The problem is that the current SQLite buffer management scheme does not effectively manage these cases, and the naïve reclamation scheme used significantly increases the user-perceived latency. Motivated by this limitation, this paper identifies the causes of high latency during processing of a large transaction, and overcomes the limitation via proactive and coarse-grained memory cleaning in SQLite.The proposed memory reclamation scheme was implemented in SQLite 3.29, and measurement studies with a prototype implementation demonstrated that the SQLite operation latency decreases by 13% on an average and up to 17.3% with our memory reclamation scheme as compared to that of the original version.

Keywords: data framework for applied health data; database; health data management; medical systems; memory reclamation.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest.

Figures

Figure 1
Figure 1
Applications for SQLite.
Figure 2
Figure 2
Overall architecture of SQLite.
Figure 3
Figure 3
Memory reclamation scheme of SQLite.
Figure 4
Figure 4
SQLite large transaction processing. The subfigure at the bottom shows the transaction commit timeline. The gray box with R denotes the memory reclamation time duration and the black box with T indicates the data writing time duration of the transaction into the buffer.
Figure 5
Figure 5
Latency of 4 GB storage write varying the write size.
Figure 6
Figure 6
Memory reclamation scheme with proactive and coarse-grained cleaning.
Figure 7
Figure 7
Throughput of 10 KB transaction in four different versions of SQLite.
Figure 8
Figure 8
Throughput of 1 MB transaction in four different versions of SQLite.
Figure 9
Figure 9
SQLite Performance varying the threshold value.

References

    1. SQLite. [(accessed on 25 August 2019)];2019 Available online: https://www.sqlite.org.
    1. Dam T.Q., Cheon S., Won Y. On the IO Characteristics of the SQLite Transactions; Proceedings of the IEEE/ACM International Conference on Mobile Software Engineering and Systems (MOBILESoft); Austin, TX, USA. 16–17 May 2016; pp. 214–224.
    1. Kim H., Agrawal N., Ungureanu C. Revisiting Storage for Smartphones. ACM Trans. Storage. 2012;8:14:1–14:25. doi: 10.1145/2385603.2385607. - DOI
    1. SQLite When to Use? [(accessed on 25 August 2019)];2019 Available online: https://www.sqlite.org/whentouse.html.
    1. Chen Y., Shen W., Huo H., Xu Y. A Smart Gateway for Health Care System Using Wireless Sensor Network; Proceedings of the 2010 Fourth International Conference on Sensor Technologies and Applications (SENSORCOMM ’10); Venice, Italy. 18–25 July 2010; pp. 545–550. - DOI

Publication types

MeSH terms

LinkOut - more resources