和关于Windows模式中高速存储技术的研究外文文献翻译、中英文翻译_第1页
和关于Windows模式中高速存储技术的研究外文文献翻译、中英文翻译_第2页
和关于Windows模式中高速存储技术的研究外文文献翻译、中英文翻译_第3页
和关于Windows模式中高速存储技术的研究外文文献翻译、中英文翻译_第4页
和关于Windows模式中高速存储技术的研究外文文献翻译、中英文翻译_第5页
已阅读5页,还剩6页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

附录-外文翻译部分原文:Research of High-speed Data Storage Technique in Windows ModeAbstract: In the application of modern industry measure and control fields,the transient state single should be incepted to computer for storage and processing real time. With increasing design target,it becomes more and more important to the problems in the data storage processing and the ways to solve these problems in the data storage processing and the ways to solve these problems in Windows mode.Keywords: Data storage; transfers speed; WinDriver; ASPI; virtual disk.1 Foreword With the measure instrument precision and practice demand target increasing, the data transfer speed between instrument and computer improves, and most of the data should be processing real time. Common CPU operation speed has already exceeded 1 GHz, so it is easy for the operation ability of computer to satisfy the command of industry measure and control. However, the key point is the transfer bottleneck between the instrument and host computer. If the data cannot be sent to computer in time, the computers operation ability will not be exerted effectively. This problem will be discussed as follow. The first item should be ensured is the kind of the OS(operation system). The most popular OS is Windows system, so the most important tache of data transfer will be discussed in Windows mode.2Memory Management One of the key concepts of memory managements is the correlation between the address space (logic address) and storage and storage space (physical address). When program is running, memory management unit (MMU) executes the mapping from logic address to physical address. The logic address is added by the value in relocation register before sent to memory, and the value in relocation register is transparent to user. It is obvious that in Windows mode, memory management is used the virtual address space, but not physical address, so the program will receive the virtual address, instead of physical address. Considering of the mapping affection on data transfer speed, operation physical address directly is the best choice. The operation step is as follow : first , send the data to the buffer area (physical memory) that allotted by the management soft; second, send the data to the buffer area (logic memory) that allotted by the management soft; third, send the data from logic memory to storage disks. Both physical address and logic address should be continuous. The reasons are listed as follow: first, it is sure to allot the memory like that, and next it will be shown; second, relative to allotting several buffer areas , allotting one buffer area will not add the fragment to memory to; third , allotting this kind of buffer area can predigest the program. In the fist step, data acquisition card should obtain the process of transfer data ,and the physical address must be continuous. The buffer areas size lies on the datas size transferred once. And in the third step, since suing ASPI interface technique (it will be explained in fourth part), the logic address should be continuous, too. If the buffer areas in first and third step can be united into one buffer area, the processing is only concluding two steps: fist, send the data to continuous buffer area; second, send the data to data disks. By this way, the time of the data move in the memory will be reduced,and the data storage speed is increased. To avoid the storage operation effect on the data read, the ping-pong mode is accepted in the storage processing . The allotted buffer area is divided into two same parts. When the first buffer area is full of data , the system sends an interrupt signal to management soft , and transfers the data to hard disk. The following data will data will be sent to the next buffer area. When this buffer area is full of data, the system sends an inteeeupt signal to management soft, too. The precondition of this mode is the storage speed should should should be higher than data acquisition speed. The transfer speed of Wide Ultra2 SCSI disk can reach 80MB/s,and the data width is 16bit, which will satisfy the precondition.3. Method on Allotting Continuous Buffre Area There are several methods on allotting continuous area in Windows mode, and two of these are compared here . One is using VxD (Virtual Device Driver) to do this job. It can allot one continuous buffer area and provide the head address of this buffer area to management program and mapping form this buffer area to virtual address space. In the pro gram, first hold one buffer area in the virtual address space, then transfer VxD with sending the head address of the virtual address space to VxD, so that VxD allot one buffer area in the physical memory and obtain the hcad address. At last, refer the physical memory to the appointed virtual address space . This way can be used in win32 ,and it can receive a continuous physical buffer area and logic buffer area. However, it is much complex to be carried out. Another is using the function of cards DMA operation in WinDriver: WD_DMALock. By using this function, the continuous buffer area can be obtained for DMA operation area. WinDriver is only used to drive cards, so it requires at least one card in the acquisition system. But it is common for most acquisition system than the first way, and its dependability is higher, too. Moreover, it is convenience to upgrade. So it is a good choice for industry measure fields.The buffer area is allotted by this way: setting the reasonable parameter of the function WD_DMALock to obtain the continuous physical page , and the corresponding logic address is continuous, too. The head address of first physical page is the physical memory address .The return value of puseraddr , one of the parameter of WD_DMALock, is the physical memory. In addition ,winDriver collates every acquisition card by logic mumber (from l to the maximum ,the logic number is not corresponding to physical order),and the function can run without operating acquisition cards or any response of those cards, so the logic number can be used as l in the function and affords to all acquisition cards.One detail should be paid much attention : one of parameter of this function must be set to “DMA_KERNEL_BUFFER_ALLOC”, so that WinDriver can allot a continuous physical memory space. Moreover, the process of allotting buffer area must be placed in the initialization phase in the program, and other program should not run before the memory management soft runs. Otherwise, the process of allotting memory may be failure for the system has not enough continuous physical memory space. When the process is finished, the allotted memory must be free by function WD_DMAUnlock. The figure shows the allotted physical memory model by ping-pong mode (the size of each buffer area is 1MB)OFFSET0x001FFFFFOFFEST0x00100000 Data storage buffer area 2 (1MB)OFFSET0x000FFFFFOFFEST0x00000000 Data storage buffer area 1 (1MB)Fig.1 Allotted Physical Memory Model4. Storage in Hard Disk Hard disk operation has two levels: Windows and logic sector level. Accessing disk in Windows level , the operation system will do most of the job. The operation is so simple that the Windows98/2000 operation system can call API function directly to access the disk. However, the speed of this access is too low to satisfy the data storages requirement. Accessing disk in logic sector level , the soft developed by user self can operate disk directly in logic sector. This method gains higher speed than Windows level by accessing disk without using operation systems file system. If the data are stored in continuous logic sector, the speed of data storage will get higher. So, it is better to access disk in logic sector level and continuous logic sector than Windows level. To improve the data storage speed , system adopts SCSI hard disk instead of IDE hard disk . In the forepart of SCSI, users develop the SCSI devices driver. The job is very complex and often makes mistakes, and the drivers portability is not well. ASPI (Advanced SCSI Program Interface) technique solves this problem. Problem. ASPI is developed by Adaptec Company, and defined in most operation system, including Windows system, The process of accessing SCSI hard disk by ASPI includes four steps commonly: construct accessing disk command; send the command to ASPI manager; wait for executing command; explain the state or error code returned by ASPI manager.The concrete method about ASPI will not be explained here, which can be found in many books about SCSI. In the process of data storage, the time of searching track and sector is reduced after the disk rotate speed keeps normal. But a detail should be paid much attention. If the magnetic head is far form the sector where to write data when the first time to write data, the magnetic head will spend more time to write to seek trick and sector. Moreover, if the disk is at dormancy state (disk rotate speed is zero), the process that changing the disk state from dormancy state to running state will cost many times. However, the data transferring form acquisition card to the allotted buffer area keeps constant. This case maybe happens at this time that some data will be lost because the speed of data storage is lower than the speed of transfer data from acquisition card to memory. To solve this problem, the disk rotate speed must be kept running state when the process of data storage starts, and every magnetic head be moved to the cylinder or the conjoint cylinder where the data will be sent to. It is difficult to operate disks magnetic head by soft and this method maybe hurt disk, so it is better to find a new way but not to move magnetic head directly. An effective way is read the data form the sector where the data will transfer to memory, then write back to the sector .By this way, the magnetic head moves to the cylinder or the conjoint cylinder and keeps the disk running.5. Virtual Disk Generally, the disk operation speed is lower than the memory operation speed of 4 to 6 order. So it can improve the storage speed to use memory as disk, this way is also called RAM disk. RAM disks device driver allows the normal disk operation, though the operation is executed in memory instead of disk. So it is transparent for the user. This way is not a good choice for the high dependability system, because it has many disadvantages such as the memory capability should be enough, the data in the virtual disk will be lost if the system or power meet some accidents.6. Postscript All the above items are the key points in high-speed data storage technique. In addition, there are some other points also as RAID (Redundant Arrays of Inexpensive Disks), disk dispatch algorithm, etc .The affection range and the cost of the system are all different. So the choices are different. too. “Four Channels PXI Bus Preprocessing Dynamic Data Acquisition System” is design for the aero engines transient and dynamic state, wind tunnel examination. This task belongs to the subject: the research of aero automatism measure and test technique. In the development of the system soft, the research of the data storage technique has provided the powerful support.Reference1Chen xiangqun XiangYong, WangLei MaHongbing, ZhengKougen Dave Probert. Windows Operation System Principle 2CaoZiyuan. Physical Memorys Allocation and Direct Access in Win32 Mode,Observe and Control Technique, Vol.20,No.1,Jan2001.3Brian Sawert. The Programmers Guide To SCSI, China Electric Power Press,20014Walter Oney. Programming the Microsofy Windows Driver Model, Microsoft Press,19995ZhangHao. The Archive of PHD2000 Data Acquisition Systems Sofr, Sep, 2001Author BiographiesZhang Lei: work in the First Aeronaut Institute of Air Foree, instructor, graduate student of Beijing University of Aeronautics&Astronautics, engaged in data acquisition system development:Xu Xing: work in Beijing University of Aeronautics&Astronautics ,School of Instrumentation Science & Opto-electronics Engineering, professor, tutor of graduate student, engaged in computer measure and control technique research.翻译:和关于Windows模式中高速存储技术的研究摘要:在现代工业测量和技术领域的应用中,单一的短暂状态输入计算机存储,并却实时处理。随着设计目标的增加,重要数据的存储速度变的越来越重要。本文主要讲的是数据存储过程中的问题和在Windows模式中解决这些问题的方式。关键词:数据存储 转换速度 Windows ASPI 虚拟磁场1 .展望 随着测量工具的精确和实际需求目标的曾加,数据转换速度在测量仪器和计算之间改进,并且大部分数据都可以实时处理。普通CPU的运行速度已经超过1G赫兹。对于计算机的运行能力来讲,需满足工业测量仪器和控制的要求是很容易的:然而主要的问题在于测量仪器与主机同的转换障碍。如果数据没有及时地传送到计算机,那么计算机的操作能力就不能有效地被运用,这个问题将按如下步骤进行探讨:第一步应先确定操作系统的类别最流行的操作系统是Windows系统。因此,最重要的数据转换技术将在Windows模式中讨论。2.存储器管理存储器管理的一个主要的概念是在“位置空间”(逻辑地址)和“存储空间”(物理地址)间的相互关系。当程序运行时,存储器管理单元执行从逻辑地址到物理地址间的制作工作。在传到存储器前,逻辑地址就是通过重新注册的价值得到补充,并且重新登记的的价值对用在虚拟地址中使用,而非物理地址。所以这个程序存到的是虚拟地址而非物理地址。考虑到数据转换速度中制图因素的影响,操作物理地址显然是最好的选择,操作步骤如下:第一:将数据传到由管理软件分配的缓冲区域(物理区域);第二,将数据传到由管理软件分配的缓冲区域(逻辑区域);第三,将数据从逻辑存储器传送到存储磁盘上,但是物理地址和逻辑地址是无法连续的,原因如下:第一,必须保证向上述那样分配存储器,并且下一步可以显示出来;第二,相关的分配几个缓冲区域,分配一个缓冲区域并不能将零碎的片段添加的记忆中去。第三,分配到这种缓冲区域可以预先处理此程序。在第一步中,数据获得下可以获得数据转换过程中,数据存储分配区域的物理地址,并且物理地址必须是连续的。缓冲区域的大小在于一次性转换数据的长度。并在有第三步中,因为使用了ASPI界面技术(将在第四部分中介绍),逻辑地址也应是连续的,如果第一阶段和第三阶段的缓冲区域可以统一在一个缓冲区域,那么这个过程只包括两步:第一,将数据传送到连续的缓冲区域;第二,将数据传送到数据磁盘,通过这种方式,数据转移到存储器系统的时间将缩短,且数据存储速度将增加。为了避免存储操作技术影响数据只读功能,PING-PONG模式有存储过程中被接受,分配缓冲区域被划分为两个相同的部分。第一个缓冲区域充满数据,系统传送一个中断信号到管理软件,并且将数据转到硬盘上,剩下的数据被传到下个缓冲区域,当这个缓冲区域充满数据,系统也会向管理软件传送中断信号,这个模式的前提是:数据的存储速度应高于获得速度。WIDEULTRA2 SCSI磁盘的转换速度可以达到80MB/S,且数据的宽度是16位,可以满足这个前提.3.分配连续缓冲区域的方式 在WINDOWS模式下,有多种分配连续缓冲区域的方式,这里将比较其中的两种. 一种是利用VXD(虚拟装置驱动器)来做此工作,它可以分散一些连续的缓冲区域,切给管理程序提供这个缓冲区域的首地址,为从这个缓冲区域到虚拟地址提供制图,在此程序中,首先在虚拟地址中选择一个缓冲区域,然后将附有首地址的虚拟地址的VXD传送到VXD,只有这样,VXD分散一个在物理存储器与已确定的虚拟地址联系起来,这种方法可以在WIN32中使用,它可以直接收到一个连续的物理缓冲区域和逻辑缓冲区域.但是,这个模式的执行比较复杂. 另一种是是用WinDreir中卡的DMA运行的功能:WD-DMALOCK.通过使用其功能,对DMA来说,这个连续的缓冲区域能够获得,这个缓冲区域可以作为数据存储缓冲区域使用. WinDreir只是被用来驱动卡,因此,在获得系统中要求最少一张卡.但是对大多时获得系统来讲,使用数据获得卡是很普通的一件事,这种方法较第一种来讲是比较简单的,且它的依赖性也更高,更多的是,对上层来讲是简便的,所以对工业测量是个很好的选择. 缓冲区域是按此方式分散的,为了获得一个连续的物理页码,设定一个合理的WD-DMALOCK功能的参数,切相应的逻辑地址也是连续的,首个物理页码的首地址是一个物理存储器地址.PuserAddr的回服价值, WD-DMALOCK的一个参数,是物理存储器的地址.另外WinDreir通过逻辑数字(从1到无穷大,逻辑数字与物理顺序不是对应的)分散获得卡,在设有运行获得卡或这些卡的任何影响的情况下,这项功能就可运行.因此逻辑数字在此项功能中被使用设为1,且对所有的获得卡承担责任.有一个细节,我们应给予更多的关注:次功能的一个参数一定要被转送到DMA-KERNEL-BUFFER-AUOC中.这样, WinDreir可以分散一个连续的物理记忆空间,而且分散缓冲区域的过程应放在程序初始化阶段.且其它的程序不应在存储器管理软件运行前运行.否则,由于系统没有足够的连续的物理存

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论