基于ReWorks的内存日志服务设计与优化  被引量:1

DESIGN AND OPTIMIZATION OF MEMORY LOGGING SERVICE BASED ON REWORKS

在线阅读下载全文

作  者:黄河 任见 佘庆 钱晨 杨帆 Huang He;Ren Jian;She Qing;Qian Chen;Yang Fan(Shanghai Huayuan Chuangxin Software Co.,Ltd.,Shanghai 200062,China;Software Engineering Institute,East China Normal University,Shanghai 200062,China)

机构地区:[1]上海华元创信软件有限公司,上海200062 [2]华东师范大学软件工程学院,上海200062

出  处:《计算机应用与软件》2023年第1期273-279,297,共8页Computer Applications and Software

基  金:国家科技重大专项(2017ZX01041201-002,2017ZX01038102);上海市软件和集成电路产业发展专项(190241)。

摘  要:传统的文件系统日志服务无法满足嵌入式系统异常记录的实时性需求。在国产ReWorks嵌入式实时操作系统中设计实现了一种基于内存的日志服务,通过记录异常信息到日志内存中,在热重启后仍然可以从内存中获取复位前所记录的系统异常日志信息。通过在国产FT2000A/2硬件平台的验证和分析,对其实时性和可用性实现了进一步优化。测试数据表明,内存日志服务记录一条完整异常信息到内存日志平均耗时约为文件日志的0.5%,内存文件系统的写性能近270 MB/s,是SSD硬盘文件系统的6倍,具有高实时性、热重启不丢失、非阻塞等特性,对实时系统的异常分析定位与故障统计排查提供了有力支撑。Traditional file-system logging service cannot meet the real-time logging requirement of exception recording in embedded systems. Therefore, we design and realize the memory-based logging service in ReWorks, a commercial embedded real-time operating system in China. The logging service wrote the exception information into the memory, and could retain them after hot system rebooting. The logging service was tested and verified on the FT2000A/2 hardware platform, and we optimized its real-time performance and runtime availability. The test results show that the average time taken for the memory log service to record a complete exception information to the memory log is about 0.5% of the file log. The write performance of the memory file system is approaching 270 MB/s, which is 6 times that of the SSD hard disk file system. With high real-time performance, hot restart without loss, non-blocking and other characteristics, it can provide help for the analysis and positioning of abnormal problems and the statistical troubleshooting.

关 键 词:嵌入式实时系统 内存日志服务 字符串拷贝 用户信息 锐华 

分 类 号:TP316.2[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象