APP下载

内存映射技术在大数据实时存储中的应用

2017-05-30刘平贾林林

河南科技 2017年5期
关键词:大数据

刘平 贾林林

摘 要:大数据的高速实时存储是某图像采集设备研发过程中所要面对的一项问题,为了解决数据吞吐量大、系统并行处理任务多等问题,不进行数据缓冲存储以及文件I/O操作的内存映射文件正是解决多个进程间数据共享的最有效方法。结合某测控设备的实际研发,对内存映射技术的运行机制和具体实现流程进行进一步的研究,并针对实际情况进行特殊处理,以保证数据存储的实时性和稳定性。最后经过测控设备的实际测试,内存映射技术表现出良好的性能,满足系统数据存储方面的要求,而且相比较其他方式占用极少的物理资源,不会影响系统的性能。

关键词:内存映射;大数据;多线程;实时

中图分类号:TP311 文献标识码:A 文章编号:1003-5168(2017)03-0039-03

Abstract: The high-speed real-time storage of big data is a problem faced in the process of equipment research and development of an image acquisition, data throughput, in order to solve the problem of parallel processing system more tasks, not the data buffer storage and file I/O operation of the memory mapped file is the most effective method to solve the data sharing between multiple processes. Combined with the actual research for measurement and control equipment, the memory mapping technology operation mechanism and implementation process were further studied, and according to the actual situation of the special treatment to ensure the real-time and stability of data storage. The result of test and control equipment, memory mapping technology shows good performance, to meet the requirements of the data storage system, and compared with other means occupy very little physical resources, will not affect the performance of the system.

Keywords: memory mapping;large data;multithread;real-time

某128×128元圖像采集系统用于红外产品图像高速实时的连续处理,系统要求红外图像能够无差错地实时存储1h。按照产品每秒100帧频计算,1h的数据存储量大约为11.15GB,对于如此大数据量的存储,采用普通文件进行操作受限于Windows进程空间有限,无法实现4GB以上数据文件一次性存储。另外,基于文件I/O操作的普通文件操作,其存储速度慢,容易在此类实时性要求较高的系统中出现图像采集丢帧、显示速率不达要求、存储压力过大、运行可靠性低等问题,从而导致任务要求无法完成[1,2]。

通过设计专门的内存映射机制实现高速实时的红外图像实时存储,可以解决大数据量的实时存储问题。同时,该设计具备的高效率与高可靠性,也能够满足整个系统的其他要求。……

登录APP查看全文

猜你喜欢

大数据
基于在线教育的大数据研究
“互联网+”农产品物流业的大数据策略研究
基于大数据的小微电商授信评估研究
大数据时代新闻的新变化探究
浅谈大数据在出版业的应用
“互联网+”对传统图书出版的影响和推动作用
大数据环境下基于移动客户端的传统媒体转型思路
基于大数据背景下的智慧城市建设研究
数据+舆情:南方报业创新转型提高服务能力的探索