Embedded devices collect and process significant amounts of data in a variety of applications including environmental monitoring, industrial automation and control, and other Internet of Things (IoT) applications. Storing data efficiently is critically important, especially when the device must perform local processing on the data. The most widely used data structure for high performance query and insert is the B-tree. However, existing implementations consume too much memory for small embedded devices and often rely on operating system support. This work presents an extremely memory efficient implementation of B-trees for embedded devices that functions on the smallest devices and does not require an operating system. Experimental results demonstrate that the B-tree implementation can run on devices with as little as 4 KB of RAM while efficiently processing thousands of records.
翻译:嵌入装置在各种应用中收集和处理大量数据,包括环境监测、工业自动化和控制以及其他“物”互联网应用。存储数据至关重要,特别是当设备必须进行数据本地处理时。高性能查询和插入最广泛使用的数据结构是B树。但是,现有的实施过程对小型嵌入装置消耗太多的内存,并常常依赖操作系统支持。这项工作为最小设备上运行的、不需要操作系统的嵌入装置提供了非常高效的B树存储效率极强的B树。实验结果显示,B树实施可以在只有4KB的装置上运行,同时高效处理数千个记录。