基于模式检测的嵌入式系统流式日志压缩算法OA
Streaming Log Compression Algorithm for Embedded Systems Based on Pattern Detection
随着嵌入式系统在物联网、工业控制和智能设备中的广泛应用,日志记录作为系统运行状态和故障分析的重要手段,面临着存储空间有限和实时性要求高的双重挑战.提出一种基于模式检测的流式日志压缩算法(SLC-PD),采用自适应滑动窗口机制实时分析日志流中的重复模式特征,通过有限状态机控制实现日志高效在线压缩.理论分析表明,算法的时间复杂度为 O(1),空间复杂度为 O(W),其中 W 表示窗口大小.实验结果表明,SLC-PD 在保持较低处理延迟的同时,能够实现最高80%的压缩率,内存开销小于18 KB,适用于各类嵌入式应用场景.
With the widespread deployment of embedded systems in IoT,industrial control,and intelligent devices,log recording as a critical means for system runtime and fault diagnosis,faces dual challenges of limited storage capacity and stringent real-time requirements.This paper proposes a Streaming Log Compression algorithm based on Pattern Detection(SLC-PD),which employs an adaptive sliding window mechanism to analyze repetitive pattern characteristics in log streams in real time,and achieves efficient online compression through finite state machine control.Theoretical analysis demonstrates that the algorithm achieves O(1)time complexity and O(W)space complexity,where W denotes the window size.Experimental results indicate that SLC-PD maintains low processing latency while achieving compression ratio of up to 80%,with memory overhead less than 18 KB,making it suitable for diverse embedded application scenarios.
李斌;卢俊;张成
中国航空工业集团公司西安航空计算技术研究所,陕西 西安 710068中国航空工业集团公司西安航空计算技术研究所,陕西 西安 710068中国航空工业集团公司西安航空计算技术研究所,陕西 西安 710068
信息技术与安全科学
嵌入式系统模式检测压缩日志记录
embedded systempattern detectioncompressionlog recording
《现代信息科技》 2026 (8)
44-48,5
评论