CN1255739C - Control method for reducing hard disk magnetic head path searching times to raise hard disk reading speed - Google Patents

Control method for reducing hard disk magnetic head path searching times to raise hard disk reading speed Download PDF

Info

Publication number
CN1255739C
CN1255739C CN 200410001352 CN200410001352A CN1255739C CN 1255739 C CN1255739 C CN 1255739C CN 200410001352 CN200410001352 CN 200410001352 CN 200410001352 A CN200410001352 A CN 200410001352A CN 1255739 C CN1255739 C CN 1255739C
Authority
CN
China
Prior art keywords
data
hard disk
reading
item
magnetic head
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200410001352
Other languages
Chinese (zh)
Other versions
CN1556523A (en
Inventor
张亮
韩承德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huazhi Dawei Technology Co., Ltd.
Original Assignee
Institute of Computing Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CN 200410001352 priority Critical patent/CN1255739C/en
Publication of CN1556523A publication Critical patent/CN1556523A/en
Application granted granted Critical
Publication of CN1255739C publication Critical patent/CN1255739C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a control method for increasing the speed of reading a hard disk by reducing the number of times a magnetic head of the hard disk seeks a track. A plurality of discontinuous data blocks are read by seeking the track of the hard disk once; a reading command for the DMA data of the hard disk is used for continuously reading a large data block comprising a plurality of needed data blocks, and then unwanted data fragments between the data blocks are discarded. When the intervals between adjacent data blocks are relatively close, the data transmission time of reading redundant data fragments is greatly less than the hard disk track seeking time so as to greatly enhance the speed of data transmission. The method comprises the following steps: (1) the physical position of a file on the hard disk is determined, and meanwhile the position of a data buffer zone at a host computer side is given; (2) a command queue for hard disk operation and an SG table used for DMA data transmission are generated; (3) a hard disk controller reads the SG table item by item so as to carry out the data transmission; when the data discarding mark of the SG table is one, the data corresponding to the SG table of the item is not transmitted, and is discarded in the hard disk controller.

Description

Reduce hard disc magnetic head tracking number of times and improve the control method of reading hard disk speed
Technical field
The present invention relates to the Magnetographic Technology field, particularly a kind of hard disc magnetic head tracking number of times that reduces improves the control method of reading hard disk speed.
Background technology
The speed that storage device data such as hard disk are handled up is generally all lower, and it has its source in: on the one hand, the hard disc data tracking is to depend on machinery control, and the time of each tracking is longer; On the other hand, all discontinuous being stored on the hard disk under the most situation of data file, form by one group of data block, need repeatedly hard disk tracking when reading a data file.
Summary of the invention
The object of the present invention is to provide a kind of hard disc magnetic head tracking number of times that reduces to improve the control method of reading hard disk speed.
The control method of reading memory devices such as hard disk of the present invention is to improve the speed of reading memory devices such as hard disk by reducing magnetic head tracking number of times.
The present invention has designed a kind of DMA of using (Direct Memory Access, direct memory visit) mode and has read the novel control technology of memory devices such as hard disk, by this technology, can read a plurality of discrete data blocks with a hard disk tracking.Its implementation method is, with the read command of hard disk DMA data, reads a big data block that comprises a plurality of desired data pieces continuously, then unwanted data fragment between the data block lost.When the adjacent data block gap was nearer, the data transmission period of reading the redundant data fragment was widely less than the hard disk seek time, thereby greatly improved the speed of data transmission.
A kind of hard disc magnetic head tracking number of times that reduces improves the control method of reading hard disk speed, read a big data block that comprises a plurality of desired data pieces and data fragment continuously with a hard disk read command, and with the DMA data transmission manner desired data is sent to the host computer side data buffer according to collection (Scatter-Gather) table that looses, in the collection table that looses, data abandon be labeled as 1 the item corresponding to the data fragment, the data fragment does not transmit, and just is dropped in hard disk controller inside.
Reduce hard disc magnetic head tracking number of times and improve the control method of reading hard disk speed, its concrete steps are as follows: (1) step S1: computer operating system reads the fixed disk file allocation table according to the file system of itself, determine the physical location of file on hard disk, provide host computer side data buffering zone position simultaneously; (2) step S2: document location and data buffer that the hard disc apparatus driver provides according to operating system, produce hard disk operation command queue and diffusing collection (Scatter-Gather) table that is used for the DMA data transmission, in this process, if find to have the data fragment, then this data fragment and front and back two blocks of data thereof are regarded as a continuous big data block, operate with a hard disk read command and finish; In the collection table that looses, produce one false simultaneously corresponding to the data fragment; (3) step S3: hard disk controller reads the collection table that the looses line data transmission of going forward side by side item by item, and when the data of the collection table that looses abandon when being labeled as 1, this diffusing collection is shown pairing data fragment and do not transmitted, and just is dropped in hard disk controller inside.
Reduce hard disc magnetic head tracking number of times and improve the control method of reading hard disk speed, read in the flow process, represent for independent one that the data fragment that lose is shown with the collection (Scatter-Gather) that looses, and the data of this item abandon and are labeled as 1 in data.
Description of drawings
Fig. 1 is that DMA data of the present invention read to control synoptic diagram.
Fig. 2 is that DMA data of the present invention are read control flow chart.
Fig. 3 is the structural drawing of SG of the present invention (Scatter-Gather, collection looses) table.
Among Fig. 1, when reading hard disc data piece N and N+1, can only send out a DMA read command to hard disk, the data length of reading is from sector n1~n4.When data are passed through hard disk controller, automatically the data of sector n2~n3 are lost, pass to the required just data block N and the N+1 of data of main frame.
Among Fig. 2, step S1, S2 and S3 are respectively described below: (1) step S1: operating system reads the fixed disk file allocation table according to the file system of itself, determines the physical location of file on hard disk, provides host computer side data buffering zone position simultaneously; (2) step S2: document location and data buffer that the hard disc apparatus driver provides according to operating system produce hard disk operation command queue and the SG that is used for the DMA data transmission (Scatter-Gather, collection looses) table.In this process, if find that the data fragment is arranged,, then front and back two blocks of data are regarded as a continuous data block as the data of sector n2~n3 among Fig. 1, operate with a hard disk read command and finish; In the SG table, produce one false simultaneously corresponding to the data fragment.Establish data for false of the SG table and abandon mark, as the Bit30 among Fig. 3; (3) step S3: hard disk controller reads the line data transmission of going forward side by side of SG table item by item, and when the data of SG table abandon when being labeled as 1, this SG shows pairing data and do not transmit, and just is dropped in hard disk controller inside.
Among Fig. 3, the SG table generally comprises multinomial, and every accounts for two 32, and preceding 32 is the start address of host memory; The bit31 that the back is 32 is the end mark position, bit15~0th, data length.The present invention abandons mark to the bit30 of 32 of backs as data.
Embodiment
In general, when doing the DMA data transmission between main frame and the hard disk, hard disk controller is operated in Bus Master (ACTIVE CONTROL computer bus) state, and the transmission of data is according to the Scatter-Gather table that the host computer side device driver produces data to be write host memory.The structure of Scatter-Gather table as shown in Figure 3.Each has two 32 content in the table, is respectively address, data length and mark.When marker bit bit31 was 1, expression was last of Scatter-Gather table.
When using this novel hard disk controller, the Scatter-Gather that the host computer side device driver produces looses and collects, the 31st (Bit30) of second 32 content in each is used as data abandons mark, promptly when it is 1, hard disk controller does not send the data of this moment to main frame, but it is abandoned.When doing data and abandon, realize in that hard disk controller is inner with hardware fully, can accomplish to handle and do not take in real time the computer bus resource.
1 illustrated data are read in the flow process with reference to the accompanying drawings, can represent the data fragment that will lose independent with Scatter-Gather table, and the data of this item abandon and are labeled as 1.

Claims (3)

1, a kind of hard disc magnetic head tracking number of times that reduces improves the control method of reading hard disk speed, it is characterized in that, read a big data block that comprises a plurality of desired data pieces and data fragment continuously with a hard disk read command, and with the DMA data transmission manner desired data is sent to the host computer side data buffer according to diffusing collection table, in the collection table that looses, data abandon be labeled as 1 the item corresponding to the data fragment, the data fragment does not transmit, and just is dropped in hard disk controller inside.
2, the minimizing hard disc magnetic head tracking number of times according to claim 1 improves the control method of reading hard disk speed, its concrete steps are as follows: (1) step S1: computer operating system reads the fixed disk file allocation table according to the file system of itself, determine the physical location of file on hard disk, provide host computer side data buffering zone position simultaneously; (2) step S2: document location and data buffer that the hard disc apparatus driver provides according to operating system, produce hard disk operation command queue and the diffusing collection table that is used for the DMA data transmission, in this process, if find to have the data fragment, then this data fragment and front and back two blocks of data thereof are regarded as a continuous big data block, operate with a hard disk read command and finish; In the collection table that looses, produce one false simultaneously corresponding to the data fragment; (3) step S3: hard disk controller reads the collection table that the looses line data transmission of going forward side by side item by item, and when the data of the collection table that looses abandon when being labeled as 1, this diffusing collection is shown pairing data fragment and do not transmitted, and just is dropped in hard disk controller inside.
3, the minimizing hard disc magnetic head tracking number of times according to claim 1 improves the control method of reading hard disk speed, it is characterized in that, reads in the flow process in data, with the collection table that looses independent one of the data fragment that lose is represented, and the data of this item abandons and are labeled as 1.
CN 200410001352 2004-01-06 2004-01-06 Control method for reducing hard disk magnetic head path searching times to raise hard disk reading speed Expired - Fee Related CN1255739C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410001352 CN1255739C (en) 2004-01-06 2004-01-06 Control method for reducing hard disk magnetic head path searching times to raise hard disk reading speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410001352 CN1255739C (en) 2004-01-06 2004-01-06 Control method for reducing hard disk magnetic head path searching times to raise hard disk reading speed

Publications (2)

Publication Number Publication Date
CN1556523A CN1556523A (en) 2004-12-22
CN1255739C true CN1255739C (en) 2006-05-10

Family

ID=34350601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410001352 Expired - Fee Related CN1255739C (en) 2004-01-06 2004-01-06 Control method for reducing hard disk magnetic head path searching times to raise hard disk reading speed

Country Status (1)

Country Link
CN (1) CN1255739C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739328B (en) * 2009-12-16 2012-10-03 台安科技(无锡)有限公司 Method for enhancing speed of PC in monitoring singlechip through ModBus protocol
JP5290446B2 (en) * 2012-02-28 2013-09-18 株式会社シー・オー・コンヴ Network boot system
CN106383851A (en) * 2016-08-31 2017-02-08 福建星网视易信息系统有限公司 Multimedia playing concurrent connection number optimization method, apparatus and system

Also Published As

Publication number Publication date
CN1556523A (en) 2004-12-22

Similar Documents

Publication Publication Date Title
CN103186350B (en) The moving method of mixing storage system and hot spot data block
CN100378686C (en) Disk device and control method for cache
US8341374B2 (en) Solid state drive and related method of scheduling operations
EP2361404B1 (en) Method and system for queuing transfers of multiple non-contiguous address ranges with a single command
CN103049397B (en) A kind of solid state hard disc inner buffer management method based on phase transition storage and system
US9400603B2 (en) Implementing enhanced performance flash memory devices
CN103020255B (en) Classification storage means and device
CN110069442A (en) A kind of ultra-high-speed data acquisition device and method based on ZYNQ Series FPGA
KR20140050941A (en) Method for managing data in non-volatile memory device
TW576977B (en) Structure and method for planning control commands and data access
US8914571B2 (en) Scheduler for memory
CN107391392A (en) A kind of garbage reclamation optimization method based on flash memory device Concurrent Feature
CN105446665A (en) Computer storage acceleration system and optimization method thereof
US6931501B1 (en) Method and apparatus for merging contiguous like commands
CN102053929A (en) IO cache operation method and system based on DM layer of Linux system
CN102566939A (en) Solid state disk (SSD) and read-modify-write operation data management method thereof
CN1255739C (en) Control method for reducing hard disk magnetic head path searching times to raise hard disk reading speed
CN105426112A (en) Method for dynamically adjusting high-speed buffer area by solid state drive
US9558112B1 (en) Data management in a data storage device
CN1795442A (en) Method and device for transferring data between a main memory and a storage device
CN111176566B (en) eMMC read-write control method supporting queue command and storage medium
US7600074B2 (en) Controller of redundant arrays of independent disks and operation method thereof
CN102521161A (en) Data caching method, device and server
CN109144908A (en) A kind of data-storage system and method based on cascade Expander
CN1543092A (en) SCSI instruction optimization method based on FC-SAN storage device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: BEIJING HUAZHI DAWEI TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: INST. OF COMPUTING TECHNOLOGY, CHINESE ACADEMY OF SCIENCES

Effective date: 20110117

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100080 NO.6, KEXUEYUAN SOUTH ROAD, ZHONGGUANCUN, BEIJING TO: 100081 1117, SHENZHOU BUILDING, NO.31, ZHONGGUANCUN SOUTH AVENUE, HAIDIAN DISTRICT, BEIJING

TR01 Transfer of patent right

Effective date of registration: 20110117

Address after: 100081 Shenzhou building, 31 South Avenue, Haidian District, Beijing, 1117, Zhongguancun, China

Patentee after: Beijing Huazhi Dawei Technology Co., Ltd.

Address before: 100080 No. 6 South Road, Zhongguancun Academy of Sciences, Beijing

Patentee before: Institute of Computing Technology, Chinese Academy of Sciences

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060510

Termination date: 20130106

CF01 Termination of patent right due to non-payment of annual fee