Efficient External Sorting for Memory-Constrained Embedded Devices with Flash Memory
Authors:
Open Access
- 26 March 2021
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Embedded Computing Systems
- Vol. 20 (4) , 1-21
Abstract
Embedded devices are ubiquitous in areas of industrial and environmental monitoring, health and safety, and consumer appliances. A common use case is data collection, processing, and performing actions based on data analysis. Although many Internet of Things (IoT) applications use the embedded device simply for data collection, there are benefits to having more data processing done closer to data collection to reduce network transmissions and power usage and provide faster response. This work implements and evaluates algorithms for sorting data on embedded devices with specific focus on the smallest memory devices. In devices with less than 4 KB of available RAM, the standard external merge sort algorithm has limited application as it requires a minimum of three memory buffers and is not flash-aware. The contribution is a memory-optimized external sorting algorithm called no output buffer sort (NOBsort) that reduces the minimum memory required for sorting, has excellent performance for sorted or near-sorted data, and sorts on external memory such as SD cards or raw flash chips. When sorting large datasets, no output buffer sort reduces I/O and execution time by between 20% to 35% compared to standard external merge sort.Keywords
Funding Information
- NSERC
This publication has 12 references indexed in Scilit:
- MONTRES : Merge ON-the-Run External Sorting Algorithm for Large Data Volumes on SSD Based Storage SystemsIEEE Transactions on Computers, 2017
- TEFS: A flash file system for use on memory constrained devices2016
- External Mergesort for Flash-Based Solid State DrivesIEEE Transactions on Computers, 2015
- Data Sorting in Flash MemoryACM Transactions on Storage, 2015
- Efficient External Sorting on Flash Memory Embedded DevicesInternational Journal of Database Management Systems, 2013
- External Sorting on Flash Memory Via Natural Page Run GenerationThe Computer Journal, 2011
- Fast sorting on flash memory sensor nodes2010
- FAST: Flash-aware external sorting for mobile database systemsJournal of Systems and Software, 2009
- TinyDB: an acquisitional query processing system for sensor networksACM Transactions on Database Systems, 2005
- Internal and tape sorting using the replacement-selection techniqueCommunications of the ACM, 1963